flotilla.data_model.metadata module

class flotilla.data_model.metadata.MetaData(data, phenotype_order=None, phenotype_to_color=None, phenotype_to_marker=None, phenotype_col='phenotype', pooled_col='pooled', predictor_config_manager=None)[source]

Bases: flotilla.data_model.base.BaseData

merge_boolean_columns(columns)[source]

Merge boolean columns in data and return logical OR

Parameters:

columns : list-like

Boolean columns whose attributes to merge

Returns:

merged : pandas.Series

A single boolean column, with True for each row that had True in any column

n_phenotypes[source]
phenotype_color_order[source]
phenotype_order[source]
phenotype_transitions[source]
sample_id_to_color[source]
sample_id_to_phenotype[source]
sample_subsets[source]
set_outliers_by_merging_columns(columns)[source]

Merge boolean columns of data into “outlier” column

Parameters:

columns : list-like

Column names whose boolean attributes to merge

Returns:

is_ever_an_outlier : pandas.Series

Boolean series indicating whether this sample was ever indicated as an outlier

unique_phenotypes[source]
Olga B. Botvinnik is funded by the NDSEG fellowship and is a NumFOCUS John Hunter Technology Fellow.
Michael T. Lovci was partially funded by a fellowship from Genentech.
Partially funded by NIH grants NS075449 and HG004659 and CIRM grants RB4-06045 and TR3-05676 to Gene Yeo.