Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/convertAlleleCounts.r
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/env Rscript
#!/usr/bin/env Rscript

# Description:
# R-script for converting output from AlleleCount to BAF and LogR values.
#
Expand Down
4 changes: 2 additions & 2 deletions bin/run_ascat.r
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
q#!/bin/env Rscript
#!/usr/bin/env Rscript
library("optparse")
option_list = list(
make_option("--tumorbaf", type="character", default=NULL,
Expand Down Expand Up @@ -52,7 +52,7 @@ if(opt$gender=="XY"){


#GC wave correction
ascat.bc = ascat.GCcorrect(ascat.bc, opt$gcfile)
#ascat.bc = ascat.GCcorrect(ascat.bc, opt$gcfile)

#Plot the raw data
ascat.plotRawData(ascat.bc)
Expand Down
6 changes: 3 additions & 3 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,7 @@ process ConvertAlleleCounts {
script:
gender = genderMap[idPatient]
"""
Rscript ${workflow.projectDir}/bin/convertAlleleCounts.r ${idSampleTumor} ${alleleCountTumor} ${idSampleNormal} ${alleleCountNormal} ${gender}
convertAlleleCounts.r ${idSampleTumor} ${alleleCountTumor} ${idSampleNormal} ${alleleCountNormal} ${gender}
"""
}

Expand Down Expand Up @@ -2600,12 +2600,12 @@ process Ascat {
if (params.ascat_purity && params.ascat_ploidy)
"""
for f in *BAF *LogR; do sed 's/chr//g' \$f > tmpFile; mv tmpFile \$f;done
Rscript ${workflow.projectDir}/bin/run_ascat.r --tumorbaf ${bafTumor} --tumorlogr ${logrTumor} --normalbaf ${bafNormal} --normallogr ${logrNormal} --tumorname ${idSampleTumor} --basedir ${baseDir} --gcfile ${acLociGC} --gender ${gender} --purity ${ascat_purity} --ploidy ${ascat_ploidy}
run_ascat.r --tumorbaf ${bafTumor} --tumorlogr ${logrTumor} --normalbaf ${bafNormal} --normallogr ${logrNormal} --tumorname ${idSampleTumor} --basedir ${baseDir} --gcfile ${acLociGC} --gender ${gender} --purity ${ascat_purity} --ploidy ${ascat_ploidy}
"""
else
"""
for f in *BAF *LogR; do sed 's/chr//g' \$f > tmpFile; mv tmpFile \$f;done
Rscript ${workflow.projectDir}/bin/run_ascat.r --tumorbaf ${bafTumor} --tumorlogr ${logrTumor} --normalbaf ${bafNormal} --normallogr ${logrNormal} --tumorname ${idSampleTumor} --basedir ${baseDir} --gcfile ${acLociGC} --gender ${gender}
run_ascat.r --tumorbaf ${bafTumor} --tumorlogr ${logrTumor} --normalbaf ${bafNormal} --normallogr ${logrNormal} --tumorname ${idSampleTumor} --basedir ${baseDir} --gcfile ${acLociGC} --gender ${gender}
"""


Expand Down