valpas.io.result_to_list#

valpas.io.result_to_list(data, idx, association_type='correlation')#

Takes a pandas.DataFrame in the format of a correlation data_matrix and converts to a list type DataFrame.

Parameters:
  • data (tuple[pandas.DataFrame, pandas.DataFrame]) – Touple of two pandas.DataFrame, one containing calculated association values the other counts for how many values were used for the association value calculation between two omics data points.

  • idx (tuple[str, str]) – Touple of two pandas.Index objects containing the index for the two omics types which were used to calculate association values.

  • association_type (str, default='correlation') – Optional argument that is used to describe the association type in the output.

Return type:

DataFrame