Skip to content

Commit

Permalink
Merge pull request #682 from mskcc/correctMafSize
Browse files Browse the repository at this point in the history
correct mafSize
  • Loading branch information
gongyixiao authored Oct 30, 2019
2 parents d54e251 + 9e42683 commit d70bbd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,7 @@ process SomaticFacetsAnnotation {
output:
set idTumor, idNormal, target, file("${outputPrefix}.facets.zygosity.maf"), file("${outputPrefix}.armlevel.unfiltered.txt") into FacetsAnnotationOutputs
set file("${outputPrefix}.armlevel.unfiltered.txt"), file("${outputPrefix}.genelevel.unfiltered.txt") into FacetsArmGeneOutputs
file("file-size.txt") into mafSize

when: tools.containsAll(["facets", "mutect2", "manta", "strelka2"]) && runSomatic

Expand Down Expand Up @@ -1884,6 +1885,7 @@ process SomaticFacetsAnnotation {
sed -i -e s@${idTumor}@${outputPrefix}@g ${outputPrefix}.armlevel.unfiltered.txt
Rscript --no-init-file /usr/bin/annotate-with-zygosity-somatic.R ${outputPrefix}.facets.maf ${outputPrefix}.facets.zygosity.maf
echo -e "${outputPrefix}\t`wc -l ${outputPrefix}.facets.zygosity.maf | cut -d ' ' -f1`" > file-size.txt
"""
}

Expand Down Expand Up @@ -1917,7 +1919,6 @@ process RunNeoantigen {

output:
set idTumor, idNormal, target, file("${outputDir}/*") into neoantigenOut
file("file-size.txt") into mafSize
file("${idTumor}__${idNormal}.all_neoantigen_predictions.txt") into NetMhcStatsOutput
file("${outputDir}/*.maf") into NeoantigenMafOutput

Expand All @@ -1942,7 +1943,6 @@ process RunNeoantigen {
tmpDir = "${outputDir}-tmp"
tmpDirFullPath = "\$PWD/${tmpDir}/" // must set full path to tmp directories for netMHC and netMHCpan to work; for some reason doesn't work with /scratch, so putting them in the process workspace
"""
echo -e "${outputPrefix}\t`wc -l ${mafFile} | cut -d ' ' -f1`" > file-size.txt
export TMPDIR=${tmpDirFullPath}
mkdir -p ${tmpDir}
chmod 777 ${tmpDir}
Expand Down

0 comments on commit d70bbd3

Please sign in to comment.