Hmmer2: Fixed a bug where "$hsp->{QUERY_LENGTH}" and
commit2647b0706d1956a3ff95e2c278d0779459cd44f8
authorFrancisco J. Ossandon <fco.j.ossandon@gmail.com>
Fri, 10 Jan 2014 14:35:23 +0000 (10 11:35 -0300)
committerFrancisco J. Ossandon <fco.j.ossandon@gmail.com>
Fri, 10 Jan 2014 14:35:23 +0000 (10 11:35 -0300)
treec806f62ee8942afcc63837aa349c6d59c6d7d514
parent6d15618d0e80a8a0b15f0862d0eca5672a74d960
Hmmer2: Fixed a bug where "$hsp->{QUERY_LENGTH}" and
"$hsp->{HIT_LENGTH}" values where calculated wrongly in
"end_hsp" from SearchResultEventBuilder. For hits where
query/hit length is unknown (like HMMER), the values
were calculated using the full length of the alignment
without deducting the gaps. In the test file, added a
consistency check for Query Length and Hit Length.
Bio/SearchIO/SearchResultEventBuilder.pm
t/SearchIO/hmmer.t