schicluster.diff.loop

schicluster.diff.loop#

Module Contents#

one_way_anova(chrom_loop_ds, da_name, value_type, group_n_dim='group_n', group_dim='sample_id')[source]#

Perform one-way ANOVA on a single-chrom loop dataset.

Parameters:
  • chrom_loop_ds – A single-chrom loop dataset.

  • da_name – The name of the data array to perform ANOVA on.

  • value_type – The value type of the data array to perform ANOVA on. both “{value_type}” and “{value_type}2” should be present in the “{da_name}_value_type” dimension.

  • group_n_dim – The name of the group number variable.

  • group_dim – The name of the group dimension.

Return type:

F statistics and P-values of the one-way ANOVA.

merge_groups(loop_ds, group_map, da_name, group_dim='sample_id', group_n_dim='group_n')[source]#

Merge groups into larger groups in a loop dataset.

Parameters:
  • loop_ds – A loop dataset.

  • group_map – A pd.Series mapping from old group names to new group names.

  • da_name – The name of the data array to merge groups for.

  • group_dim – The name of the group dimension.

  • group_n_dim – The name of the group number variable.

Return type:

A loop dataset with merged groups.