IdentityGrouping#
- class biotite.database.rcsb.IdentityGrouping(similarity_cutoff, sort_by=None)[source]#
Bases:
GroupingThis class groups protein chains with a given sequence identity with each other.
This
Groupingis only applicable, if thecount()/search()return type is set topolymer_entity.- Parameters:
- similarity_cutoff{100, 95, 90, 70, 50, 30}
The sequence identity in percent at which the structures are grouped. In other words, a returned group contains sequences that have similarity_cutoff sequence identity with each other. Since the PDB uses precalculated clusters, only certain values are available.
- sort_bystr or Sorting, optional
If specified, the returned PDB IDs within each group are sorted by the values of the given field name. A complete list of the available fields is documented at https://search.rcsb.org/structure-search-attributes.html. and https://search.rcsb.org/chemical-search-attributes.html. If a string is given, sorting is performed in descending order. To choose the order a
Sortingobject needs to be provided.
- get_content()#
Get the grouping content, i.e. the data belonging to the
'group_by'attribute in the RCSB search API.This content is converted into JSON by the
search()andcount()functions.ABSTRACT: Override when inheriting.
- Returns:
- contentdict
The content dictionary for the
'group_by'attributes.
- is_compatible_return_type(return_type)#
Check whether this
Groupis compatible with the RCSB search APIreturn_type.ABSTRACT: Override when inheriting.
- Parameters:
- return_typestr
The
return_typeattribute to be checked.
- Returns:
- is_compatiblebool
True, if this
Groupis compatible with the return_type, false otherwise.