[Bioperl-l] Blast Writer

Jason Stajich jason at bioperl.org
Thu Nov 9 23:21:34 UTC 2006


You can always do this before you pass the Result object to the  
writer. The for loop will pass back the actual hit or hsp objects and  
so any updates should be stored.

for my $hit ( $result->hits ) {
  for my $hsp ( $hit->hsps ) {
   # change the HSP
  }
}

-jason
On Nov 9, 2006, at 3:07 PM, Bernd Web wrote:

> Hi,
>
> I am using Bio::SearchIO and Bio::SearchIO::Writer::HTMLResultWriter
> and its filter, as
> my $writer = new Bio::SearchIO::Writer::HTMLResultWriter();
> $writer->filter('hsp', \&hsp_filter);
>
> Can I change  the contents of the HSP objects (apart from true/ 
> false filtering)?
> I would like to change some HSP values. Would it be possible to do so
> with HTMLResultWriter's filters? And if so, how to access the Hit/HSP
> objects in the filter?
>
> I'd be grateful for any suggestions.
>
> Best regards,
> Bernd
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

--
Jason Stajich, PhD
Miller Research Fellow
University of California
Dept of Plant and Microbial Biology
321 Koshland Hall #3102
Berkeley, CA 94720-3102
lab: 510.642.8441
http://pmb.berkeley.edu/~taylor/people/js.html





More information about the Bioperl-l mailing list