[BioPython] I don't understand why SeqRecord.feature is a list
Marc Colosimo
mcolosimo at mitre.org
Tue Jun 12 08:09:45 EDT 2007
Additionally, for many formats you can have multiple features with
the same name; e.g., CDS, gene, etc... in GenBank Records. The same
rational doesn't fully apply to why the feature qualifiers are
dictionaries of lists.
Marc
On Jun 12, 2007, at 7:44 AM, Ezequiel Panepucci wrote:
>> But I don't understand why SeqRecord.feature is a list, I think it
>> could be easier to use as a dictionary.
>
> The problem with a dictionaries is that they are not ordered
> and lists are, so internally it is easier to organize lists than
> dicts.
>
> I don't know how easy it would be to define which attribute/property
> of a feature should be used as a dict key.
>
> Zac
> _______________________________________________
> BioPython mailing list - BioPython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
More information about the BioPython
mailing list