annotate gen.sh @ 0:dd589aa77943 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
author iuc
date Fri, 27 Mar 2020 17:53:42 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
1 ## Activate MITOS(1) conda env
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
2 conda create -y --quiet --override-channels --channel iuc --channel conda-forge --channel bioconda --channel defaults --name mitos2 mitos=1.0.5 zip
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
3
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
4 conda activate mitos1
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
5
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
6 tmp=$(mktemp -d)
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
7 runmitos.py --input test-data/NC_012920.fasta --code 2 --outdir $tmp --refdir '/home/maze/workspace/tools-iuc/tools/mitos/test-data/mitos1-refdata/' && zip -9 -y -r $tmp/result.zip $tmp
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
8
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
9 for i in bed faa fas geneorder gff seq
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
10 do
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
11 cp $tmp/result.$i test-data/NC_012920.$i
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
12 done
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
13 cp $tmp/result test-data/NC_012920.mito
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
14 cp $tmp/plots/trnA-*.svg test-data/NC_012920_trnA.svg
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
15 cp $tmp/plots/prot.pdf test-data/NC_012920_prot.pdf
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
16 cp $tmp/plots/rna.pdf test-data/NC_012920_ncrna.pdf
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
17 rm -rf $tmp
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
18
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
19 conda deactivate
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
20
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
21 ## Activate MITOS2 conda env
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
22 conda create -y --quiet --override-channels --channel iuc --channel conda-forge --channel bioconda --channel defaults --name mitos2 mitos=2.0.6 zip
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
23
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
24 conda activate mitos2
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
25
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
26 # data for 1st test
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
27 tmp=$(mktemp -d)
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
28 runmitos.py --input test-data/NC_012920.fasta --code 2 --outdir $tmp --refdir './test-data/' --refseqver 'refseq63m/' --intron 0 --oril 0 --orih 0 --finovl 50 --fragovl 0.2 --fragfac 10.0 --evalue 2.0 --cutoff 0.50 --clipfac 10.0 --ncev 0.01 --maxtrnaovl 50 --maxrrnaovl 50 --noplots
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
29 cp $tmp/result.bed test-data/mitos2_NC_012920.bed
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
30 rm -rf $tmp
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
31
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
32 # data for 3rd test
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
33 tmp=$(mktemp -d)
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
34 runmitos.py --input test-data/NC_012920.fasta --code 2 --outdir $tmp --refdir './test-data/' --refseqver 'refseq63m/' --intron 0 --oril 0 --orih 0 --evalue 3.0 --cutoff 0.49 --clipfac 9.0 --ncbicode --alarab --oldstst --ncev 0.1 --sensitive --maxtrnaovl 51 --maxrrnaovl 49 && zip -9 -y -r $tmp/result.zip $tmp
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
35 for i in faa fas geneorder gff mitos seq
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
36 do
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
37 cp $tmp/result.$i test-data/mitos2_NC_012920.$i
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
38 done
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
39 cp $tmp/plots/prot.pdf test-data/mitos2_NC_012920_prot.pdf
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
40 cp $tmp/plots/rna.pdf test-data/mitos2_NC_012920_ncrna.pdf
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
41 rm -rf $tmp
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
42
dd589aa77943 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mitos commit 791f28c8a7194fdd1ecec05ad166932d461899b2"
iuc
parents:
diff changeset
43 conda deactivate