bg7/BG7 — Issue #13: LOCUS name not unique in gbk files
Author: marina-manrique
Created: 2011-11-23 11:00:21+00:00
State: open
Labels: bug, input output

The locus name to create the gbk files is taken from the Genbank XML file info (from the tag 'locus_name').

When a genome has several contigs all of them have the same LOCUS name (the name taken from the XML file). The thing is this LOCUS name should be unique for each of the contigs, it could be based on the contig ID (unique for each of the contigs). According to the GenBank release note (ftp://ftp.ncbi.nih.gov/genbank/gbrel.txt) the locus name 'is always sixteen characters or less, begins in position 13'.

So, for each contig, I suggest taking the whole contig ID if it's 16 chars or less, and if it's larger than 16 chars I suggest taking the last 16 chars of the contig ID, @rtobes what do you think?