-
Notifications
You must be signed in to change notification settings - Fork 0
/
2b.hybphaser_sample_Nikolov2019.sh
executable file
·34 lines (24 loc) · 1.35 KB
/
2b.hybphaser_sample_Nikolov2019.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
#!/bin/bash
#This file contains the true analyses script per samples.
sample=$1
#Remove any previous results from the HybPhaser directory to prevent old and new results being mixed when moving data.
rm -r results_HybPhaser_Nikolov2019/${sample}/
#Move new HybPiper-mapped data to the HybPhaser mapped data directory.
#mv mapped_Nikolov2019/${sample}/ results_HybPhaser_Nikolov2019/
#Copy new HybPiper-mapped data to the HybPhaser mapped data directory and unpack.
cp mapped_Nikolov2019/${sample}_mapped_Nikolov2019.tar.gz results_HybPhaser_Nikolov2019/
#Move to that directory.
cd results_HybPhaser_Nikolov2019/
tar -xf ${sample}_mapped_Nikolov2019.tar.gz
#Reload some modules for this specific parallel run.
module load biocontainers/0.1.0 #With this module, various other tools/modules can be loaded
module load intel/17.0.4
module load bwa/0.7.16a
module load blast/2.6.0
module load samtools/1.10
#Run step 1 of HybPhaser: generate consensus sequences (exclude data on introns, which includes too much variation in our dataset).
bash /scratch/08079/tg873782/HybPhaser/1_generate_consensus_sequences.sh -s ${sample} -o output_HybPhaser_Nikolov2019/
#Move HybPiper-mapped data from the HybPhaser directory back to the original directory.
#mv ${sample}/ ../mapped_Nikolov2019/
#Remove the HybPiper data for this sample.
rm -r results_HybPhaser_Nikolov2019/${sample}/