forked from snow942/mtDNA_Comparative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNucmer_mtDNA.sh
43 lines (26 loc) · 893 Bytes
/
Nucmer_mtDNA.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
#!/bin/bash -l
#SBATCH --job-name=MUM
#SBATCH --time=00:00:00
#SBATCH --cpus-per-task=8
#SBATCH --exclusive=user
#SBATCH --output=/home/rsnow/BashScripts/SlurmOutput/MUM.%j.out # STDOUT output file
#SBATCH --error=/home/rsnow/BashScripts/SlurmOutput/MUM.%j.err # STDERR output file
#Load Modules
enable_lmod
module load anaconda
conda deactivate
conda deactivate
conda activate Mummerv4
#Documentation of version
nucmer --version
#Creation of a list of the sample fastq to be used for while-loop
cd /scratch/rsnow/Mummerv4
for mfafile in Sfa*
do
nucmer --prefix="$mfafile" /home/rsnow/mtDNARef/Sfa_mtDNA_Ref.fasta "$mfafile"
delta-filter -q -m "$mfafile".delta | delta2vcf > "$mfafile".m.vcf
delta-filter -q -m "$mfafile".delta > "$mfafile".m.delta
show-snps -HlrT "$mfafile".m.delta > "$mfafile".m.snps
show-diff -q "$mfafile".m.delta > "$mfafile".m.report
done
exit