This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Converting Gis Between Genbank And .Ptt Files

I'm using both genbank files (downloaded from NCBI ftp) and the corresponding .ptt files (available as all.pt.tar.gz here).

However, while each gene is identified with a GI in both of the files, they do not match. As one example, here's the genbank and ptt files of the same Acaryochloris marina chromosome. The AM10003 locus is identified with 158333234 in the ptt file, and 158303475 in the genbank file. (Searching for AM10003 in NCBI gets me to both of those IDs as well).

How can I convert from the genbank ID to the ptt ID, or vice versa? (I have to do this for an extremely large number of genes, so querying NCBI's site for each one's locus tag isn't a practical option).

genbank conversion

2 answers

This is because you have not opened the corresponding .ptt file for genbank file. In the ftp address bar check the uid and file name. I think both of the files should be in same directory. For your genbank file, here is the .ptt file and for your ptt file, here is your genbank file.

I actually tried that command, but NCBI appears to throttle such requests so that it can never get more than a few files... I'll try other approaches. Thanks!

check this https://github.com/sgivan/gb2ptt

Log in to answer this question.