Skip to content

Add CLI support #3

@pattonw

Description

@pattonw

Add cli support

We already have all of our tasks configured via basic json compatible arguments (float, str, tuple, etc.), it should be straight forward to expose each blockwise call to a cli so:

from volara.blockwise import ExtractFragments

extract_fragments = ExtractFrags(
    db=db,
    affs_data=affinities,
    frags_data=fragments,
    block_size=(20, 100, 100),
    context=(2, 2, 2),
    bias=[-0.5, -0.5, -0.5],
)
extract_fragments.run_blockwise()

becomes

volara extract_frags --db db.sqlite --affs_data path/to/affs --frags_data path/to/frags --blocksize 20 100 100 --context 2 2 2 --bias -0.5 -0.5 -0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions