I'm trying to export aligned sequences to a fasta file one by one using Bio::SeqIO
.
The result is that the sequences are broken by a new line every 60 columns.
How do I avoid that?
I'd like to have the sequences exported in a 'wide' format, i.e. no line breaks in the sequence.
My code is roughly:
use Bio::SeqIO;
my $seqin = Bio::SeqIO->new(-file => "<$fastaFile", '-format' => 'Fasta');
my $outname = fileparse($fastaFile, qr/\.[^\.]*$/) . "_sub.fasta";
my $seqout = Bio::SeqIO->new(-file => ">$outname", '-format' => 'Fasta');
while(my $seq = $seqin->next_seq){
# do something with $seq
$seqout->write_seq($seq);
}
"...the sequences are broken by a new line every 60 columns. How do I avoid that?"
Why do you want to avoid that?