rstoolbox.components.FragmentFrame.make_sequence_matrix

FragmentFrame.make_sequence_matrix(frequency=False, round_data=False)

Generate a PSSM-like matrix from the fragments.

The matrix will contain, for each position the relative enrichment of each residue type. By default, this will be:

\(logodd(f(ni)/f(bi))\)

unless frequency is requested.

Parameters:
  • frequency (bool) – Return the matrix with frequency values..
  • round_data (bool) – Round-floor the values.
Returns:

DataFrame