Hello,
I apologise for all the questions, but I have two more!
1) Is there a way to get gene names on the "peaklist" object obtained from the findOverlapOfPeaks function? I'm able to get the peaklist but it's just a very long list of all the peaks per comparison (ie: given peaksA, peaksB, peaksC, peaksD, I get A, A/B, A/B/C, B, B/C, etc.) but there aren't any annotations. Any ideas?
Code that I'm using from the ChIPpeakAnno package:
>ol <- findOverlapsOfPeaks(peaksA, peaksB, peaksC, peaksD, maxgap = 1000, minoverlap = 1L, ignore.strand = TRUE, connectedPeaks = "min")
>annotated.peaklist <- ol$peaklist
2) I'm having a problem building heatmaps of my data. When I input the following code:
> library(rtracklayer)
> files <- dir("C:/Users/jkeith/Desktop/R/", "bigwig")
> files
[1] "PeaksA.bigwig" "PeaksB.bigwig" "PeaksC.bigwig"
[4] "PeaksD.bigwig"
> if(.Platform$OS.type != "windows"){
+ cvglists <- sapply(file.path("C:/Users/jkeith/Desktop/R/", files), import,
+ format="BIGWIG",
+ which=feature.recentered,
+ as="RleList")
+ }else{## rtracklayer can not import bigWig files on Windows
+ load(file.path("C:/Users/jkeith/Desktop/R/", "cvglist.rds"))
+ }
I get the following error which I'm not sure how to fix:
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
As always, any assistance is vastly appreciated!
Many thanks,
Julia