[Bioperl-l] Getting hit or subject length in BPlite

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Thu Jul 14 10:32:11 EDT 2005


Error message:

Can't locate object method "length" via package
"Bio::Tools::Bplite::Sbjct"

I managed to access it by hacking, ie I call 

$sbjct->{'LENGTH'}

But it seems a little bit of an oversight to store it and yet not
provide an accessor method?

Mick

-----Original Message-----
From: Joseph Bedell [mailto:jbedell at oriongenomics.com] 
Sent: 14 July 2005 15:25
To: michael watson (IAH-C); bioperl-l at portal.open-bio.org
Subject: RE: [Bioperl-l] Getting hit or subject length in BPlite


Hey Mick,

Here's how to get the queryLength and the sbjct Length. Is this what
you're looking for?


my $report = new BPlite(\*STDIN);
       $report->queryLength;
while(my $sbjct = $report->nextSbjct) {
         $sbjct->length;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joseph A Bedell, Ph.D.         office: 314-615-6979 
Director, Bioinformatics         fax:    314-615-6975 
Orion Genomics                   cell:   314-518-1343
4041 Forest Park Ave
St. Louis, MO 63108
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>-----Original Message-----
>From: bioperl-l-bounces at portal.open-bio.org [mailto:bioperl-l- 
>bounces at portal.open-bio.org] On Behalf Of michael watson (IAH-C)
>Sent: Wednesday, July 13, 2005 10:05 AM
>To: bioperl-l at portal.open-bio.org
>Subject: [Bioperl-l] Getting hit or subject length in BPlite
>
>Hi
>
>Maybe I'm just being dumb, but I can't see a way to get the hit length
>(note: NOT hsp length) using Bplite to parse a blast report....
>
>Any help?
>
>Mick
>
>
>
>_______________________________________________
>Bioperl-l mailing list
>Bioperl-l at portal.open-bio.org 
>http://portal.open-bio.org/mailman/listinfo/bioperl-l



More information about the Bioperl-l mailing list