moonstone.parsers.metadata.MetadataParser

class moonstone.parsers.metadata.MetadataParser(*args, index_col='sample', cleaning_operations=None, **kwargs)[source]

Parse metadata file and allows to apply transformations on them (cleaning…).

__init__(*args, index_col='sample', cleaning_operations=None, **kwargs)[source]

Parse metadata file and allows to apply transformations on them (cleaning…).

Cleaning operations are based on DataFrameCleaner object that allows to perform transformation operations on different columns.

Format is the following:

{'col_name': [('operation1', 'operation1_options'), ('operation2', 'operation2_options')]}
Parameters
  • index_col (str) – name of the column used as dataframe index

  • cleaning_operations (Optional[dict]) – cleaning operations to apply to the input table

Methods

__init__(*args[, index_col, cleaning_operations])

Parse metadata file and allows to apply transformations on them (cleaning…).

get_stats()

Retrieve statistics about each columns.

visualize_categories(categories, color_by[, …])

Visualize category metadata with parallel categories diagram.

Attributes

DEFAULT_COLORSCALE

dataframe

Retrieve the pandas dataframe constructed from the input file.

plotter

Access to instance dedicated to visualization for this type of data.