StructureQuery#

class biotite.database.rcsb.StructureQuery(pdb_id: str, chain: str | None = None, assembly: str | None = None, strict: bool = True)[source]#

Bases: SingleQuery

A 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']
get_content() → dict[str, Any]#

Get the query content, i.e. the data belonging to the 'query' attribute in the RCSB search API.

This content is converted into JSON by the search() and count() functions.

Returns:
contentdict

The content dictionary for the 'query' attributes.