tasks.fetch

Tasks to fetch morphologies.

Module Contents

Classes

Fetch

Fetch morphologies from the given source.

Attributes

logger

tasks.fetch.logger
class tasks.fetch.Fetch(*args, **kwargs)

Bases: data_validation_framework.task.TagResultOutputMixin, luigi_tools.task.WorkflowTask

Fetch morphologies from the given source.

The JSON configuration file should contain a list of objects where each object is a config set:

[
    {
        "brain_region": "AHN",
        "nb_morphologies": 2,
        "seed": 0
    },
    {
        "brain_region": "VISp",
        "nb_morphologies": 2,
        "seed": 0
    }
]
source

The source used to download the morphologies

Type:

str

Choices:

{Allen, BBP-Nexus, NeuroMorpho, MouseLight}

config_file

Path to the JSON config file

Type:

str

result_path

Path to the output directory.

Type:

str

Default value:

morphologies

neuromorpho_download(config)

Download morphologies from the NeuromMorpho.org database.

mouselight_download(config)

Download morphologies from the MouseLight database.

allen_download(config)

Download morphologies from the Allen database.