[Bioperl-l] seq() method of Bio::Seq module

Jack Chen chenn at cshl.edu
Thu Aug 12 22:47:43 EDT 2004


Hi,

Is there a way to preserve the original sequence format we seq() is used
to print the string of sequence? Say, 

#original sequence
>ABC
aaaaaaaaaaaaaaaaaa
cccccccccccccccccc
gggggggggggggggggg
tttttttttttttttttt

When I print the string of this sequence using seq() method in Bio::Seq
module, I get:
>ABC
aaaaaaaaaaaaaaaaaaccccccccccccccccccggggggggggggggggggggtttttttttttttttt
tt
(all spaces and newlines are removed)

How can I get the original sequence back:
>ABC
aaaaaaaaaaaaaaaaaa
cccccccccccccccccc
gggggggggggggggggg
tttttttttttttttttt

?

Thanks,

Jack







More information about the Bioperl-l mailing list