problem to load data into ChIPpeakAnno
3
0
Entering edit mode
crisprucd • 0
@crisprucd-11871
Last seen 8.0 years ago

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 

software error • 2.8k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode
Ou, Jianhong ★ 1.3k
@ou-jianhong-4539
Last seen 8 days ago
United States

I think you need to change peakfile path like:

bed <- "file/path/to/your/narrowPeak"

 

ADD COMMENT
0
Entering edit mode
crisprucd • 0
@crisprucd-11871
Last seen 8.0 years ago

Hi Jianhong,

Thank you for the help. 

I added the path for the file in the first command line, but still get the same error.

> bed <- system.file("extdata", "C:/Users/name/Desktop/605chip/q0.001/605kct_F5FMX_peaks.narrowPeak", package="ChIPpeakAnno")
> gr1 <- toGRanges(bed, format="narrowPeak", header = FALSE)
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

John

 

ADD COMMENT
0
Entering edit mode
John, Please try this. bed <- "C:/Users/name/Desktop/605chip/q0.001/605kct_F5FMX_peaks.narrowPeak" Best, Julie Sent from my iPhone On Nov 16, 2016, at 5:50 PM, crisprucd [bioc] <noreply@bioconductor.org<mailto:noreply@bioconductor.org>> wrote: Activity on a post you are following on support.bioconductor.org<https: support.bioconductor.org=""> User crisprucd<https: support.bioconductor.org="" u="" 11871=""/> wrote Answer: problem to load data into ChIPpeakAnno<https: support.bioconductor.org="" p="" 89542="" #89551="">: Hi Jianhong, Thank you for the help. I added the path for the file in the first command line, but still get the same error. > bed <- system.file("extdata", "C:/Users/name/Desktop/605chip/q0.001/605kct_F5FMX_peaks.narrowPeak", package="ChIPpeakAnno") > gr1 <- toGRanges(bed, format="narrowPeak", header = FALSE) 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 John ________________________________ Post tags: software error You may reply via email or visit A: problem to load data into ChIPpeakAnno
ADD REPLY
0
Entering edit mode
crisprucd • 0
@crisprucd-11871
Last seen 8.0 years ago

Hi Julie,

Thank you for the suggestion.

With

bed <- "C:/Users/name/Desktop/605chip/q0.001/605kct_F5FMX_peaks.narrowPeak"

The narrowPeak file can be loaded, however, there are still some errors showed up:

> bed <- "C:/Users/name/Desktop/605chip/q0.001/605kct_F5FMX_peaks.narrowPeak"

> gr1 <- toGRanges(bed, format="narrowPeak",header = FALSE)

Warning message:

In formatStrand(strand) : All the characters for strand,

            other than '1', '-1', '+', '-' and '*',

            will be converted into '*'.

> gr1

GRanges object with 6534 ranges and 5 metadata columns:

                                                                         seqnames

                                                                            <Rle>

     X.homelink.name.ChIPseq.605_ChIP.input.q0.001.605kct_F5FMX_peak_1     chr1

                                                                                        ranges

                                                                                    <IRanges>

     X.homelink.name.ChIPseq.605_ChIP.input.q0.001.605kct_F5FMX_peak_1   [ 459672,  460006]

     X.homelink.name.ChIPseq.605_ChIP.input.q0.001.605kct_F5FMX_peak_2   [ 567288,  567729]

    

                                                                         strand |

                                                                          <Rle> |

     X.homelink.name.ChIPseq.605_ChIP.input.q0.001.605kct_F5FMX_peak_1      * |

     X.homelink.name.ChIPseq.605_ChIP.input.q0.001.605kct_F5FMX_peak_2      * |

     

  seqinfo: 24 sequences from an unspecified genome; no seqlengths

 

>

John

ADD COMMENT

Login before adding your answer.

Traffic: 511 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