INNER CODE UNIT · Python

filter_alignment

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

def filter_alignment(
    result: AlignedSequences,
    threshold: float = 0.5,
) -> AlignedSequences:
    """Remove low-confidence columns from an alignment result.

    Parameters
    ----------
    result : AlignedSequences
        Alignment result with confidence scores (from ensemble modes).
    threshold : float
        Columns with confidence below this value are removed entirely.

    Returns
    -------
    AlignedSequences
        New result with only high-confidence columns. Shorter sequences.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…