/usr/share/ampliconnoise/Scripts/CountFasta.pl is in ampliconnoise 1.29-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/perl
$total = 0;
while($line = <STDIN>){
chomp($line);
if($line=~/>(.*)/){
$id = $1;
@tokens = split(/_/,$id);
$size = scalar(@tokens);
$total += $tokens[$size - 1];
}
}
if($ARGV[0] eq "c"){
print "$total,";
}
else{
print "$total\n";
}
|