Skip to content

Commit

Permalink
Merge pull request #4 from Gerbenvandervries/master
Browse files Browse the repository at this point in the history
added boxy parameter, fix for environment check
  • Loading branch information
RoanKanninga authored Jan 12, 2017
2 parents 26905d2 + ed46c00 commit e291bd8
Show file tree
Hide file tree
Showing 10 changed files with 236 additions and 225 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# NGS_RNA
# NGS_RNA
9 changes: 4 additions & 5 deletions generate_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ module load NGS_RNA/3.2.4-Molgenis-Compute-v16.05.1-Java-1.8.0_45
module list

HOST=$(hostname)
##Running script for checking the environment variables
sh ${EBROOTNGS_RNA}/checkEnvironment.sh ${HOST}
thisDir=$(pwd)

ENVIRONMENT=$(awk '{print $1}' ./environment_checks.txt)
TMPDIR=$(awk '{print $2}' ./environment_checks.txt)
GROUP=$(awk '{print $3}' ./environment_checks.txt)
ENVIRONMENT="parameters.${HOST%%.*}.csv"
TMPDIRECTORY=$(basename $(cd ../../ && pwd ))
GROUP=$(basename $(cd ../../../ && pwd ))

PROJECT="PROJECTNAME"
RUNID="run01"
Expand Down
8 changes: 8 additions & 0 deletions parameters.boxy.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#### ENVIRONMENT VARIABLES ####
queue,gaf
workDir,/groups/umcg-gaf/
dataDir,${root}/data/
tmpName,tmp03
root,/apps/
tempDir,${workDir}/${tmpName}/tmp/
permanentDir,${workDir}/prm03
10 changes: 5 additions & 5 deletions parameters.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ jobname,jobname
##### Tools and versions #####
jdkVersion,Java/1.7.0_80
NGSUtilsVersion,ngs-utils
NGSRNAVersion,NGS_RNA/3.2.3-Molgenis-Compute-v16.05.1-Java-1.8.0_45
NGSRNAVersion,NGS_RNA/3.2.4
fastqcVersion,FastQC/0.11.3-Java-1.7.0_80
samtoolsVersion,SAMtools/1.2-goolf-1.7.20
samtoolsVersion,SAMtools/1.2-foss-2015b
RVersion,R/3.2.1-goolf-1.7.20
wkhtmltopdfVersion,wkhtmltopdf/0.11.0_rc1-static-amd64
picardVersion,picard/1.130-Java-1.7.0_80
anacondaVersion,Anaconda/1.8.0-Linux-x86_64
htseqVersion,HTSeq/0.6.1p1
hisatVersion,hisat/0.1.5-beta-goolf-1.7.20
hisatVersion,hisat/0.1.5-beta-foss-2015b
pythonVersion,Python/2.7.9-goolf-1.7.20
gatkVersion,GATK/3.4-46-Java-1.7.0_80
ghostscriptVersion,Ghostscript/9.16-goolf-1.7.20
gatkVersion,GATK/3.6-Java-1.8.0_74
ghostscriptVersion,Ghostscript/9.16-foss-2015b
kallistoVersion,Kallisto/0.43.0-goolf-1.7.20
BBMapVersion,BBMap/35.69-Java-1.7.0_80
picardJar,picard.jar
Expand Down
2 changes: 1 addition & 1 deletion parameters.homo_sapiens.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ indexFolderName,human_g1k_v37
dbSNPFileID,dbsnp_138.${genome}
indicesDir,${dataDir}/ftp.broadinstitute.org/bundle/2.8/${genome}/
dbSNPDir,${dataDir}/dbSNP/
hisatIndex,${dataDir}/ftp.broadinstitute.org/bundle/2.8/${genome}/${hisatVersion}/${indexFolderName}
hisatIndex,${dataDir}/ftp.broadinstitute.org/bundle/2.8/${genome}/hisat/0.1.5-beta-goolf-1.7.20/${indexFolderName}
kallistoIndex,${dataDir}/ftp.ensembl.org/pub/release-75/fasta/homo_sapiens/Homo_sapiens.GRCh37.75.cdna.all.fa.idx
indexFileFastaIndex,${indexSpecies}.fai
indexSpecies,${indicesDir}/${indexFileID}.fasta
Expand Down
5 changes: 3 additions & 2 deletions protocols/CreateExternSamplesProjects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#string jdkVersion
#string groupname
#string NGSUtilsVersion
#string NGSRNAVersion
#list sequencingStartDate
#list sequencer
#list run
Expand All @@ -36,7 +37,7 @@

