owmeta_movement.command module

class owmeta_movement.command.CeMEECommand(parent)[source]

Bases: object

Commands for doing stuff with CeMEE data

save(zenodo_id, zenodo_file_name, sample_zip_file_name, zenodo_base_url=None, ident=None, key=None)[source]

Save a CeMEEWCONDataSource for a given zenodo_id.

Either ident or key must be provided. Also adds a statement indicating the result is sourced from a ZenodoRecord

Parameters
zenodo_idint

The Zenodo record ID to make a DataSource for

zenodo_file_namestr

File name in the Zenodo record

sample_zip_file_namestr

File name of a ZIP file within the Zenodo file

zenodo_base_urlstr

Base URL for Zenodo. Useful for testing against sandbox.zenodo.org. Optional.

identstr

The identifier for the new DataSource

keystr

Key for DataSource identifiers

translate(data_source)[source]

Translate a CeMEEWCONDataSource into a MovementDataSource

Parameters
data_sourcestr

The identifier for the data source

class owmeta_movement.command.MovementCommand(parent)[source]

Bases: object

Commands for C. elegans movement data

list_tracks()[source]

List WormTracks

plot(tracks, record_index=None)[source]

Do a plot of the given WormTracks

Parameters
tracksstr

ID of a WormTracks

record_indexint

Index of the record to plot. optional

cemee

Commands for doing stuff with CeMEE data