Downloading a WellKnownFile

The WellKnownFile Download Service returns files.

Prototype

http://api.brain-map.org/api/v2/well_known_download_file/[WellKnownFile.id]

Example

Download the Human Brain Microarray Atlas "raw" Agilent output files associated with Donor H0351.2001 and the DG Structure.

First, search for all WellKnownFiles associated with Donor H0351.2001 and the Structure DG:

http://api.brain-map.org/api/v2/data/query.xml?criteria=
model::Sample,
rma::criteria,microarray_data_set(products[abbreviation$eq'HumanMA'],specimen(donor[name$eq'H0351.2001'])),structure[acronym$eq'DG'],
rma::include,microarray_slides(well_known_files)

Next, iterate through the WellKnownFile elements, building URLs by appending the WellKnownFile.download_link value to "http://api.brain-map.org":

http://api.brain-map.org/api/v2/well_known_file_download/3486