BasicQuery#

class biotite.database.rcsb.BasicQuery(term)[source]#

Bases: SingleQuery

A text query for searching for a given term across all available fields.

Parameters:
termstr

The search term. If the term contains multiple words, the query will return results where the entire term is present. The matching is not case-sensitive. Logic combinations of terms is described here.

Examples

>>> query = BasicQuery("tc5b")
>>> print(sorted(search(query)))
['1L2Y', '8ANG', '8ANH', '8ANI', '8ANM', '8QWW']
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.