Skip to content

Commit 88b2868

Browse files
committed
Added wrapper script
1 parent aa9e0db commit 88b2868

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

mintie

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
3+
MINTIELOGO=$(cat <<'END'
4+
__ __ ___ _ _ _____ ___ _____
5+
| \/ |_ _| \ | |_ _|_ _| ____|
6+
| |\/| || || \| | | | | || _|
7+
| | | || || |\ | | | | || |___
8+
|_| |_|___|_| \_| |_| |___|_____|
9+
10+
Method for Inferring Novel Transcripts and Isoforms using Equivalences classes
11+
END
12+
)
13+
14+
while [[ $# -gt 0 ]]
15+
do
16+
arg="$1"
17+
case $arg in
18+
-h)
19+
echo "$MINTIELOGO"
20+
echo ""
21+
echo "MINTIE wrapper script"
22+
echo ""
23+
echo "Invokes the MINTIE bpipe pileline."
24+
echo "See https://github.com/Oshlack/MINTIE/wiki/ for further information on using MINTIE."
25+
echo -e "\nusage (info): mintie [-h] "
26+
echo -e "\nusage (setup references): mintie -r "
27+
echo -e "\nusage (setup test data): mintie -t "
28+
echo -e "\nusage (wrapper): mintie -w -p [params.txt] cases/*.fastq.gz controls/*.fastq.gz "
29+
echo -e "\nusage (direct):\n export \$MINTIEDIR=$MINTIE_HOME;\n bpipe run -@$MINTIEDIR/params.txt [ <other bpipe options >] \n\t \$MINTIEDIR/MINTIE.groovy cases/*.fastq.gz controls/*fastq.gz"
30+
echo ""
31+
exit 0
32+
shift
33+
;;
34+
-r)
35+
echo -e "Generating references...\n"
36+
cd $MINTIE_HOME && ./setup_references_hg38.sh ;
37+
exit 0
38+
shift
39+
;;
40+
-t)
41+
echo -e "Setting up test data...\n"
42+
cp -r $MINTIE_HOME/test/data/c* . ;
43+
cp -r $MINTIE_HOME/test/test_params.txt test_params.txt ;
44+
exit 0
45+
shift
46+
;;
47+
-w)
48+
ECHO=""
49+
shift
50+
;;
51+
-p)
52+
MINTIEPARAMSFILE=$2
53+
shift
54+
shift
55+
;;
56+
*) # files
57+
MINTIEFILES+=("$1")
58+
shift
59+
;;
60+
esac
61+
done
62+
63+
set -- "${MINTIEFILES[@]}"
64+
$ECHO bpipe run @${MINTIEPARAMSFILE} $MINTIE_HOME/MINTIE.groovy "$@"

0 commit comments

Comments
 (0)