-
Notifications
You must be signed in to change notification settings - Fork 7
/
mintie
executable file
·65 lines (61 loc) · 1.98 KB
/
mintie
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
MINTIELOGO=$(cat <<'END'
__ __ ___ _ _ _____ ___ _____
| \/ |_ _| \ | |_ _|_ _| ____|
| |\/| || || \| | | | | || _|
| | | || || |\ | | | | || |___
|_| |_|___|_| \_| |_| |___|_____|
Method for Inferring Novel Transcripts and Isoforms using Equivalences classes
END
)
while [[ $# -gt 0 ]]
do
arg="$1"
case $arg in
-h)
echo "$MINTIELOGO"
echo ""
echo "MINTIE wrapper script"
echo ""
echo "Invokes the MINTIE bpipe pileline."
echo "See https://github.com/Oshlack/MINTIE/wiki/ for further information on using MINTIE."
echo -e "\nusage (info): mintie [-h] "
echo -e "\nusage (setup references): mintie -r "
echo -e "\nusage (setup test data): mintie -t "
echo -e "\nusage (wrapper): mintie -w -p [params.txt] cases/*.fastq.gz controls/*.fastq.gz "
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"
echo -e "\nusage (direct single-end):\n export \$MINTIEDIR=$MINTIE_HOME;\n bpipe run -@\$MINTIEDIR/params.txt [ <other bpipe options >] \n\t \$MINTIEDIR/MINTIE_SE.groovy cases/*.fastq.gz controls/*fastq.gz"
echo ""
exit 0
shift
;;
-r)
echo -e "Generating references...\n"
cd $MINTIE_HOME && ./setup_references_hg38.sh ;
exit 0
shift
;;
-t)
echo -e "Setting up test data...\n"
cp -r $MINTIE_HOME/test/data/c* . ;
cp -r $MINTIE_HOME/test/test_params.txt test_params.txt ;
exit 0
shift
;;
-w)
ECHO=""
shift
;;
-p)
MINTIEPARAMSFILE=$2
shift
shift
;;
*) # files
MINTIEFILES+=("$1")
shift
;;
esac
done
set -- "${MINTIEFILES[@]}"
$ECHO bpipe run @${MINTIEPARAMSFILE} $MINTIE_HOME/MINTIE.groovy "$@"