[Bioperl-l] Printing string fragments?

Gyoergy Abrusan abrusan at mpil-ploen.mpg.de
Wed Mar 10 07:32:25 EST 2004

Dear All,

I would like to ask how can I print out certain fragments of strings.
my data are in the format:


I wrote a script that makes some statistics on the nucleotide sequences.
I would like to print the results out as:

seqname1    results
seqname2    results

at the moment I can print them out only as:

 >seqname1#uninteresting_information     results
 >seqname2#uninteresting_information     results

Because the scriprt prints out the entire seqname-sting.
How can I print out parts of a string, say from symbol '>' to
symbol '#'?

Thanking you in advance.
Kind regards,

Gyorgy Abrusan,

Max-Planck Institute for Limnology,
Ploen, Germany

More information about the Bioperl-l mailing list