umask 0007
module load Molgenis-Compute/${computeVersion}
module load ngs-utils/16.09.1
module load ${NGSUtilsVersion}

module list
#
Expand Down Expand Up @@ -96,7 +97,7 @@ cd $ROCKETPOINT

echo "before splitting"
echo `pwd`
module load ${ngsUtilsVersion}
module load ${NGSRNAVersion}

#
# TODO: array for each sample:
Expand Down
8 changes: 5 additions & 3 deletions protocols/HisatAlignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ tmpSortedBai=${MC_tmpFile}

#Load modules
${stage} ${hisatVersion}
${stage} ${samtoolsVersion}
${stage} ${picardVersion}

#check modules
${checkStage}

Expand All @@ -75,6 +72,11 @@ echo "## "$(date)" Start $0"
perl -nle 'print $2,"|\t",$1 while (m%^[ ]*([.0-9\%]+\s\(.+\)|[.0-9\%]+).(.+)%g);' ${intermediateDir}/${externalSampleID}_L${lane}.hisat.log > ${intermediateDir}/${externalSampleID}_L${lane}.hisat.final.log


${stage} ${picardVersion}

#check modules
${checkStage}

java -XX:ParallelGCThreads=4 -jar -Xmx6g ${EBROOTPICARD}/${picardJar} SortSam \
INPUT=${tmpAlignedSam} \
OUTPUT=${tmpSortedBam} \
Expand Down
2 changes: 1 addition & 1 deletion test/autotest_generate_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sh ${EBROOTMOLGENISMINCOMPUTE}/molgenis_compute.sh \
-o "workflowpath=${WORKFLOW};outputdir=scripts/jobs;\
groupname=${GROUP};\
mainParameters=${WORKDIR}/generatedscripts/${PROJECT}/parameters.csv;\
ngsversion='NGS_RNA/3.2.4-Molgenis-Compute-v16.05.1-Java-1.8.0_45';\
ngsversion='NGS_RNA/3.2.4';\
worksheet=${WORKDIR}/generatedscripts/${PROJECT}/${PROJECT}.csv;\
parameters_build=${WORKDIR}/generatedscripts/${PROJECT}/parameters.${BUILD}.csv;\
parameters_species=${WORKDIR}/generatedscripts/${PROJECT}/parameters.${SPECIES}.csv;\
Expand Down
414 changes: 207 additions & 207 deletions test/results/PlatinumSubset_NGS_RNA.variant.calls.genotyped.chr1.true.vcf

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions workflow_lexogen.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ step,protocol,dependencies
s00_TrimReads,protocols/TrimReads.sh,
s01_FastQC,protocols/FastQC.sh,s00_TrimReads
s02_HisatAlignment,protocols/HisatAlignment.sh,s00_TrimReads
s02_AddOrReplaceReadGroups,protocols/AddOrReplaceReadGroups.sh,s02_HisatAlignment
s03_MergeBam,protocols/MergeBam.sh,s02_HisatAlignment
s04_MarkDuplicates,protocols/MarkDuplicates.sh,s03_MergeBam
s05_QCStats,protocols/QCStats.sh,s04_MarkDuplicates
Expand Down

0 comments on commit e291bd8

Please sign in to comment.