This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Conversion of fna files to faa

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

1 answer

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

That helped clear things a lot. Thank you very much

Log in to answer this question.