MotifQuery#

class biotite.database.rcsb.MotifQuery(pattern, pattern_type, scope)[source]#

Bases: SingleQuery

A query for protein/DNA/RNA molecules containing the given sequence motif.

Parameters:
patternstr

The sequence pattern.

pattern_type{‘simple’, ‘prosite’, ‘regex’}

The type of the pattern.

scope{‘protein’, ‘dna’, ‘rna’}

The type of molecule to find.

Examples

>>> query = MotifQuery(
...     "C-x(2,4)-C-x(3)-[LIVMFYWC]-x(8)-H-x(3,5)-H.",
...     "prosite",
...     "protein"
... )
get_content()#

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.