Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
STR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anne-Sophie Denommé-Pichon
STR
Commits
5b438991
Commit
5b438991
authored
Nov 18, 2019
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create wrapper for STRetch
parent
49c1f48d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
wrapper_stretch.sh
wrapper_stretch.sh
+24
-24
No files found.
wrapper_stretch.sh
View file @
5b438991
#! /bin/sh
#! /bin/sh
### ASDP PIPELINE ###
### ASDP PIPELINE ###
## wrapper_
gangstr
.sh
## wrapper_
stretch
.sh
## Version : 0.0.1
## Version : 0.0.1
## Licence : FIXME
## Licence : FIXME
## Description : a wrapper for qsubing
GangSTR
script for STR detection
## Description : a wrapper for qsubing
STRetch
script for STR detection
## Usage : qsub -pe smp 1 -v INPUTFILE=<path to the bam file>,OUTPUTPREFIX=<output prefix>,[LOGFILE=<path to the log file>] wrapper_
gangstr
.sh
## Usage : qsub -pe smp 1 -v INPUTFILE=<path to the bam file>,OUTPUTPREFIX=<output prefix>,[LOGFILE=<path to the log file>] wrapper_
stretch
.sh
## Output : FIXME
## Output : FIXME
## Requirements : FIXME
## Requirements : FIXME
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date : 201911
04
## Creation Date : 201911
18
## last revision date : 201911
04
## last revision date : 201911
18
## Known bugs : None
## Known bugs : None
# Log file path option
# Log file path option
if
[
-z
"
$LOGFILE
"
]
if
[
-z
"
$LOGFILE
"
]
then
then
LOGFILE
=
gangstr
.
$(
date
+
"%F_%H-%M-%S"
)
.log
LOGFILE
=
stretch
.
$(
date
+
"%F_%H-%M-%S"
)
.log
fi
fi
# Logging
# Logging
...
@@ -31,7 +31,7 @@ if [ ! -f "$INPUTFILE" ]
...
@@ -31,7 +31,7 @@ if [ ! -f "$INPUTFILE" ]
then
then
echo
"Input file '
$INPUTFILE
' does not exist"
echo
"Input file '
$INPUTFILE
' does not exist"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr
.failed
touch
stretch
.failed
exit
1
exit
1
fi
fi
...
@@ -40,32 +40,32 @@ if [ -z "$OUTPUTPREFIX" ]
...
@@ -40,32 +40,32 @@ if [ -z "$OUTPUTPREFIX" ]
then
then
echo
"Output prefix is not specified"
echo
"Output prefix is not specified"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr
.failed
touch
stretch
.failed
exit
1
exit
1
fi
fi
# Launch script command and check exit code
# Launch script command and check exit code
echo
"c
ommand : /work/gad/shared/bin/gangstr/GangSTR-2.4/bin/GangSTR
\
echo
"c
d "
$OUTPUTDIR
"
--bam "
$INPUTFILE
"
\
/work/gad/shared/bin/stretch/STRetch-20190602/tools/bin/bpipe
\
--ref /work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
run -p
\
--regions /work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1
.bed
\
input_regions=/work/gad/shared/bin/stretch/STRetch-20190602/reference-data/hg19.STR_disease_loci
.bed
\
--out "
$OUTPUTPREFIX
"
\
/work/gad/shared/bin/stretch/STRetch-20190602/pipelines/STRetch_wgs_bam_pipeline.groovy
\
--verbose
"
"
$INPUTFILE
"
"
/work/gad/shared/bin/gangstr/GangSTR-2.4/bin/GangSTR
\
cd
"
$OUTPUTDIR
"
--bam
"
$INPUTFILE
"
\
/work/gad/shared/bin/stretch/STRetch-20190602/tools/bin/bpipe
\
--ref
/work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
run
-p
--regions
/work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1
.bed
\
input_regions
=
/work/gad/shared/bin/stretch/STRetch-20190602/reference-data/hg19.STR_disease_loci
.bed
\
--out
"
$OUTPUTPREFIX
"
\
/work/gad/shared/bin/stretch/STRetch-20190602/pipelines/STRetch_wgs_bam_pipeline.groovy
\
--verbose
"
$INPUTFILE
"
gangstr
_exitcode
=
$?
stretch
_exitcode
=
$?
echo
"
gangstr exit code :
$gangstr
_exitcode
"
echo
"
stretch exit code :
$stretch
_exitcode
"
if
[
$
gangstr
_exitcode
!=
0
]
if
[
$
stretch
_exitcode
!=
0
]
then
then
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr
.failed
touch
stretch
.failed
exit
1
exit
1
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment