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
f6feb237
Commit
f6feb237
authored
Nov 03, 2019
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a wrapper launcher for ExpansionHunter
parent
ac7f9b9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
.gitignore
.gitignore
+6
-2
launch_expansionhunter.sh
launch_expansionhunter.sh
+10
-0
wrapper_expansionhunter.sh
wrapper_expansionhunter.sh
+6
-15
No files found.
.gitignore
View file @
f6feb237
*~
*~
*.bam
*.bam
*.bai
*.bai
\ No newline at end of file
*.sh.o*
*.sh.po*
*.failed
#*#
\ No newline at end of file
launch_expansionhunter.sh
100644 → 100755
View file @
f6feb237
...
@@ -13,3 +13,13 @@
...
@@ -13,3 +13,13 @@
## Creation Date : 20191102
## Creation Date : 20191102
## last revision date : 20191102
## last revision date : 20191102
## Known bugs : None
## Known bugs : None
INPUTFILE
=
/archive/gad/shared/bam_new_genome_temp/dijen017.bam
OUTPUTPREFIX
=
test
LOGFILE
=
/user1/gad/an1770de/Tools/ExpansionHunter/20191102/log.log
qsub
-pe
smp 1
-q
batch
-v
INPUTFILE
=
"
$INPUTFILE
"
,OUTPUTPREFIX
=
"
$OUTPUTPREFIX
"
,LOGFILE
=
"
$LOGFILE
"
wrapper_expansionhunter.sh
wrapper_expansionhunter.sh
View file @
f6feb237
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
## Version : 0.0.1
## Version : 0.0.1
## Licence : FIXME
## Licence : FIXME
## Description : a wrapper for qsubing ExpansionHunter script for STR detection
## Description : a wrapper for qsubing ExpansionHunter script for STR detection
## Usage : qsub -pe smp 1 -v INPUTFILE=
/path/to/the/matrix/file>,OUTPUTDIR=</path/to/the/output/dir>,[BASENAME=analysis_basename],[TESTTYPE=et|qlf|lrt],[LOGFILE=/path/to/the/log/file],[CONFIGFILE=/path/to/the/config/file
] wrapper_expansionhunter.sh
## Usage : qsub -pe smp 1 -v INPUTFILE=
<path to the bam file>,OUTPUTPREFIX=<output prefix>,[LOGFILE=<path to the log file>
] wrapper_expansionhunter.sh
## Output : FIXME
## Output : FIXME
## Requirements : FIXME
## Requirements : FIXME
...
@@ -29,7 +29,7 @@ echo "$(date +"%F_%H-%M-%S"): START"
...
@@ -29,7 +29,7 @@ echo "$(date +"%F_%H-%M-%S"): START"
# Check if input file exists
# Check if input file exists
if
[
!
-f
"
$INPUTFILE
"
]
if
[
!
-f
"
$INPUTFILE
"
]
then
then
echo
"Input file 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
expansionhunter.failed
touch
expansionhunter.failed
exit
1
exit
1
...
@@ -46,21 +46,17 @@ fi
...
@@ -46,21 +46,17 @@ fi
# Create .bam and .bai symbolic links
# Create .bam and .bai symbolic links
TMPDIR
=
"
$(
mktemp
-d
)
"
TMPDIR
=
"
$(
mktemp
-d
)
"
ln
-s
"
$INPUTFILE
"
"
$TMPDIR
/
$(
basename
"
$INPUTFLE
"
)
"
ln
-s
"
$INPUTFILE
"
"
$TMPDIR
/
$(
basename
"
$INPUTF
I
LE
"
)
"
ln
-s
"
$(
echo
"
$INPUTFILE
"
|
sed
's/\.bam$/.bai/'
)
"
"
$TMPDIR
/
$(
basename
"
$INPUTFILE
"
)
.bai"
ln
-s
"
$(
echo
"
$INPUTFILE
"
|
sed
's/\.bam$/.bai/'
)
"
"
$TMPDIR
/
$(
basename
"
$INPUTFILE
"
)
.bai"
#FIXME TODO create a pipeline to launch the qsub script
#ln -s /archive/gad/shared/bam_new_genome_temp/dijen017.bam ./dijen017.bam
#ln -s /archive/gad/shared/bam_new_genome_temp/dijen017.bai ./dijen017.bam.bai
# Launch script command and check exit code
# Launch script command and check exit code
echo
"command : /work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/bin/ExpansionHunter
\
echo
"command : /work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/bin/ExpansionHunter
\
--reads "
$TMPDIR
/
$(
basename
"
$INPUTFLE
"
)
"
\
--reads "
$TMPDIR
/
$(
basename
"
$INPUTF
I
LE
"
)
"
\
--reference /work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--reference /work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--variant-catalog /work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/variant_catalog/hg19/variant_catalog.json
\
--variant-catalog /work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/variant_catalog/hg19/variant_catalog.json
\
--output-prefix
"
$OUTPUTPREFIX
"
"
--output-prefix
$OUTPUTPREFIX
"
/work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/bin/ExpansionHunter
\
/work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/bin/ExpansionHunter
\
--reads
"
$TMPDIR
/
$(
basename
"
$INPUTFLE
"
)
"
\
--reads
"
$TMPDIR
/
$(
basename
"
$INPUTF
I
LE
"
)
"
\
--reference
/work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--reference
/work/gad/shared/pipeline/hg19/index/hg19_essential.fa
\
--variant-catalog
/work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/variant_catalog/hg19/variant_catalog.json
\
--variant-catalog
/work/gad/shared/bin/expansionhunter/ExpansionHunter-v3.1.2-linux_x86_64/variant_catalog/hg19/variant_catalog.json
\
--output-prefix
"
$OUTPUTPREFIX
"
--output-prefix
"
$OUTPUTPREFIX
"
...
@@ -81,8 +77,3 @@ then
...
@@ -81,8 +77,3 @@ then
fi
fi
echo
"
$(
date
+
"%F_%H-%M-%S"
)
: END"
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