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

Allen Day allenday at ucla.edu
Fri Aug 13 01:21:13 EDT 2004


you can't, the formatting isn't preserved.  you can try using Text::Wrap 
to reformat it back to the original.

-allen


On Thu, 12 Aug 2004, Jack Chen wrote:

> 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
> 
> 
> 
> 
> 
> _______________________________________________
> 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