Example Queries for Experiment Metadata

 The following query examples demonstrate how to use RESTful Model Access (RMA) to retrieve metadata for experiments. The API utility, RMA Query Builder, can be used to compose RMA queries. The SectionImage Download Service can be used to download images.

Please note that multiple line example RMA queries on this page represent spaces enclosed in quotation marks with the "+" character to make the examples compatible with some browsers.

Mouse Brain

All Mouse Brain ISH experiments

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'Mouse'],treatments[name$eq'ISH'],
rma::include,genes,specimen(donor(age)),plane_of_section
&num_rows=50&start_row=0

All Mouse Brain ISH experiments in comma delimited format

http://api.brain-map.org/api/v2/data/query.csv?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'Mouse'],treatments[name$eq'ISH'],genes,plane_of_section,
rma::options,
[tabular$eq'plane_of_sections.name+as+plane','genes.acronym+as+gene','data_sets.id+as+section_data_set_id'],
[order$eq'plane_of_sections.name,genes.acronym,data_sets.id']
&num_rows=50&start_row=0

Sagittal Mouse Brain ISH experiments for Adora2a

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eq'false'],products[abbreviation$eq'Mouse'],plane_of_section[name$eq'sagittal'],genes[acronym$eq'Adora2a']

Images for sagittal Mouse Brain ISH Adora2a experiment 70813257

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionImage,
rma::criteria,[data_set_id$eq70813257]

Mouse Brain coronal images for Adora2a in comma delimited format

http://api.brain-map.org/api/v2/data/query.csv?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'Mouse'],treatments[name$eq'ISH'],genes[acronym$eq'Adora2a'],plane_of_section,section_images,
rma::options,
[tabular$eq'plane_of_sections.name+as+plane','genes.acronym+as+gene','data_sets.id+as+section_data_set_id','sub_images.id+as+section_image_id'],
[order$eq'plane_of_sections.name,genes.acronym,data_sets.id,sub_images.id']
&num_rows=50&start_row=0

Expression summary for coronal Adora2a experiment 72109410

http://api.brain-map.org/api/v2/data/SectionDataSet/query.xml?id=72109410&include=structure_unionizes(structure)

Developing Mouse Brain

Developing Mouse Brain ISH experiments with images

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'DevMouse'],treatments[name$eq'ISH'],
rma::include,genes,specimen(donor(age)),plane_of_section,section_images
&num_rows=10&start_row=0

Developing Mouse Brain P28 ISH images for Gad1

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eq'false'],
rma::include,genes[acronym$eq'Gad1'],section_images,specimen(donor(age[name$eq'P28']))

Sleep Study

Sleep Study ISH experiments with images, including the experimental condition:

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'Sleep'],treatments[name$eq'ISH'],
rma::include,probes(gene),plane_of_section,specimen(donor(disease_categories,medical_conditions)),section_images
&num_rows=10

Human Brain

Human Brain ISH Autism Study experiments with images, including the donor's conditions

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'HumanASD'],treatments[name$eq'ISH'],
rma::include,probes(gene),specimen(donor(age,disease_categories,medical_conditions)),section_images
&num_rows=10

Human Brain Microarray experiments

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::MicroarraySlide,
rma::criteria,microarray_data_sets[failed$eqfalse](products[abbreviation$eq'HumanMA']),
rma::include,structures,well_known_files,microarray_data_sets(specimen(donor(age)))

Developing Human Brain

Developing Human Brain ISH experiments with images

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::SectionDataSet,
rma::criteria,[failed$eqfalse],products[abbreviation$eq'DevHumanISH'],treatments[name$eq'ISH'],
rma::include,probes(gene),specimen(donor(age,disease_categories,medical_conditions)),section_images
&num_rows=10

Expression summary for GAD1 Developing Human Brain ISH

http://api.brain-map.org/api/v2/data/SectionDataSet/query.xml?id=73931410&include=structure_unionizes(structure)

Developing Human Brain Prenatal LMD Microarray experiments

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::MicroarraySlide,
rma::criteria,microarray_data_sets[failed$eqfalse](products[abbreviation$eq'DevHumanMA']),
rma::include,structures,well_known_files,microarray_data_sets(specimen(donor(age)))

Developing Human Brain Transcriptome experiments

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::Specimen,
rma::criteria,data_sets(products[abbreviation$eq'DevHumanTrans']),
rma::include,structure,donor,well_known_files(well_known_file_type)