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
dbc2c1c7
Commit
dbc2c1c7
authored
Nov 18, 2019
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create wrappers for STRetch and STRScan
parent
1c9c216b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
140 additions
and
0 deletions
+140
-0
wrapper_stretch.sh
wrapper_stretch.sh
+72
-0
wrapper_strscan.sh
wrapper_strscan.sh
+68
-0
No files found.
wrapper_stretch.sh
0 → 100755
View file @
dbc2c1c7
#! /bin/sh
### ASDP PIPELINE ###
## wrapper_gangstr.sh
## Version : 0.0.1
## Licence : FIXME
## Description : a wrapper for qsubing GangSTR 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
## Output : FIXME
## Requirements : FIXME
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date : 20191104
## last revision date : 20191104
## Known bugs : None
# Log file path option
if
[
-z
"
$LOGFILE
"
]
then
LOGFILE
=
gangstr.
$(
date
+
"%F_%H-%M-%S"
)
.log
fi
# Logging
exec
1>>
"
$LOGFILE
"
2>&1
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: START"
# Check if input file exists
if
[
!
-f
"
$INPUTFILE
"
]
then
echo
"Input file '
$INPUTFILE
' does not exist"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr.failed
exit
1
fi
# Check if output prefix is specified
if
[
-z
"
$OUTPUTPREFIX
"
]
then
echo
"Output prefix is not specified"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr.failed
exit
1
fi
# Launch script command and check exit code
echo
"command : /work/gad/shared/bin/gangstr/GangSTR-2.4/bin/GangSTR
\
--bam "
$INPUTFILE
"
\
--ref /work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--regions /work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1.bed
\
--out "
$OUTPUTPREFIX
"
\
--verbose"
/work/gad/shared/bin/gangstr/GangSTR-2.4/bin/GangSTR
\
--bam
"
$INPUTFILE
"
\
--ref
/work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--regions
/work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1.bed
\
--out
"
$OUTPUTPREFIX
"
\
--verbose
gangstr_exitcode
=
$?
echo
"gangstr exit code :
$gangstr_exitcode
"
if
[
$gangstr_exitcode
!=
0
]
then
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr.failed
exit
1
fi
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
wrapper_strscan.sh
0 → 100755
View file @
dbc2c1c7
#! /bin/sh
### ASDP PIPELINE ###
## wrapper_gangstr.sh
## Version : 0.0.1
## Licence : FIXME
## Description : a wrapper for qsubing STRScan 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_strscan.sh
## Output : FIXME
## Requirements : FIXME
## Author : anne-sophie.denomme-pichon@u-bourgogne.fr
## Creation Date : 20191115
## last revision date : 20191115
## Known bugs : None
# Log file path option
if
[
-z
"
$LOGFILE
"
]
then
LOGFILE
=
strscan.
$(
date
+
"%F_%H-%M-%S"
)
.log
fi
# Logging
exec
1>>
"
$LOGFILE
"
2>&1
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: START"
# Check if input file exists
if
[
!
-f
"
$INPUTFILE
"
]
then
echo
"Input file '
$INPUTFILE
' does not exist"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
strscan.failed
exit
1
fi
# Check if output prefix is specified
if
[
-z
"
$OUTPUTPREFIX
"
]
then
echo
"Output prefix is not specified"
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
strscan.failed
exit
1
fi
# Launch script command and check exit code
echo
"command : /work/gad/shared/bin/strscan/STRScan_2019-11-05/STRScan
\
-i "
$INPUTFILE
"
\
-p /work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1.bed
\
-o "
$OUTPUTFILE
""
/work/gad/shared/bin/strscan/STRScan_2019-11-05/STRScan
\
-i
"
$INPUTFILE
"
\
-p
/work/gad/shared/bin/gangstr/STRregions/hg19_ver13_1.bed
\
-o
"
$OUTPUTFILE
"
strscan_exitcode
=
$?
echo
"strscan exit code :
$strscan_exitcode
"
if
[
$strscan_exitcode
!=
0
]
then
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
touch
gangstr.failed
exit
1
fi
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
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