4 # Removes insertions (represented by "-" or ".") from FASTA files
10 if ($ARGV[0]) { open(FILE, "<$ARGV[0]") or die($!); }
11 else { open(FILE, "<-") or die($!); }
20 else { # If there's a sequence print it
21 if ($seq) { $seq =~ s/(.{72})/$1\n/g; print "$seq\n"; }
22 print $_; # Then the title
26 if ($seq) { $seq =~ s/(.{72})/$1\n/g; print "$seq\n"; }