Skip to content

typo or something? #94

@frmupe

Description

@frmupe
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions