Sorting#

class biotite.database.rcsb.Sorting(field: str, descending: bool = True)[source]#

Bases: object

get_content() dict[str, Any]#

Get the sorting content, i.e. the data belonging to the 'sort' and 'ranking_criteria_type' attributes in the RCSB search API.

This content is converted into JSON by the search() function.

Returns:
contentdict

The content dictionary for the 'sort' and 'ranking_criteria_type' attributes.