The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
rPDBapi
is an R package designed to provide seamless
access to the RCSB Protein Data Bank (PDB). It simplifies the retrieval
and analysis of 3D structural data of large biological molecules,
essential for bioinformatics and structural biology research. This
package leverages the PDB’s XML-based API to facilitate custom queries,
data retrieval, and advanced search capabilities within the R
programming environment.
You can install the stable version of rPDBapi
from
CRAN:
install.packages("rPDBapi", repos = "http://cran.us.r-project.org")
To install the development version from GitHub:
::install_github("selcukorkmaz/rPDBapi") devtools
Loading the Package
library(rPDBapi)
Retrieving PDB IDs Retrieve PDB IDs related to a specific term, such as “hemoglobin”:
<- query_search(search_term = "hemoglobin")
pdbs head(pdbs)
Advanced Searches Search by PubMed ID:
<- query_search(search_term = 32453425, query_type = "PubmedIdQuery")
pdbs pdbs
Search by source organism:
<- query_search(search_term = '7227', query_type = 'TreeEntityQuery')
pdbs head(pdbs)
Search by experimental method:
<- query_search(search_term = 'SOLID-STATE NMR', query_type='ExpTypeQuery')
pdbs head(pdbs)
Data Retrieval Fetch data based on user-defined IDs and properties:
<- list(rcsb_entry_info = c("molecular_weight"), exptl = "method", rcsb_accession_info = "deposit_date")
properties <- query_search("CRISPR")
ids <- data_fetcher(id = ids, data_type = "ENTRY", properties = properties, return_as_dataframe = TRUE)
df df
Describing Chemical Compounds Retrieve comprehensive descriptions of chemical compounds:
<- describe_chemical('ATP')
chem_desc $rcsb_chem_comp_descriptor$smiles chem_desc
Retrieving PDB Files Download PDB files in various formats:
<- get_pdb_file(pdb_id = "4HHB", filetype = "cif")
pdb_file head(pdb_file$atom)
Additional Functions get_info
: Retrieve
detailed information about a specific PDB entry.
get_fasta_from_rcsb_entry
: Fetch FASTA sequences for
specified PDB entry IDs.
For more detailed examples and usage, please refer to the package documentation.
This package is licensed under the MIT License.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.