error for toGRanges
1
0
Entering edit mode
8.0 years ago
jolin0701-dy ▴ 100

I'd like to use ChIPpeakAnno to do downstream analysis after peak calling by macs2.

But I got some error for toGRanges to upload my results from macs2.

macs <- system.file("/Users/macs2", "/Users/macs2/cz3Rip_vs_cz1Inp_peaks.xls", package="ChIPpeakAnno")

macsOutput <- toGRanges(macs, format="MACS")

Error in read.table(data, header = header, ..., nrows = 5) : 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

I also tried broadPeak, but still got the error.

Any suggestions?

Thanks so much~~~

ChIP-Seq • 2.4k views
ADD COMMENT
0
Entering edit mode
8.0 years ago
igor 13k

You don't need system.file if you know the path. Try:

macs <- "/Users/macs2/cz3Rip_vs_cz1Inp_peaks.xls"

Also, give a broadPeak, not xls file.

ADD COMMENT

Login before adding your answer.

Traffic: 3182 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6