Conversion of fna files to faa
1
0
Entering edit mode
2.4 years ago
Sharon ▴ 10

Hi, Can someone tell me how I can convert multiple fna files of bacterial genomes to faa files using the command line? I have downloaded these files from NCBI. I have looked up the sed code but was unable to use it properly.

Thanks in advance. Regards, Sharon.

NCBI command Bacteria line • 2.3k views
ADD COMMENT
1
Entering edit mode
2.4 years ago
Mensur Dlakic ★ 27k

There is no simple conversion for what you want. By most commonly accepted nomenclature, the .fna files contain genomic sequence(s), while the .faa files contain proteins that are predicted from the genomic DNA. It is not a matter of conversion - one needs to predict the genes. My advice to you is to download the .faa files from the same site where you got the .fna files. If they are not available, prokaryotic genes can be predicted using prodigal. While you should read about all the program options, a typical command to get what you want would look something like this

prodigal -i file.fna -a file.faa -o /dev/null
ADD COMMENT
0
Entering edit mode

That helped clear things a lot. Thank you very much

ADD REPLY

Login before adding your answer.

Traffic: 3130 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6