Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the following part after write out alldf
model= loess(counts~starts,data=alldf[alldf[,1]== 3 & alldf[,"counts"]!=-Inf,],span=0.01,surface='direct') chrdf =alldf[alldf[,1]==3,] lopoints=predict(model,newdata=chrdf) chrdf$predicted=lopoints ggplot(chrdf,aes(x=starts,y=counts)) + geom_point(alpha=0.4,colour='orange') + geom_line(aes(x=starts,y=predicted),colour='red') + ylim(-18,-23); #pllot out chrom3 ggsave(file=paste(basename,"_chr3_background.pdf",sep=""),width=7,height=4)
- Loading branch information