/usr/share/ampliconnoise/Scripts/Subsample.sh is in ampliconnoise 1.29-6.
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 | #!/bin/bash
defaultSize=500
newsize=${2:-$defaultSize} #second argument primer as a Perl regular expression
for datfile in *.dat
do
stub=${datfile%.dat};
stub=${stub#${sampledir}};
echo $datfile $stub $newsize
#generate flowgram and fasta files
SubsampleDat.pl $datfile $newsize > ${stub}_S${newsize}.dat
done
|