-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/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 "" | ||
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 "$@" |