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

Peter biopython-dev at maubp.freeserve.co.uk
Sat Jul 28 15:49:11 UTC 2007


Michiel de Hoon wrote:
> 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.

Good. Done, CVS revision 1.6 of file Bio/Align/Generic.py

Peter




More information about the Biopython-dev mailing list