search
Module with search logic.
UniprotQuery
dataclass
Bases: Query
A UniProt search query with interaction partner options and pdb residue length filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interaction_partner_seeds
|
set[str]
|
A set of UniProt accessions to search for interaction partners. |
set()
|
interaction_partners_excludes
|
A set of UniProt accessions to exclude from interaction partner results. |
required | |
min_residues
|
int | None
|
Minimum number of residues required in the chain mapped to the UniProt accession. |
None
|
max_residues
|
int | None
|
Maximum number of residues allowed in chain mapped to the UniProt accession. |
None
|
search_for_interaction_partners(query, limit)
Searches for interaction partners in UniProt database and ComplexPortal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
UniprotQuery
|
The search query containing seeds and excludes. |
required |
limit
|
int
|
The maximum number of results to return from the database query. |
required |
Returns:
| Type | Description |
|---|---|
set[str]
|
A set of unique UniProt accessions of interaction partners found. |