The SVG download service returns annotations associated with the specified SectionImage as scalable vector graphics (SVG). Examples of annotations that can be retrieved include hot spots and drawings of Structure boundaries on AtlasImages. Add the “groups=” parameter and specify one or more GraphicGroupLabel.id delimited by commas to filter the types of SVG returned.
Prototype
http://api.brain-map.org/api/v2/svg_download/[SectionImage.id]?groups=[#, #, #...]
Examples
Find Atlases that have AtlasImages annotated with Structure boundaries, and the relevant GraphicGroupLabel.ids:
http://api.brain-map.org/api/v2/data/query.xml?criteria= model::Atlas,
rma::include,graphic_group_labels[name$il'Atlas*'],
rma::options[only$eq'atlases.id,atlases.name,graphic_group_labels.id']
Download a list of AtlasImages from the “Mouse, P56 Coronal” Atlas (id=1) that have Structure boundary annotations (GraphicGroupLabel.id=28):
http://api.brain-map.org/api/v2/data/query.csv?criteria= model::AtlasImage,
rma::criteria,atlas_data_set(atlases[id$eq1]),graphic_objects(graphic_group_label[id$eq28]),
rma::options[tabular$eq'sub_images.id'][order$eq'sub_images.id'] &num_rows=all&start_row=0
Download the structure boundary annotations (GraphicGroupLabel.id=28) for an AtlasImage (id=100960033) as a file (.svg):
http://api.brain-map.org/api/v2/svg_download/100960033?groups=28
Display SVG in most browsers:
http://api.brain-map.org/api/v2/svg/100960033?groups=28
Parameters
filename | Integer | SectionImage.id identifying the SVG to download. |
---|---|---|
groups | list of Group.id (optional) | Filter the Groups to include in the SVG |
Returns
SVG as either a downloaded file or displayed in the browser.