[Biopython-dev] [Biopython - Bug #3278] (Closed) SeqIO tries to use Gapped without import

redmine at redmine.open-bio.org redmine at redmine.open-bio.org
Tue Aug 9 15:48:06 UTC 2011


Issue #3278 has been updated by Peter Cock.

Status changed from New to Closed
% Done changed from 0 to 100

I realised this deprecated function was due for removal, it will be gone in Biopython 1.58,
https://github.com/biopython/biopython/commit/9eb934ee0425b4636b26f310a0f1454f53745b17

Marking this bug as closed.
----------------------------------------
Bug #3278: SeqIO tries to use Gapped without import
https://redmine.open-bio.org/issues/3278

Author: Paul Agapow
Status: Closed
Priority: Normal
Assignee: Biopython Dev Mailing List
Category: Main Distribution
Target version: 1.53
URL: 


@to_alignment@ in @SeqIO@ uses @Gapped@ (@ isinstance(alphabet, Gapped)@) but does not actually import @Gapped at . Thus a @NameError@ results. Although the method is labelled obsolete, it is used by @SeqIO@ in write when an @AlignIO@ writer must be used (e.g. when trying to write sequences to a Nexus file).

Solution: @from Bio.Alphabet import Gapped@


-- 
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