Apparently, when using biomaRt::getBM(), with listAttributes(gene.db, page = "feature_page"), there is a limit (3 ?) on the number of features which can be "external". Is there a way to know which features are "external" or not ? listAttributes has another argument 'what' with default: what = c("name","description","page"), it also accepts "fullDescription" and the Rdocumentation says "Can have values like name, description, fullDescription, page" - perhaps there is another argument for "external" or perhaps there is a way around the error ? The error received if too many "external" features are asked for is :Error in .processResults(postRes, mart = mart, hostURLsep = sep, fullXmlQuery = fullXmlQuery, : Query ERROR: caught BioMart::Exception::Usage: Too many attributes selected for External References
gene.db <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl", host="https://www.ensembl.org", path="/biomart/martservice", archive=FALSE)
listAttributes(gene.db, page = "feature_page", what = c("name","description","page"))
getBM(attributes = , filters = c("chromosome_name", "start", "end"), values = , mart = gene.db)
sessionInfo( ) R version 4.4.1 (2024-06-14 ucrt) Platform: x86_64-w64-mingw32/x64 Running under: Windows 11 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=Polish_Poland.utf8 LC_CTYPE=Polish_Poland.utf8
[3] LC_MONETARY=Polish_Poland.utf8 LC_NUMERIC=C
[5] LC_TIME=Polish_Poland.utf8
time zone: Europe/Warsaw tzcode source: internal
```