Skip to content

Commit

Permalink
Merge pull request #279 from RoanKanninga/master
Browse files Browse the repository at this point in the history
fixing Manta WGS + wgs resource parameters for Gavin
  • Loading branch information
pneerincx authored Aug 16, 2021
2 parents 5decff4 + 809c4c4 commit 33e2e1c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 19 deletions.
4 changes: 2 additions & 2 deletions parameters_resources_wgs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mem_protocols_DecisionTree,5gb
mem_protocols_DetermineTrio,1gb
mem_protocols_FastQC,2gb
mem_protocols_FlagstatMetrics,1gb
mem_protocols_Gavin,4gb
mem_protocols_Gavin,24gb
mem_protocols_GenderCalculate,3gb
mem_protocols_GenderCheck,3gb
mem_protocols_InSilicoConcordance,25gb
Expand Down Expand Up @@ -116,7 +116,7 @@ walltime_protocols_PrepareFastQ,05:59:00
walltime_protocols_SnpEff,05:59:00
walltime_protocols_SnpFiltration,05:59:00
walltime_protocols_SplitIndelsAndSNPs,05:59:00
walltime_protocols_VariantCalling,05:59:00
walltime_protocols_VariantCalling,15:59:00
walltime_protocols_VariantGenotyping,05:59:00
walltime_protocols_VcfToTable,05:59:00
walltime_protocols_XHMM,05:59:00
Expand Down
2 changes: 1 addition & 1 deletion protocols/CopyToResultsDir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ printf '%s\n' '.. finished.'
printf 'Copying GAVIN results to results directory .'
for sample in "${UNIQUESAMPLES[@]}"
do
if [ -f "${intermediateDir}/${sample}.GAVIN.rlv.vcf" ]
if [ -f "${intermediateDir}/${sample}.GAVIN.rlv.vcf.gz" ]
then
rsync -a "${intermediateDir}/${sample}.GAVIN.rlv.vcf.gz" "${projectResultsDir}/variants/GAVIN/"
printf '.'
Expand Down
2 changes: 1 addition & 1 deletion protocols/CoverageCalculations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ then
echo "${sampleNameID}: percentage $percentage ($count/$totalcount) is more than 10 procent, skipped"
echo "${sampleNameID}: percentage $percentage ($count/$totalcount) is more than 10 procent, skipped" >> "${projectResultsDir}/coverage/${externalSampleID}.rejected"
else
rsync -a "${sampleNameID}.${perTarget}.coveragePerTarget.txt" "${projectResultsDir}/coverage/CoveragePerBase/${Gender,,}/"
rsync -a "${sampleNameID}.${perTarget}.coveragePerTarget.txt" "${projectResultsDir}/coverage/CoveragePerTarget/${Gender,,}/"
fi
fi
fi
Expand Down
24 changes: 15 additions & 9 deletions protocols/CreateExternSamplesProjects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,28 @@ then
echo "Bedfile does not exist! Exiting"
exit 1
fi
if [[ "${capturingKitProject,,}" == *"exoom"* || "${capturingKitProject,,}" == *"exome"* || "${capturingKitProject,,}" == *"all_exon_v1"* || "${capturingKitProject,,}" == *"wgs"* ]]
if [[ "${capturingKitProject,,}" == *"exoom"* || "${capturingKitProject,,}" == *"exome"* || "${capturingKitProject,,}" == *"all_exon_v1"* ]]
then
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_exome.csv"
batching="_chr"
if [ ! -e "${coveragePerTargetDir}/${captKit}/${captKit}" ]
then
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_exome.csv"
if [ ! -e "${coveragePerTargetDir}/${captKit}/${captKit}" ]
then
echo "Bedfile in ${coveragePerTargetDir} does not exist! Exiting"
exit 1
fi
echo "ls ${coveragePerTargetDir}/${captKit}/${captKit}"
exit 1
fi
elif [[ "${capturingKitProject,,}" == *"wgs"* ]]
then
batching="_chr"
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_wgs.csv"
else
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_exome.csv"
if [ ! -e "${coveragePerBaseDir}/${captKit}/${captKit}" ]
then
then
echo "Bedfile in ${coveragePerBaseDir} does not exist! Exiting"
exit 1
fi
echo "ls ${coveragePerTargetDir}/${captKit}/${captKit}"
exit 1
fi
fi

if [ -f ".compute.properties" ];
Expand Down
10 changes: 5 additions & 5 deletions protocols/CreateInhouseProjects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ then
elif [[ "${capturingKitProject,,}" == *"wgs"* ]]
then
batching="_chr"
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_exome.csv"
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_wgs.csv"
else
resourcesParameters="${EBROOTNGS_DNA}/parameters_resources_exome.csv"
if [ ! -e "${coveragePerBaseDir}/${captKit}/${captKit}" ]
then
echo "Bedfile in ${coveragePerBaseDir} does not exist! Exiting"
then
echo "Bedfile in ${coveragePerBaseDir} does not exist! Exiting"
echo "ls ${coveragePerTargetDir}/${captKit}/${captKit}"
exit 1
fi
exit 1
fi
fi

if [ "${captKit}" == *"ONCO"* ]
Expand Down
2 changes: 1 addition & 1 deletion protocols/Manta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,5 @@ then

else
echo "WGS sample, just copy"
cp "${mantaDir}/results/variants/"{candidateSV,candidateSmallIndels,diploidSV}".vcf.gz."{,tbi} "${mantaDir}/results/variants/real/"
cp "${mantaDir}/results/variants/"{candidateSV,candidateSmallIndels,diploidSV}".vcf.gz"{,.tbi} "${mantaDir}/results/variants/real/"
fi

0 comments on commit 33e2e1c

Please sign in to comment.