5 Sep 21:01
Bio::Coordinate::Collection could DoWhatIMean better (w/ patch)
From: George Hartzell <hartzell <at> alerce.com>
Subject: Bio::Coordinate::Collection could DoWhatIMean better (w/ patch)
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-05 19:01:35 GMT
Subject: Bio::Coordinate::Collection could DoWhatIMean better (w/ patch)
Newsgroups: gmane.comp.lang.perl.bio.general
Date: 2008-09-05 19:01:35 GMT
Hi all, Bio::Coordinate::Collection surprised me a bit. At first I thought there was a bug, but it's clearly doing what it's supposed to. Now I'm wondering if what it's supposed to be doing makes sense in some context, or if what I expected would be better functionality. t/CoordinateMapper.t sets up the following scenario: # # Collection # # 1 5 6 10 # |---| |---| #-----|----------------------- # 1 5 9 15 19 # pair1 pair2 Then goes on to do the following query: # match more than two $pos = Bio::Location::Simple->new (-start => 5, -end => 19 ); ok $res = $transcribe->map($pos); is $res->each_gap, 2; is $res->each_match, 2; I was surprised to see that there were two gaps, one gene:10-19 and one from gene:5-14. Looking at the code, what's really happening is that, for the exon1 mapper there's match with gene:5-9 and a gap with(Continue reading)
RSS Feed