Skip to content

Perl script to convert GenBank records to FASTA format

License

Notifications You must be signed in to change notification settings

santiagosnchez/gb2fasta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

gb2fasta.pl

Perl script to convert GenBank records to FASTA format

The program reads a file with one or multiple genbank records and extract the senquences in FASTA format. The script can also retrieve some meta-data, such as voucher name and geographic location.

Just download the code

wget https://raw.githubusercontent.com/santiagosnchez/gb2fasta/master/gb2fasta.pl

Or install (UNIX systems)

git clone https://github.com/santiagosnchez/gb2fasta
cd gb2fasta
chmod +x gb2fasta.pl
sudo cp gb2fasta.pl /usr/local/bin

Running the code

Use the -h flag for more details:

perl gb2fasta.pl -h

Try:
perl gb2fasta.pl -gb <gb.file> -out <outfile.fasta> [options]
Options:
-geo    will include only records with a geographic location
-oc     will only include the country if the record has a geographic location
-nv     will exclude the voucher label

About

Perl script to convert GenBank records to FASTA format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages