Learn R Programming

rPDBapi (version 2.1.1)

QueryNode: Create a Query Node for RCSB PDB Searches

Description

The `QueryNode` function constructs a query node, which can be either a terminal node (for a simple query) or a grouped node (for complex queries). This function is crucial for structuring queries that will be sent to the RCSB PDB search system.

Usage

QueryNode(search_operator, logical_operator = NULL)

Value

A list representing the query node, ready to be included in a larger query structure.

Arguments

search_operator

A search operator or group object. This defines the criteria for the search.

logical_operator

A string specifying the logical operator to combine multiple queries. Default is `NULL`. This is used only if the search_operator is a group.

Examples

Run this code
# \donttest{
node <- QueryNode(search_operator = DefaultOperator("some_value"))
# }

Run the code above in your browser using DataLab