seqme.models.HydrophobicMoment#

class seqme.models.HydrophobicMoment(scale='eisenberg', window=11, angle=100, modality='mean')[source]#

Hydrophobic moment (i.e., amphiphilicity) for one or more amino acid sequences using a sliding-window approach.

Installation: pip install "seqme[aa_descriptors]"

__init__(scale='eisenberg', window=11, angle=100, modality='mean')[source]#

Initialize the hydrophobic moment.

Parameters:
  • scale (Literal['eisenberg', 'hopp-woods', 'janin', 'kytedoolittle']) – Name of the hydrophobicity scale to use.

  • window (int) – Size of window

  • angle (int) – Angle in which to calculate the moment. 100 for alpha helices, 180 for beta sheets.

  • modality (Literal['max', 'mean']) – Method to compute statistic

__call__(sequences)[source]#

Compute hydrophobic moment.

Parameters:

sequences (list[str]) – List of amino acid sequences.

Return type:

ndarray

Returns:

hydrophobic moment for each sequence.

Methods

__init__([scale, window, angle, modality])

Initialize the hydrophobic moment.

__call__(sequences)

Compute hydrophobic moment.