Plexora

project_from_spec

Register one project from a spec dict.

Generated from Plexora 0.0.55View source
from plexora import project_from_spec
project_from_spec(spec, node=None) -> str

The same as create_project(**spec) -- this is what the CLI's --from file.json and create_dataset(projects=[...]) both call, so a spec document means one thing everywhere it is read.

Parameters

specdictrequired

A project spec: any of PROJECT_SPEC_KEYS, with image required.

nodestrdefault None

The data node any path in spec is on, unless the spec says otherwise for itself.

Returns

str

The project's name -- see create_project.

Raises

ValueError

Examples

import plexora

name = plexora.project_from_spec({"image": "slide.ome.tif", "data": "cells.csv"})

On this page