[Biopython-dev] syntax of indices for future Alignment object

Michiel de Hoon mdehoon at c2b2.columbia.edu
Sat Jul 28 15:17:52 UTC 2007


Peter wrote:
> Michiel de Hoon wrote:
>>  >>> aln.add_sequence("seq1", "ATCGTTGC")
>>  >>> aln[0]
>> SeqRecord(seq=Seq('ATCGTTGC', Alphabet()), id='<unknown id>', 
>> name='<unknown name>', description='seq1', dbxrefs=[])
>> # Suggestion 2: I would expect "seq1" as the id rather than the 
>> description
> 
> I agree with you here - this is the historic behaviour of the
> add_sequence method which actually creates a SeqRecord from the strings
> it is given. I would suggest it populate the record.id but for backwards
> compatibility still populate the record.description in case anyone is
> still using that.
> 
That sounds good to me.

--Michiel.



More information about the Biopython-dev mailing list