clemente-lab / mmeds-meta

A database for storing and analyzing omics data
https://mmeds.org
2 stars 1 forks source link

Dedicated Metadata Class #432

Open adamcantor22 opened 2 years ago

adamcantor22 commented 2 years ago

Is your feature request related to a problem? Please describe. Handling of metadata is inconsistent and redundant across MMEDS. There should be a single Metadata class that handles all functions relating to it.

Describe the solution you'd like A single python class that any MMEDS or QIIME metadata file can be imported into and modified. This should make heavy use of anapi, which was build exactly for this purpose. This should include such functions as: splitting/joining subject and specimen files, adding/removing metadata columns, and converting between used formats (MMEDS, QIIME, LEfSe).

Additional context Relates to the refactoring of util.py #433 and the reorganization of data and metadata #428

adamcantor22 commented 2 years ago

Explicit datatype checks (e.g. datetime)

adamcantor22 commented 2 years ago

validate.py and metadata_uploader.py should make heavy use of this class

adamcantor22 commented 1 year ago

Functionality required in Metadata class: