Hello,
I am new to R and analyzing ChIPseq data. I mapped my ChIP-seq reads by bowtie2 and called the peaks with MACS2 and got some output files, peaks.narrowPeak, peaks.xls, summits.bed. I am trying to use ChIPpeakAnno to do the downstream analysis, I used the following commands to convert MACS2 data to GRange :
> bed <- system.file("extdata", "605kct_F5FMX_peaks.narrowPeak", package="ChIPpeakAnno")
> gr1 <- toGRanges(bed, format="narrowPeak", header = FALSE)
Then I got the error message below:
Error in read.table(data, header = FALSE, fill = TRUE, stringsAsFactors = FALSE) :
no lines available in input
In addition: Warning message:
In file(file, "rt") :
file("") only supports open = "w+" and open = "w+b": using the former.
Could someone let me know what is wrong with it?
Thank you for your help.
John
Hi John,
I am now a beginner to R and ChIP-seq data analysis, as you claimed to be more than 3 years ago. I have encountered the exact same problem that you did and I wonder if you finally managed to solve it.
Thank you very much in advance!
Ana
Hi Ana,
Please assign your input file path to bed instead of using system.file.
Where is the following file located?
605kctF5FMXpeaks.narrowPeak
Best regards,
Julie
On Apr 11, 2020, at 1:58 PM, amt.5551 [bioc] noreply@bioconductor.org wrote:
Activity on a post you are following on support.bioconductor.orghttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.bioconductor.org%2F&data=02%7C01%7Cjulie.zhu%40umassmed.edu%7Cd3738cec6a5340b31c7708d7de41f3b8%7Cee9155fe2da34378a6c44405faf57b2e%7C0%7C0%7C637222247160450945&sdata=g4nIJwKyUvp%2BINFE8aCN%2Fl2FMrqy%2B8UeYGnIufBj%2FsM%3D&reserved=0
User amt.5551https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.bioconductor.org%2Fu%2F23311%2F&data=02%7C01%7Cjulie.zhu%40umassmed.edu%7Cd3738cec6a5340b31c7708d7de41f3b8%7Cee9155fe2da34378a6c44405faf57b2e%7C0%7C0%7C637222247160460934&sdata=ESE06fpX76y6oMu2Acx5oM2ynZlLKH%2BbCuq2K67nfCo%3D&reserved=0 wrote Comment: problem to load data into ChIPpeakAnnohttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsupport.bioconductor.org%2Fp%2F89542%2F%23129813&data=02%7C01%7Cjulie.zhu%40umassmed.edu%7Cd3738cec6a5340b31c7708d7de41f3b8%7Cee9155fe2da34378a6c44405faf57b2e%7C0%7C0%7C637222247160460934&sdata=HUuUOa3Ae9faQhnelIN9IA%2B7cS14kUvoN7lQjAMLLdQ%3D&reserved=0:
Hi John,
I am now a beginner to R and ChIP-seq data analysis, as you claimed to be more than 3 years ago. I have encountered the exact same problem that you did and I wonder if you finally managed to solve it.
Thank you very much in advance!
Ana