[Biopython-dev] [Biopython - Bug #3368] Bio.GenBank format writer creates invalid start_codon entries.

redmine at redmine.open-bio.org redmine at redmine.open-bio.org
Tue Jul 10 07:37:09 UTC 2012

Issue #3368 has been updated by Peter Cock.

We changed to RedMine from Bugzilla relatively recently - still learning its quirks ;)

And yes, regarding the string/integer typo.
Bug #3368: Bio.GenBank format writer creates invalid start_codon entries.

Author: Kai Blin
Status: Closed
Priority: Normal
Assignee: Biopython Dev Mailing List
Category: Main Distribution
Target version: 
URL: ftp://ftp.ncbi.nih.gov/genbank/release.notes/gb185.release.notes

When writing genbank output, the module adds quotes around the codon_start qualifier. This isn't according to the genbank file spec (see URL), and it also breaks the parser of another program I need to use.

BioPython generates:
while it should generate:

Looking over the Bio.GenBank code, it seems like I need to introduce some special handling for un-quoted qualifiers. I'd suggest using the same list as BioPerl:


our %FTQUAL_NO_QUOTE = map {$_ => 1} qw(
    anticodon           citation
    codon               codon_start
    cons_splice         direction
    evidence            label
    mod_base            number
    rpt_type            rpt_unit
    transl_except       transl_table
</pre> (see https://github.com/bioperl/bioperl-live/blob/master/Bio/SeqIO/genbank.pm#L193)

I'll try to come up with a patch and will be happy for feedback on implementation, coding conventions and the like.

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org

More information about the Biopython-dev mailing list