|
1 | 1 | #!/bin/bash |
2 | 2 | argumentarray=() |
| 3 | + |
| 4 | +green="\033[1;32m" |
| 5 | +red="\033[1;31m" |
| 6 | +reset="\033[0m" |
| 7 | + |
| 8 | +die () { |
| 9 | + echo -e $red"############"$reset |
| 10 | + echo -e $red$1$reset |
| 11 | + echo -e $red"Test failed!"$reset |
| 12 | + echo -e $red"############"$reset |
| 13 | + exit 1 |
| 14 | +} |
3 | 15 | ##############single argument changes |
4 | 16 | #basic |
5 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --output test_files/comp_data/panfeed_out/basic &> test_files/comp_data/logs/basic.log |
| 17 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --output test_files/comp_data/panfeed_out/basic &> test_files/comp_data/logs/basic.log || die "Basic run failed" |
6 | 18 | argumentarray+=("basic") |
| 19 | +#cores |
| 20 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --cores 4 --output test_files/comp_data/panfeed_out/cores &> test_files/comp_data/logs/cores.log || die "Multiple cores run failed" |
| 21 | +argumentarray+=("cores") |
7 | 22 | #no k-mers logged |
8 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --output test_files/comp_data/panfeed_out/nolog &> test_files/comp_data/logs/nolog.log |
| 23 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --output test_files/comp_data/panfeed_out/nolog &> test_files/comp_data/logs/nolog.log || die "No k-mers logged run failed" |
9 | 24 | argumentarray+=("nolog") |
10 | 25 | #upstream |
11 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 0 --output test_files/comp_data/panfeed_out/upstream &> test_files/comp_data/logs/upstream.log |
| 26 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 0 --output test_files/comp_data/panfeed_out/upstream &> test_files/comp_data/logs/upstream.log || die "Upstream run failed" |
12 | 27 | argumentarray+=("upstream") |
13 | 28 | #downstream |
14 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 0 --downstream 100 --output test_files/comp_data/panfeed_out/downstream &> test_files/comp_data/logs/downstream.log |
| 29 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 0 --downstream 100 --output test_files/comp_data/panfeed_out/downstream &> test_files/comp_data/logs/downstream.log || die "Downstream run failed" |
15 | 30 | argumentarray+=("downstream") |
16 | 31 | #up-/downstream |
17 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 100 --output test_files/comp_data/panfeed_out/updownstream &> test_files/comp_data/logs/updownstream.log |
| 32 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 100 --output test_files/comp_data/panfeed_out/updownstream &> test_files/comp_data/logs/updownstream.log || die "Up-/downstream run failed" |
18 | 33 | argumentarray+=("updownstream") |
19 | 34 | #up-/downstream |
20 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 100 --downstream-start-codon --output test_files/comp_data/panfeed_out/downstart &> test_files/comp_data/logs/downstart.log |
| 35 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --upstream 100 --downstream 100 --downstream-start-codon --output test_files/comp_data/panfeed_out/downstart &> test_files/comp_data/logs/downstart.log || die "Downstream start codon run failed" |
21 | 36 | argumentarray+=("downstart") |
22 | 37 | #non-canonical |
23 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --non-canonical --output test_files/comp_data/panfeed_out/noncanonical &> test_files/comp_data/logs/noncanonical.log |
24 | | -argumentarray+=("noncanonical") |
| 38 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --non-canonical --output test_files/comp_data/panfeed_out/noncanonical &> test_files/comp_data/logs/noncanonical.log || die "Non-canonical run failed" |
| 39 | +argumentarray+=("noncanonical") |
25 | 40 | #no filter |
26 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --no-filter --output test_files/comp_data/panfeed_out/nofilter &> test_files/comp_data/logs/nofilter.log |
| 41 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --no-filter --output test_files/comp_data/panfeed_out/nofilter &> test_files/comp_data/logs/nofilter.log || die "No filter run failed" |
27 | 42 | argumentarray+=("nofilter") |
28 | 43 | #high maf |
29 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --maf 0.1 --output test_files/comp_data/panfeed_out/highmaf &> test_files/comp_data/logs/highmaf.log |
| 44 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --maf 0.1 --output test_files/comp_data/panfeed_out/highmaf &> test_files/comp_data/logs/highmaf.log || die "High MAF run failed" |
30 | 45 | argumentarray+=("highmaf") |
31 | 46 | #consider missing |
32 | | -python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --consider-missing --output test_files/comp_data/panfeed_out/considermissing &> test_files/comp_data/logs/considermissing.log |
| 47 | +python ../panfeed-runner.py --gff test_files/gffs/ --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --consider-missing --output test_files/comp_data/panfeed_out/considermissing &> test_files/comp_data/logs/considermissing.log || die "Consider missing run failed" |
33 | 48 | argumentarray+=("considermissing") |
34 | 49 | #fileoffiles |
35 | | -python ../panfeed-runner.py --gff test_files/input_gffs.txt --fasta test_files/input_fastas.txt --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --output test_files/comp_data/panfeed_out/fileoffiles &> test_files/comp_data/logs/fileoffiles.log |
| 50 | +python ../panfeed-runner.py --gff test_files/input_gffs.txt --fasta test_files/input_fastas.txt --presence-absence test_files/gene_presence_absence.csv --targets test_files/stroi.txt --output test_files/comp_data/panfeed_out/fileoffiles &> test_files/comp_data/logs/fileoffiles.log || die "File of files run failed" |
36 | 51 | argumentarray+=("fileoffiles") |
37 | 52 | ##############multiple argument changes |
38 | 53 | ##############compare output files |
|
0 commit comments