-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMegaVir_LR.sh
26 lines (20 loc) · 874 Bytes
/
MegaVir_LR.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
#Trimmomatic
snakemake -s /home/ngs_lab/MegaVir/MegaVir_trim.py -c1
#Combine PE and orphan readsets
cd /home/ngs_lab/MegaVir/trimmed/Iseq_run/trimmed
ls | awk -F '_S' '!x[$1]++{print $1}' | while read -r line
do
cat $line* > $line-combined\.fastq.gz
done
rm logs-combined.fastq.gz
#BBDUK deduplication
snakemake -s /home/ngs_lab/MegaVir/MegaVir_dedupe.py -c1
#Megahit de novo assembly
snakemake -s /home/ngs_lab/MegaVir/MegaVir_denovo.py -c1
#Rename Megahit outputs
cd /home/ngs_lab/MegaVir/denovo/
for subdir in *; do mv $subdir/final.contigs.fa $subdir.fa; done;
#Binning Megahit outputs with diamond LR
snakemake -s /home/ngs_lab/MegaVir/MegaVir_diamond-LR.py -c1
#Meganize LR
/home/ngs_lab/megan/tools/daa-meganizer -i /home/ngs_lab/MegaVir/daa/*.daa -lg -top 0.1 -supp 0.000000001 -lcp 51 -ram readCount -mdb /home/ngs_lab/DB/megan-map-Feb2022-ue.db -t 16 -v