Skip to content

Can ANARCI support hmm search with a specific chain? #74

@yzhougnf

Description

@yzhougnf

We often need to explicitly search CDRs for a heavy chain or a light chain. E.g., we have a nanobody sequence (with heavy and light chain fused), we don't want to get heavy chain CDRs or light chain CDRs randomly. We prefer to use anarci to first scan for heavy chain CDRs, and then scan for light chain CDRs.

This means we should modify the following function to consider an optional chain type argument.

_parse_hmmer_query(query, bit_score_threshold=80, hmmer_species=None, chain_type=None):

            if chain_type is None: return hsp_list
            hsp_list=[hsp for hsp in hsp_list if hsp.hit_id.endswith(f"{chain_type}")]

Thanks for the consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions