module
info
info(module_name, local=False, outer=None, **kwargs)
info.
PARAMETER | DESCRIPTION |
---|---|
module_name |
Module name
TYPE:
|
local |
TYPE:
|
outer |
If set, tabulated output will be sent to it. For example,
DEFAULT:
|
kwargs |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Optional[Dict[str, Any]]
|
|
Examples:
Print clinvar
module's information to the terminal and get the same information as a dict.
>>> clinvar_info = oakvar.api.module.info("clinvar", outer=sys.stdout)
install
install(module_names=[], urls=None, modules_dir=None, overwrite=False, clean=False, force_data=False, yes=False, skip_dependencies=False, skip_data=False, no_fetch=False, file=None, outer=None, stage_handler=None, system_worker_state=None)
Install modules.
PARAMETER | DESCRIPTION |
---|---|
module_names |
Module names
TYPE:
|
urls |
URLs of module zip files. If given,
TYPE:
|
yes |
TYPE:
|
no_fetch |
TYPE:
|
overwrite |
TYPE:
|
force_data |
TYPE:
|
skip_data |
TYPE:
|
modules_dir |
custom OakVar modules directory
TYPE:
|
skip_dependencies |
TYPE:
|
clean |
clean
TYPE:
|
stage_handler |
DEFAULT:
|
system_worker_state |
DEFAULT:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Optional[bool]
|
|
installbase
installbase(no_fetch=False, conf=None, overwrite=False, modules_dir=None, system_worker_state=None, outer=None)
Installs OakVar system/default modules.
PARAMETER | DESCRIPTION |
---|---|
no_fetch |
TYPE:
|
overwrite |
TYPE:
|
modules_dir |
custom OakVar modules directory
TYPE:
|
conf |
Custom system configuration as a dict
TYPE:
|
outer |
DEFAULT:
|
system_worker_state |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Optional[bool]
|
|
ls
ls(module_names=['.*'], module_types=[], search_store=False, tags=[], nameonly=False, humanized_size=False, outer=None, **kwargs)
List installed and available OakVar modules.
PARAMETER | DESCRIPTION |
---|---|
module_names |
Module names
TYPE:
|
module_types |
Module types
TYPE:
|
search_store |
TYPE:
|
humanized_size |
TYPE:
|
tags |
Module tags to search. Regular expression can be used.
TYPE:
|
nameonly |
TYPE:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
List[Dict[str, Any]]
|
List of Dict, each element of which has an installed module's information. |
Examples:
Get the information on the installed ClinVar module.
>>> oakvar.api.module.ls(module_names=["clinvar"])
Search for all reporter modules in the OakVar store.
>>> oakvar.api.module.ls(module_types=["reporter"], search_store=True)
Search the OakVar store for modules with "allele" in their tags.
>>> oakvar.api.module.ls(tags=[".*allele.*"], search_store=True)
pack
pack(module_name, outdir=None, code_only=False, split=False, outer=None)
Packs a module's code and optionally data to register it with OakVar store. This will produce zip files. They are supposed to be uploaded to somewhere on the web, and oakvar.api.store.register
is used to register the module in the OakVar store. After this, the module will be available to all OakVar users worldwide.
PARAMETER | DESCRIPTION |
---|---|
module_name |
Module name
TYPE:
|
outdir |
Directory to store the module pack zip files. Default is the current working directory.
TYPE:
|
code_only |
TYPE:
|
split |
TYPE:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Optional[Dict[str, Optional[Path]]]
|
|
uninstall
uninstall(module_names=None, yes=False, outer=None)
Uninstall modules.
PARAMETER | DESCRIPTION |
---|---|
module_names |
Modules names
TYPE:
|
yes |
TYPE:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
|
update
update(module_name_patterns=[], yes=False, no_fetch=False, force_data=False, modules_dir=None, outer=None, system_worker_state=None)
Update installed modules.
PARAMETER | DESCRIPTION |
---|---|
module_name_patterns |
Module name patterns. For example,
TYPE:
|
yes |
TYPE:
|
no_fetch |
TYPE:
|
force_data |
TYPE:
|
modules_dir |
custom OakVar modules directory
TYPE:
|
system_worker_state |
DEFAULT:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
|