-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from TDMedina/release_version
WIP updates to the WES pipeline in preparation for future Gearshift deployment.
- Loading branch information
Showing
45 changed files
with
1,055 additions
and
548 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,7 @@ | ||
queue,ll | ||
prmName,prm01 | ||
prmHost,localhost | ||
root,/ | ||
appsDir,${root}/apps/ | ||
toolChain_max,foss-2018b | ||
toolChain_min,GCCcore-7.3.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,42 @@ | ||
#Parameter mapping | ||
#string groupname | ||
#string tmpName | ||
#string tmpDataDir | ||
#string tempDir | ||
#string intermediateDir | ||
#string projectResultsDir | ||
#string logsDir | ||
|
||
#string gatkVersion | ||
#string indexFile | ||
|
||
#string project | ||
|
||
#string externalSampleID | ||
#string dedupBam | ||
|
||
#string mergedBamRecalibratedTable | ||
#string sampleMergedRecalibratedBam | ||
|
||
|
||
#Load GATK module. | ||
module load "${gatkVersion}" | ||
module list | ||
|
||
# Make a tmp folder for this step, which will be the output location. | ||
makeTmpDir "${sampleMergedRecalibratedBam}" "${intermediateDir}" | ||
tmpSampleMergedRecalibratedBam="${MC_tmpFile}" | ||
|
||
# Create the list of BAM files for input. | ||
bams=($(printf '%s\n' "${dedupBam[@]}" | sort -u )) | ||
inputs=$(printf -- '--input=%s ' $(printf '%s\n' "${bams[@]}")) | ||
|
||
gatk --java-options "-XX:ParallelGCThreads=1 -Djava.io.tmpdir=${tempDir} -Xmx9g" ApplyBQSR \ | ||
--reference="${indexFile}" \ | ||
${inputs} \ | ||
--bqsr-recal-file="${mergedBamRecalibratedTable}" \ | ||
--output="${tmpSampleMergedRecalibratedBam}" | ||
|
||
mv "${tmpSampleMergedRecalibratedBam}" "${sampleMergedRecalibratedBam}" | ||
mv "${tmpSampleMergedRecalibratedBam%.bam}.bai" "${sampleMergedRecalibratedBam%.bam}.bai" | ||
echo "moved ${tmpSampleMergedRecalibratedBam} ${sampleMergedRecalibratedBam}" |
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
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
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
Oops, something went wrong.