I cant import bigwig file in r
Code: map_hg18 <- import("wgEncodeCrgMapabilityAlign100mer",format="BigWig")
Error: Error in seqinfo(ranges) : UCSC library operation failed In addition: Warning message: In seqinfo(ranges) : No such file or directory mustOpenFd: Can't open wgEncodeCrgMapabilityAlign100mer to read
Session info:
sessionInfo() R version 3.6.2 (2019-12-12) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale: [1] LCCOLLATE=EnglishUnited States.1252 LCCTYPE=EnglishUnited States.1252 LCMONETARY=EnglishUnited States.1252 [4] LCNUMERIC=C LCTIME=English_United States.1252
attached base packages: [1] stats4 parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] Rsamtools2.2.3 BSgenome.Hsapiens.UCSC.hg181.3.1000 BSgenome1.54.0
[4] rtracklayer1.46.0 Biostrings2.54.0 XVector0.26.0
[7] HiCDataHumanIMR901.6.0 HiTC1.30.0 GenomicRanges1.38.0
[10] GenomeInfoDb1.22.0 IRanges2.20.2 S4Vectors0.24.3
[13] BiocGenerics_0.32.0
loaded via a namespace (and not attached):
[1] zlibbioc1.32.0 GenomicAlignments1.22.1 BiocParallel1.20.1 lattice0.20-40
[5] tools3.6.2 SummarizedExperiment1.16.1 grid3.6.2 Biobase2.46.0
[9] matrixStats0.55.0 Matrix1.2-18 GenomeInfoDbData1.2.2 BiocManager1.30.10
[13] RColorBrewer1.1-2 bitops1.0-6 RCurl1.98-1.1 DelayedArray0.12.2
[17] compiler3.6.2 XML3.99-0.3
As far as I know,
rtracklayer::import.bw()
does not work on Windows OS.No, it works on Windows:
Awesome, thanks James! This didn't use to be the case, but I'm happy to hear that it works now. Looks like I need to remove warnings such as https://github.com/lcolladotor/derfinder/blob/master/R/loadCoverage.R#L222-L224 from my code.
I'm currently experiencing the same. I'm on
rtracklayer
version 1.53.1.On ubuntu:
On Windows
Hi,
rtracklayer::import.bw()
is supposed to work on Windows nowadays, but well, I see that I still avoid it on several pieces ofderfinder
at https://github.com/lcolladotor/derfinder/search?q=windows.Lately though, I've been using
megadepth
since Christopher Wilks provides binaries for it that work on Windows (and other OS). See https://github.com/LieberInstitute/megadepth or the Bioconductor landing page for more information.Best, Leo
Are you sure your filename does not have an extension, like .bw?