MultiOmics Digital Object System
modos --help
Usage: modo [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
add Add elements to a digital object.
create Create a digital object.
publish Creates a semantic artifact allowing to publish a digital...
remove Removes the target element from the digital object, along with...
show Show the contents of a digital object.
https://github.com/sdsc-ordes/modos-api
modo=MODO(path= 'modo-demo/ex', s3_endpoint = 'http://localhost/s3')
modo.metadata
{'ex': {'@type': 'MODO',
'creation_date': '2024-02-19T00:00:00',
'description': 'Dummy modo for tests.',
'has_assay': ['assay1'],
'id': 'ex',
'last_update_date': '2024-02-19T00:00:00',
'name': 'Example MODO',
'source_uri': 'http://example.org/ex'},
..}
https://github.com/sdsc-ordes/modos-api
from modos.api import MODO
modo = MODO("data/ex")
modo.metadata
{'ex': {'@type': 'MODO',
'creation_date': '2024-02-19T00:00:00',
'description': 'Dummy modo for tests.',
'has_assay': ['assay1'],
'id': 'ex',
'last_update_date': '2024-02-19T00:00:00',
'name': 'Example MODO',
'source_uri': 'http://example.org/ex'},
'/data/demo1': {'@type': 'DataEntity',
'data_format': 'CRAM',
'data_path': 'demo1.cram',
'description': 'Dummy data for tests',
'has_sample': ['sample1'],
'name': 'Demo 1'},
'/sample/sample1': {'@type': 'Sample',
'cell_type': 'astrocyte',
'description': 'Dummy sample for tests',
'name': 'Sample 1',
'sex': 'Male',
'source_material': 'brain tissue'},
}
modo=MODO(path= 'modos-demo/ex', s3_endpoint = 'http://localhost/s3')
modo.metadata
{'ex': {'@type': 'MODO',
'creation_date': '2024-02-19T00:00:00',
'description': 'Dummy modo for tests.',
'has_assay': ['assay1'],
'id': 'ex',
'last_update_date': '2024-02-19T00:00:00',
'name': 'Example MODO',
'source_uri': 'http://example.org/ex'},
'/data/demo1': {'@type': 'DataEntity',
'data_format': 'CRAM',
'data_path': 'demo1.cram',
'description': 'Dummy data for tests',
'has_sample': ['sample1'],
'name': 'Demo 1'},
'/sample/sample1': {'@type': 'Sample',
'cell_type': 'astrocyte',
'description': 'Dummy sample for tests',
'name': 'Sample 1',
'sex': 'Male',
'source_material': 'brain tissue'},
}