Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 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. Please note that multiple line example RMA queries on this page use the "+" character to represent spaces for browser compatibility.

...

Examples

...

Mouse Brain

Mouse Brain ISH experiments

...

Code Block
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,section_images
&num_rows=10&start_row=0

Mouse Brain ISH exeriments in comma delimited format

...

Code Block
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

Developing Mouse Brain

Developing Mouse Brain Atlas ISH experiments with SectionImages

...

Code Block
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

Sleep Study

Sleep Study ISH experiments that include the experimental condition:

Code Block
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 that include the donor's conditions

...

Code Block
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

...

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

...

)

Developing Human Brain

Developing Human Brain ISH experiments

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

Developing Human Brain Prenatal LMD Microarray experiments

...

Code Block
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

...

Code Block
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)