-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
from rcsbapi.search import AttributeQuery
from rcsbapi.search import group
q1 = AttributeQuery(
attribute="exptl.method",
operator="exact_match",
value="electron microscopy"
)
q2 = AttributeQuery(
attribute="rcsb_id",
operator="exact_match",
value="ATP",
service="text_chem"
)
q3 = AttributeQuery(
attribute="rcsb_entity_source_organism.scientific_name",
operator="exact_match",
value="Escherichia coli"
)
# Using `group` ensures that `resource_name` and `accession_code` attributes are searched together
query = group(q1 & q2) & q3
print(list(query()))
print(query().get_editor_link())
(from the documentation https://rcsbapi.readthedocs.io/en/latest/search_api/query_construction.html)
resource_name?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels