Parsing BLAST out file to HTML. How to change the description's name of each hit?

View: New views
2 Messages — Rating Filter:   Alert me  

Parsing BLAST out file to HTML. How to change the description's name of each hit?

by Xiaoyu Liang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using Bio::SearchIO::Writer HTMLResultWriter help me parse BLAST out
file into HTML.

Anybody knows how to parse and change the description name of each hit?

By using hit->description can call hits' description, but it is not allowed
to be modified.

Thank you very much,
Xiaoyu
_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Re: Parsing BLAST out file to HTML. How to change thedescription's name of each hit?

by Mark A. Jensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Xiaoyu-
That method should work to change the description; are you doing

$hit->description('This is my new description');

This method returns the old description when you change the value:

$hit->description('old');
$str = $hit->description('new'); # $str eq 'old'
$str = $hit->description;            # $str eq 'new'

MAJ

----- Original Message -----
From: "Xiaoyu Liang" <veronica.xiaoyu@...>
To: <Bioperl-l@...>
Sent: Friday, November 06, 2009 5:25 PM
Subject: [Bioperl-l] Parsing BLAST out file to HTML. How to change
thedescription's name of each hit?


> Hi,
>
> I'm using Bio::SearchIO::Writer HTMLResultWriter help me parse BLAST out
> file into HTML.
>
> Anybody knows how to parse and change the description name of each hit?
>
> By using hit->description can call hits' description, but it is not allowed
> to be modified.
>
> Thank you very much,
> Xiaoyu
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@...
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
>

_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l