Versions Compared

Key

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

...

The SectionImage download service serves whole and partial two-dimensional images presented on the Allen Brain Atlas Web site.

Prototype

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/[SectionImage.id]?downsample=[#]&quality=[#]&expression=[true|false]

...

Download a downsampled SectionImage of one sagittal section from the Mouse Brain Pdyn SectionDataSet:

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/69750516?downsample=4

Download a downsampled expression mask for a SectionImage of one sagittal section from the Mouse Brain Pdyn SectionDataSet:

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/69750516?downsample=4&expression=true

Download a region of interest at full resolution from the same sagittal SectionImage:

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/69750516?left=6174&top=2282&width=1000&height=1000

Download SectionImage 71592261 downsampled 3 times with 50% image quality:

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/71592261&downsample=3&quality=50

Determine the default range values for a Mouse Connectivity Projection experiment by referring to its associated Equalization model (red_lower=0, red_upper=923, green_lower=0, green_upper=987, blue_lower=0, blue_upper=4095), then download one of its downsampled SectionImages:

Code Blocknoformat
http://api.brain-map.org/api/v2/data/SectionDataSet/100141599.xml?include=equalization,section_images

http://api.brain-map.org/api/v2/section_image_download/102146167?range=0,923,0,987,0,4095&downsample=4

...

    First, search for relevant experiments' IDs (SectionDataSets):

Code Blocknoformat
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']

    Second, retrieve a list of all images for one of the experiments (SectionImages):

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

    Finally, iterate through the list of images and call the SectionImage Download Service with their IDs:

Code Blocknoformat
http://api.brain-map.org/api/v2/section_image_download/70679088

...

The AtlasImage download service serves whole and partial two-dimensional images with annotations presented on the Allen Brain Atlas Web site.

Prototype

Code Blocknoformat
http://api.brain-map.org/api/v2/atlas_image_download/[AtlasImage.id]?downsample=[#]&quality=[#]&annotation=[true|false]&atlas=[#]

...

Download the downsampled AtlasImage 100883869 with annotations:

Code Blocknoformat
http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true

Request P56 Mouse Brain Atlas' annotations:

Code Blocknoformat
http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true&atlas=2

Request P56 Developing Mouse Brain Atlas' annotations:

Code Blocknoformat
http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true&atlas=181276165

...

    Second, retrieve a list of the Mouse, P56 Sagittal Atlas' Nissl images (Atlas id=2):

Code Blocknoformat
http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::Atlas,
rma::criteria,[id$eq2],
rma::include,atlas_data_sets(atlas_images(treatments))

    Finally, iterate through the list of AtlasImages and call the AtlasImage Download Service to download the Nissl images:

Code Blocknoformat
http://api.brain-map.org/api/v2/atlas_image_download/100883771

...

The Projection Image download service serves whole and partial two-dimensional images with projection data presented on the Allen Brain Atlas Web site.

Prototype

Code Blocknoformat
http://api.brain-map.org/api/v2/projection_image_download/[SectionImage.id]?downsample=[#]&quality=[#]&projection=[true|false]

...

Download the downsampled SectionImage 126862583 with projection:

Code Blocknoformat
http://api.brain-map.org/api/v2/projection_image_download/126862583?downsample=4&projection=true

...