launch_ehdn_outlier.sh 962 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#! /bin/sh

### ASDP PIPELINE ###
## Version: 0.0.1
## Licence: FIXME
## Description: script to launch the wrapper for qsubing outlier analysis by ExpansionHunter denovo script for STR detection
## Usage: FIXME
## Output: FIXME
## Requirements: FIXME

## Author: anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date: 20200215
## Last revision date: 20200215
## Known bugs: None

16
CASE="$1"
17 18
DATE="$(date +"%F_%H-%M-%S")"
OUTPUTDIR="/work/gad/shared/analyse/STR/ExpansionHunterDeNovoOutlier/$DATE"
19
LOGFILE="$OUTPUTDIR/$DATE.$CASE.log"
20 21 22 23 24 25 26 27

# Launch the script on local host with --local option and on SGE with qsub without the --local option
if [ $# -eq 1 ] && [ "x$1" = x--local ]
then
    mkdir -p "$OUTPUTDIR"
    CASE="$CASE" LOGFILE="$LOGFILE" "$(dirname "$0")/wrapper_ehdn_outlier.sh"
else 
    mkdir -p "$OUTPUTDIR"
28
    qsub -pe smp 1 -q batch -N "ehdn_outlier_$CASE" -sync y -v CASE="$CASE",LOGFILE="$LOGFILE" "$(dirname "$0")/wrapper_ehdn_outlier.sh"
29
fi