[gt-users] get feature by ID
Gordon Gremme
gremme at gmail.com
Wed Feb 11 15:46:25 CET 2009
>> on a sort of related note, one feature that would be nice is something
>> to remove this boilerplate:
>>
>> genome_stream = FeatureStream(genome_stream, feature_index)
>> feature = genome_stream.next_tree()
>> while feature:
>> feature = genome_stream.next_tree()
>>
>> maybe with something like:
>>
>> FeatureStream(genome_stream, feature_index).iterate_all()
>>
>> that doesnt apply to the problem of make a name => feature hash, but
>> is nice for filling a feature_index and doing an intron_stream.
>
> This is a nice idea and should be implementable without many problems as
> a general method in the GenomeStream class.
Yes, this would also simplify all the while loops which can be found
in the tools.
I'll implement this shortly on the C-side.
Gordon
More information about the gt-users
mailing list