INNER CODE UNIT · Python

compare

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

def compare(reference_file: str, test_file: str) -> float:
    """
    Compare two multiple sequence alignments and return SP score.

    Parameters
    ----------
    reference_file : str
        Path to reference alignment file
    test_file : str
        Path to test alignment file

    Returns
    -------
    float
        SP score (0-100)
    """
    if not os.path.exists(reference_file):
        raise FileNotFoundError(f"Reference file not found: {reference_file}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…