You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open (FASTA , '<' , $inputfasta) or die "\nThis script will filter fasta files by length. \nUSAGE:\t perl filter_length.pl [minlength] [maxlength] input.fasta\n\n";
my $fasta;
my @splitchunk;
my $sequence;
$/ = '>';
while(not eof FASTA){
$fasta = <FASTA>;
$fasta=~s/\>//g;
@splitchunk=split /\n/, $fasta;
$sequence=@splitchunk[1];
if (length($sequence) <= $maxlength && length($sequence) >= $minlength){