fetch_data {rPDBapi}R Documentation

Fetch Data from RCSB PDB Using a JSON Query

Description

This function sends a JSON query to the RCSB Protein Data Bank (PDB) and fetches the corresponding data. It checks for errors in the response and warns if there are discrepancies in the number of IDs found.

Usage

fetch_data(json_query, data_type, ids)

Arguments

json_query

A JSON string representing the query to be sent to the PDB.

data_type

A string indicating the type of data to be fetched (not directly used in the function but may be relevant for context).

ids

A vector of identifiers to fetch data for.

Value

A list containing the data fetched from the PDB, with the names of the list elements set to the corresponding IDs. If an error is encountered in the data fetching process, the function returns 'NULL'.


[Package rPDBapi version 1.1 Index]