Skip to content
Snippets Groups Projects
Commit 6f6aa9d5 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Update script name, R version and end result.

parent 954ecd5f
Branches
Tags
No related merge requests found
...@@ -53,7 +53,7 @@ process { ...@@ -53,7 +53,7 @@ process {
executor = 'local' executor = 'local'
} }
withName: diffPeaks { withName: diffPeaks {
module = ['R/3.4.1-gccmkl'] module = ['R/3.3.2-gccmkl']
cpus = 32 cpus = 32
} }
withName: motifSearch { withName: motifSearch {
......
...@@ -428,7 +428,6 @@ process diffPeaks { ...@@ -428,7 +428,6 @@ process diffPeaks {
script: script:
if (noUniqueExperiments.size() == 1) { if (noUniqueExperiments.size() == 1) {
""" """
touch design_diffpeak_annotatePeaks.tsv
touch no_diffbind.bed touch no_diffbind.bed
touch no_diffbind.csv touch no_diffbind.csv
touch heatmap.pdf touch heatmap.pdf
...@@ -438,7 +437,7 @@ process diffPeaks { ...@@ -438,7 +437,7 @@ process diffPeaks {
} }
else { else {
""" """
Rscript $baseDir/scripts/dba.R $designDiffPeaks Rscript $baseDir/scripts/diff_peaks.R $designDiffPeaks
""" """
} }
......
...@@ -8,7 +8,7 @@ args <- commandArgs(trailingOnly=TRUE) ...@@ -8,7 +8,7 @@ args <- commandArgs(trailingOnly=TRUE)
# Check input args # Check input args
if (length(args) != 1) { if (length(args) != 1) {
stop("Usage: dba.r [ annotate_design.tsv ] ", call.=FALSE) stop("Usage: diff_peaks.R [ annotate_design.tsv ] ", call.=FALSE)
} }
# Build DBA object from design file # Build DBA object from design file
...@@ -48,7 +48,3 @@ for (i in c(1:length(data$contrasts))) { ...@@ -48,7 +48,3 @@ for (i in c(1:length(data$contrasts))) {
write.table(report,contrast_name,sep="\t",quote=F,row.names=F) write.table(report,contrast_name,sep="\t",quote=F,row.names=F)
write.table(report[,c(1:3)],contrast_bed_name,sep="\t",quote=F,row.names=F, col.names=F) write.table(report[,c(1:3)],contrast_bed_name,sep="\t",quote=F,row.names=F, col.names=F)
} }
# Write new design file
newdesign = data.frame(Condition=new_SampleID, Peaks=new_Peaks)
write.csv(newdesign,"design_diffpeak_annotatePeaks.csv",row.names=F, quote=F, sep='\t')
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment