I have a question regarding matching the Mouse Connectivity experiments section images with the brain segmentation in the Brain Atlas reference space. So far I was not able to find a way to project the segmentation onto a section image. Does such API exist? Querying by pixel can also be an option though less preferable due to high amount of the API invocations (I need information regarding many points) and the latency it would incur.
Thank you so much for your reply! Is it possible to submit a group of queries in a single API call? I need to obtain this information about the whole image, which can be pretty time-consuming considering the REST call round-trip time. Thank you!
No, there is no single API available to do this, but all of the information is available via APIs. So, theoretically you could write something to do this more efficiently. Here are some resources:
Example API query to get transform values at the SectionDataSet level: http://api.brain-map.org/api/v2/data/query.json?criteria=model::SectionDataSet,rma::criteria,[id$eq524874308],alignment3d,rma::include,alignment3d
Example API query to get transform values at the SectionImage level: http://api.brain-map.org/api/v2/data/query.json?criteria=model::SectionImage,rma::criteria,[data_set_id$eq524874308][section_number$eq14],alignment2d,rma::include,alignment2d
I played with it but still did not manage to match a pixel from the section image to the matching id from the structure tree. If there is any sample code I can use, it would be greatly appreciated. Thanks in advance!
This repo contains a notebook from a colleague that may help you do what you want. I do need to draw your attention to the Level of Support noted on the repo.