File: Subsample.sh

package info (click to toggle)
ampliconnoise 1.29-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,040 kB
  • sloc: ansic: 18,080; sh: 2,899; perl: 2,089; makefile: 235
file content (16 lines) | stat: -rwxr-xr-x 320 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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