-
Notifications
You must be signed in to change notification settings - Fork 0
/
mashCmds.sh
48 lines (33 loc) · 1.38 KB
/
mashCmds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#dataType=VDNA
dataType="Bac"
#str=assDNA-PCvsViralGenomes_sub33k_min70bp
str=sub418k_exact100bp
# viral
#homeDir=/home.westgrid/thea/watershed/viralShotgunHiSeq/$dataType/mash/$str
#inputFiles=/home.westgrid/thea/watershed/viralShotgunHiSeq/$dataType/mash/$str/inputFastaFiles.txt
##inputFiles=/home.westgrid/thea/watershed/viralShotgunHiSeq/$dataType/mash/$str/inputFastaFiles_sub45kExact100bp.txt
##inputFiles=/home.westgrid/thea/watershed/viralShotgunHiSeq/$dataType/mash/$str/inputFastaFiles_$str.txt
# bacterial
homeDir=/home.westgrid/thea/watershed/bacterialShotgunMiSeq/mash/$str
inputFiles=/home.westgrid/thea/watershed/bacterialShotgunMiSeq/mash/$str/inputFastaFiles_$str.txt
sketchSize=1000000
sketchStr="s1G" #"s1G_min2" -u
kmer=21
refName=$dataType"_"$str"_"k$kmer"_"$sketchStr"_min2"
outdir=k$kmer"_s"$sketchSize
mkdir $homeDir
cd $homeDir
mkdir $outdir
cd $outdir
echo "sketch size = $sketchSize; kmer length = $kmer" > $outdir.out
#~/programs/mash/mash sketch -l $inputFiles -o $refName -s $sketchSize -k $kmer >> $outdir.out
~/programs/mash/mash sketch -m 2 -l $inputFiles -o $refName -s $sketchSize -k $kmer >> $outdir.out
#rm $refName-distances.txt
~/programs/mash/mash dist $refName.msh $refName.msh > $refName-distances.txt
#while read fasta
#do
#
# ~/programs/mash/mash dist $refName.msh $fasta >> $refName-distances.txt
#
#done < $inputFiles
echo "Done" >> $outdir.out