ISCAP vor 6 Jahren
Ursprung
Commit
a5ba72f719
4 geänderte Dateien mit 4 neuen und 16 gelöschten Zeilen
  1. +3
    -11
      cn.mops.R
  2. +0
    -1
      inputs
  3. +1
    -2
      tasks/cn_mops.wdl
  4. +0
    -2
      workflow.wdl

+ 3
- 11
cn.mops.R Datei anzeigen

@@ -12,7 +12,7 @@
#2 Set up
#
##2.1 load package
library(cn.mops)
library(cn.mops) #cn.mops_1.16.2
#
##2.2 load options
#
@@ -35,12 +35,11 @@ if("--help" %in% args) {
--TumorSampleID=the name of the TUMOR sample - string
--bed_file=BED (Browser Extensible Data) lines have four required fields included chr, start, end and gene annotation. - string
--workDir=working directory - character
--outputDir=where you want to output the pictures - character
--help - print this text
Example:
Rscript cn.mops.R --Tumor=TumorSample.bam --Normal=NormalSample.bam --TumorSampleID=TumorSampleID --bed_file=bedFile --workDir=./ --outputDir=./ \n\n")
Rscript cn.mops.R --Tumor=TumorSample.bam --Normal=NormalSample.bam --TumorSampleID=TumorSampleID --bed_file=bedFile --workDir=./ \n\n") #--outputDir=./
q(save="no")
}
@@ -87,13 +86,6 @@ if(is.null(args$workDir)) {
workDir=args$workDir
}
#
## Arg6 default
if(is.null(args$outputDir)) {
stop("outputDir is missing")
}else{
outputDir=args$outputDir
}
#
#3 Run cn.mops
# Tumor <- c("Illumina_pt2_B1700.chr20_X.sorted.deduped.bam")
# Normal <- c("Illumina_pt2_B17NC.chr20_X.sorted.deduped.bam")
@@ -141,7 +133,7 @@ Res <- data.frame(sampleName=Res$sampleName,chr=Res$chr,
CN=Res$CN)
#
##3.4 Output
write.table(Res,paste0(outputDir,"/",TumorSampleID,"cn.mops.res.txt"),sep="\t",
write.table(Res,paste0(TumorSampleID,"cn.mops.res.txt"),sep="\t",
col.names=T,row.names=F,quote=F)



+ 0
- 1
inputs Datei anzeigen

@@ -1,7 +1,6 @@
{
"{{ project_name }}.TumorBam": "{{ TumorBam }}",
"{{ project_name }}.TumorSampleID": "{{ TumorSampleID }}",
"{{ project_name }}.outputDir": "{{ outputDir }}",
"{{ project_name }}.docker": "{{ docker }}",
"{{ project_name }}.cluster_config": "{{ cluster_config }}",
"{{ project_name }}.workDir": "{{ workDir }}",

+ 1
- 2
tasks/cn_mops.wdl Datei anzeigen

@@ -4,13 +4,12 @@ task CNV {
String TumorSampleID
String bed_file
String workDir
String outputDir
String docker
String disk_size
String cluster_config
command <<<
Rscript cn.mops.R --Tumor=${TumorBam} --Normal=${NormalBam} --TumorID==${TumorSampleID} --bed_file=${bed_file} --workDir=${workDir} --outputDir=${outputDir}
Rscript cn.mops.R --Tumor=${TumorBam} --Normal=${NormalBam} --TumorID==${TumorSampleID} --bed_file=${bed_file} --workDir=${workDir}
>>>

runtime {

+ 0
- 2
workflow.wdl Datei anzeigen

@@ -7,7 +7,6 @@ workflow {{project_name}} {
String TumorSampleID
String bed_file
String workDir
String outputDir
String docker
String disk_size
String cluster_config
@@ -19,7 +18,6 @@ workflow {{project_name}} {
TumorSampleID=TumorSampleID,
bed_file=bed_file,
workDir=workDir,
outputDir=outputDir,
docker=docker,
disk_size=disk_size,
cluster_config=cluster_config

Laden…
Abbrechen
Speichern