Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toGRanges() can't read in file name #17

Closed
hukai916 opened this issue Feb 4, 2022 · 1 comment
Closed

toGRanges() can't read in file name #17

hukai916 opened this issue Feb 4, 2022 · 1 comment

Comments

@hukai916
Copy link
Contributor

hukai916 commented Feb 4, 2022

Hi Jianhong,

This is related to the issue posted at https://support.bioconductor.org/p/9141976/#9142000.

I tested with the following commands:

bed <- "overlap_flag_coordinates_with_r_duplicates_removed.bed"
bed_df <- read.table(bed, header = FALSE, sep="\t",stringsAsFactors=FALSE, quote="")

#1: 
toGRanges(bed, format="BED")
# Error: each range must have an end that is greater or equal to its start minus one

#2:
toGRanges(bed_df)
# Error: Error in (function (data, colNames = NULL, format = "", ...)  : 
  colname must contain space/seqnames, start and end.
# I manually checked, the (ends - starts) are strictly larger than 1.

#3:
toGRanges(bed, format="narrowPeak")
# this works

ChIPpeakAnno_3.26.4

The above suggests that toGRanges() might have some glitch with dealing with "BED" format.

@jianhong
Copy link
Owner

jianhong commented Feb 4, 2022

This error will be handled.

@jianhong jianhong closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants