Metadata

All objects

All metadata objects support the following fields:

* Mandatory

Projects

The following metadata fields are recognized by different interfaces for Projects:

Project Features

Metadata with additional information and features about the project:

* Mandatory

Project System Metadata

Metadata entries automatically set by MiGA:

* Mandatory

By default the base name of the project path

Project Flags

Metadata entries that trigger specific behaviors in MiGA:

° By default: blast+. Other supported values: blast, blat, diamond (except for ANI), and fastani (only for ANI), no (only for hAAI). If using diamond and/or fastani, the corresponding software must be installed. Important: These defaults will change in v1.0 to: blast+ for hAAI, diamond for AAI, and fastani for ANI.

+ One of: dupont_2012 (default), or lee_2019

Project Hooks

Additionally, hooks can be defined for projects as arrays of arrays containing the action name and the arguments (if any). For example, one can define:

on_processing_ready: [
  ['run_cmd', 'date > {{project}}/ALL_DONE.txt'],
  ['run_cmd', 'sendmail ...']
]

or

on_add_dataset: [
  ['run_cmd', 'echo {{object}} > {{project}}/LATEST_DATASET.txt']
]

Supported events:

  • on_create(): When created

  • on_load(): When loaded

  • on_save(): When saved

  • on_add_dataset(object): When a dataset is added, with name object

  • on_unlink_dataset(object): When dataset with name object is unlinked

  • on_result_ready(object): When any result is ready, with key object

  • on_result_ready_{result}(): When result is ready

  • on_processing_ready(): When processing is complete

Supported hooks:

  • run_lambda(lambda, args...)

  • run_cmd(cmd)

Datasets

The following metadata fields are recognized by different interfaces for Datasets:

Dataset Features

Metadata with additional information and features about the dataset:

Multiple values can be provided separated by commas or colons

° This is not a valid type, but it represents the closest available dataset to material that is unavailable and unlikely to ever become available. See also Federhen, 2015, NAR

Dataset System Metadata

Metadata entries automatically set by MiGA:

* Mandatory

Dataset Flags

Metadata entries that trigger specific behaviors in MiGA:

* When searching best-matching datasets, include these datasets even if they are not visited using the medoid tree

Dataset Hooks

Additionally, hooks can be defined for datasets as arrays of arrays containing the action name and the arguments. See above (project hooks) for examples.

Supported events:

  • on_load(): When loaded

  • on_save(): When saved

  • on_remove(): When removed

  • on_inactivate(): When inactivated

  • on_activate(): When activated

  • on_result_ready(object): When any result is ready, with key object

  • on_result_ready_{result}(): When result is ready

  • on_preprocessing_ready(): When preprocessing is complete

Supported hooks:

  • run_lambda(lambda, args...)

  • clear_run_counts()

  • run_cmd(cmd)

Last updated