-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript_for_denovo_s1
More file actions
58 lines (47 loc) · 1.56 KB
/
Copy pathScript_for_denovo_s1
File metadata and controls
58 lines (47 loc) · 1.56 KB
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
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#This is used in my docker container
##PATH
#DRAP install directory in the Docker container
cd /usr/local/src/drap
#DRAP configuration PATH
cd /usr/local/src/drap/cfg
#Edit configuration (change "local_cpu" and "n_cpu")
vi /usr/local/src/drap/cfg/drap.cfg
#Trimmed and filtered by Kraken2 sequence PATH
cd /mnt/data/pri_data/kraken
##Step 1: merge forward and reverse reads (1 and 2), I use 15 cores here (-j15), you can change it based on your server
cd /mnt/data/pri_data/kraken && pwd && ls
parallel -j15 "zcat {} >> merged_1.fq.gz" ::: *_1.fq.gz
parallel -j15 "zcat {} >> merged_2.fq.gz" ::: *_2.fq.gz
##Step 2: run DRAP for denovo assembly
cd /usr/local/src/drap && pwd && ls
#Write script for further modification (change CPU number for faster speed)
runDrap \
--outdir /mnt/data/out_drap_s2 \
--R1 /mnt/data/pri_data/kraken/merged_1.fq.gz \
--R2 /mnt/data/pri_data/kraken/merged_2.fq.gz \
--dbg trinity \
--no-trim \
--norm-mem 200 \
--dbg-mem 200 \
--discardN \
--coverage 0,0.5,1 \
--no-rate \
--write
#Edit the CPU number used in tgicl (It always fails when more than 6 cpus are used here). This is a tool used in step 5.
vi /usr/local/src/drap/bin/runAssembly.sh
#change second line into following command
tgicl all_dbg.fa -c 6 -l 60 -p 96 -s 100000
#runDrap and wait
runDrap \
--outdir /mnt/data/out_drap_s2 \
--R1 /mnt/data/pri_data/kraken/merged_1.fq.gz \
--R2 /mnt/data/pri_data/kraken/merged_2.fq.gz \
--dbg trinity \
--no-trim \
--norm-mem 200 \
--dbg-mem 200 \
--discardN \
--coverage 0,0.5,1 \
--no-rate \
--run