TypeError: Parameter 'metadata' received Metadata as an argument, which is incompatible with parameter type: MetadataColumn[Categorical]

43 views Asked by At

TypeError: Parameter 'metadata' received Metadata as an argument, which is incompatible with parameter type: MetadataColumn[Categorical]

for the following code:

uUniFrac_BodySite_significance = diversity.actions.beta_group_significance(core_metrics.unweighted_unifrac_distance_matrix, sample_metadata)

uUniFrac_BodySite_significance.visualization

Visualized my table with:

!metadata.actions.tabulate? #runs help function in the terminal
tabulate = metadata.actions.tabulate(sample_metadata)
tabulate.visualization #displays metadata table and whether column's numeric or categorical
1

There are 1 answers

1
c.kristina On

#.get_column('name_of_column_w_categorical_type'))

uUniFrac_Subject_significance = diversity.actions.beta_group_significance(core_metrics.unweighted_unifrac_distance_matrix, sample_metadata.get_column('name_of_column_w_categorical_type'))