-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·21 lines (16 loc) · 1.19 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -ex
METAEUK="$1"
DATAPATH="$2"
RESULTPATH="$3"
SETGAPEXTEND="$4"
MINTARGETCOV="$5"
mkdir -p "${RESULTPATH}"
"${METAEUK}" createdb "${DATAPATH}/contigs.fna" "${RESULTPATH}/contigs" --dbtype 2
"${METAEUK}" createdb "${DATAPATH}/proteins.faa" "${RESULTPATH}/proteins" --dbtype 1
"${METAEUK}" predictexons "${RESULTPATH}/contigs" "${RESULTPATH}/proteins" "${RESULTPATH}/predEx" "${RESULTPATH}/tempFolder" --set-gap-extend "${SETGAPEXTEND}" --metaeuk-tcov "${MINTARGETCOV}"
"${METAEUK}" unitesetstofasta "${RESULTPATH}/contigs" "${RESULTPATH}/proteins" "${RESULTPATH}/predEx" "${RESULTPATH}/predExFlat"
"${METAEUK}" reduceredundancy "${RESULTPATH}/predEx" "${RESULTPATH}/predRed" "${RESULTPATH}/predClust"
"${METAEUK}" unitesetstofasta "${RESULTPATH}/contigs" "${RESULTPATH}/proteins" "${RESULTPATH}/predRed" "${RESULTPATH}/predRedFlat"
"${METAEUK}" groupstoacc "${RESULTPATH}/contigs" "${RESULTPATH}/proteins" "${RESULTPATH}/predClust" "${RESULTPATH}/predClust.tsv"
# check ungrouped and grouped output
perl compare_fasta_results.pl "${RESULTPATH}/predExFlat.fas" "${RESULTPATH}/predRedFlat.fas" "${DATAPATH}/as_should_final_united_exons_aa.fas" "${DATAPATH}/as_should_final_grouped_predictions_rep.fas"