forked from p2pu/course-in-a-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
35 lines (27 loc) · 1.1 KB
/
run.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
set -euxo pipefail
. "/var/lib/miniforge/etc/profile.d/conda.sh"
mamba create -n genomad --yes \
-c conda-forge -c bioconda \
genomad seqfu
mamba create -n checkv -c conda-forge -c bioconda --yes \
checkv
conda activate genomad
if [[ ! -d ~/genomad-out ]]; then
genomad end-to-end "$VIROME"/human_gut_assembly.fa.gz ~/genomad-out "$VIROME"/genomad_db/ -t 8
# To make commands easier, we can use variable like:
GENOMAD_OUT=~/genomad-out/human_gut_assembly_summary/human_gut_assembly_virus.fna
# to be recalled with $VARNAME
seqfu cat --anvio --report rename_report.txt $GENOMAD_OUT > ~/genomad-out/genomad_votus.fna
conda deactivate
fi
#---
# To make commands easier, we can use variable like:
GENOMAD_OUT=~/genomad-out/human_gut_assembly_summary/human_gut_assembly_virus.fna
# to be recalled with $VARNAME
seqfu cat --anvio --report rename_report.txt "$GENOMAD_OUT" > ~/genomad-out/genomad_votus.fna
if [[ ! -d ~/checkv-out ]]; then
conda activate checkv
checkv end_to_end ~/genomad-out/genomad_votus.fna ~/checkv-out -d "$VIROME"/checkv-db-v1.5/ -t 8
conda deactivate
fi
#----