INNER CODE UNIT · Python

mask_alignment

TimoLassmann/kalign · python-kalign/__init__.py:700

def mask_alignment(
    result: AlignedSequences,
    threshold: float = 0.5,
    style: str = "lowercase",
) -> AlignedSequences:
    """Mask low-confidence columns in an alignment result.

    Parameters
    ----------
    result : AlignedSequences
        Alignment result with confidence scores (from ensemble modes).
    threshold : float
        Columns with confidence below this value are masked.
    style : str
        "lowercase" — uncertain residues become lowercase (default).
        "remove" — uncertain residues replaced with '-'.

    Returns

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…