StructureQuery#
- class biotite.database.rcsb.StructureQuery(pdb_id: str, chain: str | None = None, assembly: str | None = None, strict: bool = True)[source]#
Bases:
SingleQueryA query for protein/DNA/RNA molecules with structural similarity to the query structure.
Either the chain or assembly ID of the query structure must be specified.
- Parameters:
- pdb_idstr
The PDB ID of the query structure.
- chainstr, optional
The chain ID (more exactly
asym_id) of the query structure.- assemblystr, optional
The assembly ID (
assembly_id) of the query structure.- strictbool, optional
If true, structure comparison is strict, otherwise it is relaxed.
Examples
>>> query = StructureQuery("1GYA", assembly="1") >>> print(sorted(search(query))) ['1CDB', '1GYA', '1QA9']