Entering edit mode
Hi there,
Hope my question is not too silly, since it is my first day using Bioconductor.
I have been simply trying to import a .bed file like:
import("example.bed", format="bed")
and obtained the error:
Error: $ operator is invalid for atomic vectors
Thanks in advance!
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Spanish_Spain.1252
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] rtracklayer_1.49.5 GenomicRanges_1.42.0 GenomeInfoDb_1.26.7 IRanges_2.24.1 S4Vectors_0.28.1 BiocGenerics_0.36.1
[7] BiocManager_1.30.16
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 XVector_0.30.0 zlibbioc_1.36.0 GenomicAlignments_1.26.0 BiocParallel_1.24.1
[6] lattice_0.20-41 tools_4.0.2 grid_4.0.2 SummarizedExperiment_1.20.0 Biobase_2.50.0
[11] matrixStats_0.59.0 crayon_1.4.1 Matrix_1.2-18 GenomeInfoDbData_1.2.4 bitops_1.0-7
[16] RCurl_1.98-1.3 DelayedArray_0.16.3 compiler_4.0.2 MatrixGenerics_1.2.1 Biostrings_2.58.0
[21] Rsamtools_2.6.0 XML_3.99-0.6
Don't you think it would be easier for other people to help you if you post the first few lines of your input file?
Only the correspondant to load the library
library(rtracklayer)