Hi all,
I'm trying to map gene IDs between species and hoping to use the getLDS
function from biomaRt as I have done previously. However, the example in the biomaRt vignette doesn't seem to work, and I get the same error on my code.
Does anyone have suggestions on how to fix? Many thanks
human <- useEnsembl("ensembl", dataset = "hsapiens_gene_ensembl")
mouse <- useEnsembl("ensembl", dataset = "mmusculus_gene_ensembl")
getLDS(attributes = c("hgnc_symbol","chromosome_name", "start_position"),
filters = "hgnc_symbol", values = "TP53",
mart = human,
attributesL = c("refseq_mrna","chromosome_name","start_position"),
martL = mouse)
## Error in `httr2::req_perform()`:
## ! HTTP 500 Internal Server Error.
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: x86_64-apple-darwin20
Running under: macOS Sonoma 14.1.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] biomaRt_2.60.1
loaded via a namespace (and not attached):
[1] rappdirs_0.3.3 utf8_1.2.4 generics_0.1.3
[4] xml2_1.3.6 RSQLite_2.3.7 stringi_1.8.4
[7] hms_1.1.3 digest_0.6.36 magrittr_2.0.3
[10] evaluate_0.24.0 fastmap_1.2.0 blob_1.2.4
[13] jsonlite_1.8.8 progress_1.2.3 AnnotationDbi_1.66.0
[16] GenomeInfoDb_1.40.1 DBI_1.2.3 httr_1.4.7
[19] purrr_1.0.2 fansi_1.0.6 UCSC.utils_1.0.0
[22] Biostrings_2.72.1 httr2_1.0.1 cli_3.6.3
[25] rlang_1.1.4 crayon_1.5.3 dbplyr_2.5.0
[28] XVector_0.44.0 Biobase_2.64.0 bit64_4.0.5
[31] withr_3.0.0 cachem_1.1.0 yaml_2.3.9
[34] tools_4.4.1 memoise_2.0.1 dplyr_1.1.4
[37] filelock_1.0.3 GenomeInfoDbData_1.2.12 BiocGenerics_0.50.0
[40] curl_5.2.1 vctrs_0.6.5 R6_2.5.1
[43] png_0.1-8 stats4_4.4.1 lifecycle_1.0.4
[46] BiocFileCache_2.12.0 zlibbioc_1.50.0 KEGGREST_1.44.1
[49] stringr_1.5.1 S4Vectors_0.42.1 IRanges_2.38.1
[52] bit_4.0.5 pkgconfig_2.0.3 pillar_1.9.0
[55] glue_1.7.0 tidyselect_1.2.1 tibble_3.2.1
[58] xfun_0.45 rstudioapi_0.16.0 knitr_1.48
[61] htmltools_0.5.8.1 rmarkdown_2.27 compiler_4.4.1
[64] prettyunits_1.2.0
Hit the go button too early - the post is updated so you might go to the support site for the actual post...
Many thanks. I will check this out. Unfortunately, the organisms I want to map to are less well-annotated and don't have an org.XX.XX.db package, so I'm not sure how well this will work.
It's actually based on NCBI IDs, not the symbols, and NCBI has many different species so it might be fine. I only use the OrgDbs to map from NCBI ID to SYMBOL (using HGNC symbols for non-model organisms will be problematic anyway).
But if you have only Ensembl IDs, then it could be quite problematic.