BioMartClient | R Documentation |
Client class for interacting with the BioMart REST API.
This class provides methods for querying BioMart REST API endpoints, retrieving information about available marts, datasets, attributes, and filters.
base_url
Base URL of the BioMart service
path
Path to the BioMart API on the server
new()
Initialize a new BioMartClient
BioMartClient$new(base_url, path = "/biomart")
base_url
Character, the base URL of the BioMart service
path
Character, the API path, defaults to "/biomart"
A new BioMartClient object
get_marts()
Retrieve available marts from the BioMart service
BioMartClient$get_marts()
List of MartInfo objects
get_datasets()
Retrieve available datasets for a given mart
BioMartClient$get_datasets(mart)
mart
MartInfo object, the mart to query
List of DatasetInfo objects
get_attributes()
Retrieve available attributes for a given dataset
BioMartClient$get_attributes(dataset)
dataset
DatasetInfo object, the dataset to query
List of attribute information
get_filters()
Retrieve available filters for a given dataset
BioMartClient$get_filters(dataset)
dataset
DatasetInfo object, the dataset to query
List of filter information
clone()
The objects of this class are cloneable with this method.
BioMartClient$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
# Create a client for Ensembl BioMart
client <- BioMartClient$new("https://www.ensembl.org")
# Get available marts
marts <- client$get_marts()
# Select a mart and get its datasets
ensembl <- marts[[1]]
datasets <- client$get_datasets(ensembl)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.