metakb.harvesters.moa#

A module for the Molecular Oncology Almanac harvester

class metakb.harvesters.moa.MoaHarvester(src_data_dir)[source]#

A class for the Molecular Oncology Almanac harvester.

harvest(fetch_mode=FetchMode.CHECK_STALE)[source]#

Grab data from a source and stash a copy locally, returning the stashed location

Parameters:

fetch_mode (FetchMode) – set data caching/fetching behavior. Ignored; this harvester always fetches.

Return type:

Path

Returns:

Location of performed data harvest

harvest_assertions(assertion_resp, variants_list)[source]#

Harvest all MOA assertions

Parameters:
  • assertion_resp (list[dict]) – A list of MOA assertion records

  • variants_list (list[dict]) – A list of MOA variant records

Return type:

list[dict]

Returns:

A list of assertions

harvest_variants()[source]#

Harvest all MOA variants

Return type:

tuple[list[dict], list[dict]]

Returns:

A list of variants