add_property {rPDBapi} | R Documentation |
Add or Merge Properties for RCSB PDB Data Fetching
Description
This function is designed for handling properties related to fetching data from the Protein Data Bank (PDB). It takes a dictionary, where keys represent properties and values are lists of subproperties. If a property already exists in the input list, the function merges the subproperties, ensuring each subproperty is unique and maintains character vector format.
Usage
add_property(property)
Arguments
property |
A dictionary where keys are the properties (like 'cell', 'exptl') and values are lists of subproperties (like 'volume', 'angle_beta', 'method'). Each subproperty should be in character vector format. Full list of properties can be found at https://data.rcsb.org/#data-schema. |
Value
A modified list with updated properties where subproperties are merged if a property already exists.
Examples
properties <- list(cell = c("length_a", "length_b", "length_c"), exptl = c("method"))
add_property(properties)
[Package rPDBapi version 1.3 Index]