[Biopython-dev] [Bug 2643] Proposal: fastPhaseOutputIO for SeqIO

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Mon Nov 10 16:04:06 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2643





------- Comment #18 from dalloliogm at gmail.com  2008-11-10 11:04 EST -------
(In reply to comment #17)
> 
> Or, for another approach which at least avoids private properties but instead
> makes an assumption that added sequences are always put at the end of the
> alignment:
> 
> alignment = Alignment(generic_dna)
> 
> alignment.add_sequence(id_one, seq_one)
> assert alignment[-1].id == id_one
> alignment[-1].description = desrc_one
> alignment[-1].annotations["label"] = label_one
> ...
> 
> alignment.add_sequence(id_two, seq_two)
> assert alignment[-1].id == id_two
> alignment[-1].description = desrc_two
> alignment[-1].annotations["label"] = label_two
> ...
> yield alignment
> 

Ok!! I ended up using the first method, but I left a comment in the code to
remind me that.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list