-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrun_pandora.sh
executable file
·39 lines (33 loc) · 1.79 KB
/
run_pandora.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
#!/usr/bin/env bash
set -eu
# configs
pandora_URL="https://github.com/rmcolq/pandora/releases/download/0.9.0-rc1/pandora-linux-precompiled-v0.9.0-rc1"
pandora_executable="./pandora-linux-precompiled-v0.9.0-rc1"
make_prg_URL="https://github.com/leoisl/make_prg/releases/download/v0.2.0_prototype/make_prg_0.2.0_prototype"
make_prg_executable="./make_prg_0.2.0_prototype"
function download_tool {
URL=$1
executable=$2
wget "${URL}" -O "${executable}"
chmod +x "${executable}"
}
download_tool "${pandora_URL}" "${pandora_executable}"
download_tool "${make_prg_URL}" "${make_prg_executable}"
echo "Running pandora without denovo..."
echo "Running ${make_prg_executable} from_msa"
"${make_prg_executable}" from_msa --input msas/ --output_prefix prgs/pangenome
echo "Running ${pandora_executable} index"
"${pandora_executable}" index prgs/pangenome.prg.fa
echo "Running ${pandora_executable} compare"
"${pandora_executable}" compare --genotype -o output_toy_example_no_denovo prgs/pangenome.prg.fa reads/read_index.tsv
echo "Running pandora without denovo - done!"
echo "Running pandora with denovo..."
echo "Running ${pandora_executable} discover"
"${pandora_executable}" discover --outdir pandora_discover_out prgs/pangenome.prg.fa reads/read_index.tsv
echo "Running ${make_prg_executable} update"
"${make_prg_executable}" update --update_DS prgs/pangenome.update_DS --denovo_paths pandora_discover_out/denovo_paths.txt --output_prefix updated_prgs/pangenome_updated
echo "Running ${pandora_executable} index on updated PRGs"
"${pandora_executable}" index updated_prgs/pangenome_updated.prg.fa
echo "Running ${pandora_executable} compare"
"${pandora_executable}" compare --genotype -o output_toy_example_with_denovo updated_prgs/pangenome_updated.prg.fa reads/read_index.tsv
echo "Running pandora with denovo - done!"