openfold.data.templates¶
Functions for getting templates and calculating template features.
Classes
|
Featurizer for templates given in folder. |
|
|
|
|
|
|
|
|
|
An abstract base class for turning template hits to features. |
|
Functions
|
|
|
|
|
Exceptions
An error indicating that the hit align ratio to the query was too small. |
|
An error indicating that a CA atom distance exceeds a threshold. |
|
An error indicating that the hit date was after the max allowed date. |
|
An error indicating that the hit was an exact subsequence of the query. |
|
An error indicating that the hit was too short. |
|
An error indicating that template mmCIF didn't contain atom positions. |
|
An error indicating that template mmCIF didn't have any chains. |
|
A base class for template prefilter exceptions. |
|
An error indicating that the query can't be aligned to the template. |
|
An error indicating that template mmCIF didn't contain the sequence. |
|
An error indicating that template mmCIF had all atom positions masked. |
- exception AlignRatioError¶
Bases:
PrefilterErrorAn error indicating that the hit align ratio to the query was too small.
- exception CaDistanceError¶
Bases:
ErrorAn error indicating that a CA atom distance exceeds a threshold.
- exception DateError¶
Bases:
PrefilterErrorAn error indicating that the hit date was after the max allowed date.
- exception DuplicateError¶
Bases:
PrefilterErrorAn error indicating that the hit was an exact subsequence of the query.
- exception LengthError¶
Bases:
PrefilterErrorAn error indicating that the hit was too short.
- exception NoAtomDataInTemplateError¶
Bases:
ErrorAn error indicating that template mmCIF didn’t contain atom positions.
- exception NoChainsError¶
Bases:
ErrorAn error indicating that template mmCIF didn’t have any chains.
- exception QueryToTemplateAlignError¶
Bases:
ErrorAn error indicating that the query can’t be aligned to the template.
- exception SequenceNotInTemplateError¶
Bases:
ErrorAn error indicating that template mmCIF didn’t contain the sequence.
- exception TemplateAtomMaskAllZerosError¶
Bases:
ErrorAn error indicating that template mmCIF had all atom positions masked.
- class CustomHitFeaturizer(mmcif_dir, max_template_date, max_hits, kalign_binary_path, release_dates_path=None, obsolete_pdbs_path=None, strict_error_check=False, _shuffle_top_k_prefiltered=None, _zero_center_positions=True)¶
Bases:
TemplateHitFeaturizerFeaturizer for templates given in folder. Chain of interest has to be chain A and of same sequence length as input sequence.
- Parameters:
- get_templates(query_sequence, hits)¶
Computes the templates for given query sequence (more details above).
- Parameters:
query_sequence (str)
hits (Sequence[TemplateHit])
- Return type:
- class HhsearchHitFeaturizer(mmcif_dir, max_template_date, max_hits, kalign_binary_path, release_dates_path=None, obsolete_pdbs_path=None, strict_error_check=False, _shuffle_top_k_prefiltered=None, _zero_center_positions=True)¶
Bases:
TemplateHitFeaturizer- Parameters:
- get_templates(query_sequence, hits)¶
Computes the templates for given query sequence (more details above).
- Parameters:
query_sequence (str)
hits (Sequence[TemplateHit])
- Return type:
- class HmmsearchHitFeaturizer(mmcif_dir, max_template_date, max_hits, kalign_binary_path, release_dates_path=None, obsolete_pdbs_path=None, strict_error_check=False, _shuffle_top_k_prefiltered=None, _zero_center_positions=True)¶
Bases:
TemplateHitFeaturizer- Parameters:
- get_templates(query_sequence, hits)¶
- Parameters:
query_sequence (str)
hits (Sequence[TemplateHit])
- Return type:
- class TemplateHitFeaturizer(mmcif_dir, max_template_date, max_hits, kalign_binary_path, release_dates_path=None, obsolete_pdbs_path=None, strict_error_check=False, _shuffle_top_k_prefiltered=None, _zero_center_positions=True)¶
Bases:
ABCAn abstract base class for turning template hits to features.
- Parameters:
- abstract get_templates(query_sequence, hits)¶
Computes the templates for a given query sequence
- Parameters:
query_sequence (str)
hits (Sequence[TemplateHit])
- Return type:
- class TemplateSearchResult(features: Mapping[str, Any], errors: Sequence[str], warnings: Sequence[str])¶
- empty_template_feats(n_res)¶