Skip to content
Snippets Groups Projects
Commit 22946049 authored by Beibei Chen's avatar Beibei Chen
Browse files

chipseeker framework done. Need to test diffbind output column name conflict

parent be305349
Branches
Tags
No related merge requests found
......@@ -23,9 +23,9 @@ process peakanno {
// set peak_id, file("${pattern}_annotation.xls"), file("${pattern}_peakTssDistribution.png") into peakanno
script:
"""
module load python/2.7.x-anaconda
module load R/3.2.1-intel
module load deeptools/2.5.3
module load python/2.7.x-anaconda
python $baseDir/scripts/process.py
#Rscript /project/BICF/BICF_Core/bchen4/chipseq_analysis/workflow/scripts/runchipseeker.R
"""
......
......@@ -24,11 +24,15 @@ write.table(as.data.frame(normcount),"diffbind.normcount.txt",sep="\t",quote=F,r
for (i in c(1:length(data$contrasts)))
{
contrast_name = paste(data$contrasts[[i]]$name1,"vs",
contrast_bed_name = paste(data$contrasts[[i]]$name1,"vs",
#contrast_bed_name = paste(data$contrasts[[i]]$name1,"vs",
data$contrasts[[i]]$name2,"diffbind.bed",sep="_")
report <- dba.report(data, contrast=i, th=1, bCount=TRUE)
write.table(as.data.frame(report),contrast_name,sep="\t",quote=F,row.names=F)
write.table(as.data.frame(report),contrast_bed_name,sep="\t",quote=F,row.names=F, col.names=F)
report <- as.data.frame(report)
print(head(report))
colnames(report)[1:5]<-c("chrom","peak_start","peak_stop","peak_width","peak_strand")
print(head(report))
write.table(report,contrast_name,sep="\t",quote=F,row.names=F)
#write.table(as.data.frame(report),contrast_bed_name,sep="\t",quote=F,row.names=F, col.names=F)
}
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