atlas_images

Contents

ImageDownload

1
Handles query to the Allen ImageDownloadApi and saves the data
Copied!

__init__ [#34]

Check the source code online
1
def __init__(self):
Copied!
  docstring:
no docstring

get_atlas_by_name [#89]

Check the source code online
1
def get_atlas_by_name(self, atlas_name):
Copied!
  docstring:
1
Get a brain atlas in the Allen's database given it's name
2
3
:param atlas_name: str with atlas name
Copied!

get_products_by_species [#104]

Check the source code online
1
def get_products_by_species(self, species):
Copied!
  docstring:
1
Get all 'products' in the Allen Database for a given species
2
3
:param species: str
Copied!

get_experimentsid_by_productid [#113]

Check the source code online
1
def get_experimentsid_by_productid(self, productid, **kwargs):
Copied!
  docstring:
1
Get the experiment's ID that belong to the same project (product).
2
3
:param productid: int with product ID number
4
5
:param **kwargs:
Copied!

get_experimentimages_by_expid [#126]

Check the source code online
1
def get_experimentimages_by_expid(self, expid):
Copied!
  docstring:
1
Get's images that belong to an experiment
2
3
:param expid: int with experiment name.
Copied!

get_atlasimages_by_atlasid [#136]

Check the source code online
1
def get_atlasimages_by_atlasid(self, atlasid):
Copied!
  docstring:
1
Get the metadata of images that belong to an atlas.
2
3
:param atlasid: int with atlas number
Copied!

download_images_by_imagesid [#149]

Check the source code online
1
def download_images_by_imagesid(self, savedir, imagesids,
2
downsample=0, annotated=True, snames=None, atlas_svg=True):
Copied!
  docstring:
1
Downloads and saves images given a list of images IDs.
2
3
:param savedir: str, folder in which to save the image
4
5
:param imagesids: list of int with images IDs
6
7
:param downsample: downsample factor, to reduce the image size and
8
resolution (Default value = 0)
9
10
:param annotated: if True the images are overlayed with annotations
11
(Default value = True)
12
13
:param snames: if True the images are overlayed with the structures
14
names (Default value = None)
15
16
:param atlas_svg: if True fetches the images as SVG, otherwise as PNG
17
(Default value = True)
Copied!

download_images_by_atlasid [#216]

Check the source code online
1
def download_images_by_atlasid(self, savedir, atlasid, debug=False,
2
**kwargs):
Copied!
  docstring:
1
Downloads all the images that belong to an altlas
2
3
:param savedir: str, folder in which to save the images
4
5
:param atlasid: int, ID of the atlas to use
6
7
:param **kwargs: keyword arguments for
8
self.download_images_by_imagesid
Copied!
Last modified 1yr ago