searchAtlasExperiments | R Documentation |
This function accepts a query, and optionally a secondary filter, and then searches for matching Expression Atlas experiments in the EBI RESTful Web Services API
searchAtlasExperiments( query, secondaryFilter = NULL, detailed = FALSE )
query |
Character of sample properties to search Atlas for. These can be biological characteristics, experimental treatments, species, etc. |
secondaryFilter |
Optional, a second filter. |
detailed |
If |
A DataFrame containing the Expression Atlas accessions, the species, experiment types, and titles of Expression Atlas experiments matching the query.
# Search for endoderm experiments (4 results)
atlasRes_1 <- searchAtlasExperiments( query="endoderm")
# Search for endoderm experiments in human (2 results)
atlasRes_2 <- searchAtlasExperiments( query="endoderm", secondaryFilter = "human" )
# it produces same results as:
# atlasRes_2 <- searchAtlasExperiments( query="human", secondaryFilter = "endoderm" )
# Download data for first experiment found.
if ( nrow( atlasRes_2 ) == 1 ) {
atlasData <- getAtlasData( atlasRes_2$Accession )
} else {
atlasData <- getAtlasData( atlasRes_2$Accession[1] )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.