-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error in seqinfo(con): UCSC library operation failed
: Windows error importing bigwigs
#6
Comments
Same errors, i think it relies on |
Seems this is a known issue, though not sure why a more informative error message isn't given in that case. Even so, still seems to be failing on Mac too: query_granges <- PeakyFinders::get_genome(keep.chr = "chr22", style = "NCBI")
bw.file <- paste0(
"https://www.encodeproject.org",
"/files/ENCFF103JOZ/@@download/ENCFF103JOZ.bigWig"
)
bw.filt <- plyranges::read_bigwig(file = bw.file,
genome_info = query_granges) Tried both UCSC and NCBI chromosome format, but same error as before. This doesn't help either: query_granges <- rtracklayer::BigWigSelection(ranges = query_granges,
colnames = "score") |
Also appears to be some differences in how |
Same error after downloading the whole bigwig and trying to import the local version tmp <- tempfile()
download.file(bw.file, tmp)
bw.filt <- rtracklayer::import.bw(
con = tmp,
selection = query_granges
) Noticed it seems to be compressed but doesn't have a ".gz" suffix. Renaming local file with ".gz" suffix doesn't seem to have any effect. |
Temporary solution: Run rtracklayer_bigwig_error <- function(){
is_windows <- .Platform$OS.type=="windows"
if(is_windows){
stop(
"rtracklayer::import.bw() does not work on Windows.",
"Please contact the rtracklayer developers to address this issue.")
}
return(is_windows)
}
|
rtracklayer::import.bw
seems to be having a number of issues. This one seems most relevant to the error below:lawremi/rtracklayer#65
The error only comes up with bigwig files on Windows; other file types like broad/narrowPeaks work fine with the
rtracklayer::import
function (including on Windows).The text was updated successfully, but these errors were encountered: