tacco.utils.generate_mixture_profiles

generate_mixture_profiles(average_profiles, include_pure_profiles=False)[source]

Creates symmetric pairwise mixture profiles.

Parameters:
  • average_profiles – A 2d ndarray with features in the rows and profiles in the columns

  • include_pure_profiles – Whether to include pure profiles in the result, too.

Returns:

A tuple consisting of a ndarray containing the mixture profiles and a sparse matrix giving the mixtures.