Read, Write, Visualize and Manipulate PDB Files

Provides tools to read, write, visualize Protein Data Bank (PDB) files and perform some structural manipulations.


Rpdb: Read, Write, Visualize and Manipulate PDB Files

  • Reanimated the Rpdb package from the CRAN archive;
  • Original author: Julien Idé;

Changes

Usage

library(Rpdb)
# or: devtools::load_all(_path_)

# Download some legacy PDB files:
x = read.pdb(file.choose())
visualize(x, type="l")

Example:

# Download legacy PDB files from:
# https://www.rcsb.org/
x = read.pdb("7K3G.pdb")

# NMR Structure:
# Name of function drop.h: not yet stable;
x0H = drop.h(x)
con = connect(x0H) # Brute-force connectivity;
# Visualisation:
visualize(atoms(x0H), connect = con, type="l", pbc = F); addBBox(x)

# Labels:
res = residues(x0H, "A")
cols = rep("#84A232", nrow(res))
cols[res$resname %in% c("SER", "THR", "ASN")] = "red"
mark.pdb(x0H, ch = "A", col = cols, lwd = 2)

Note:

  • Visualisation is incomplete;
  • Started redesigning the Bounding box vs PBC box;
  • Some functions are not yet visible in Rpdb, but can be accessed using: Rpdb:::function(...);

R-CMD-check

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("Rpdb")

2.4.5 by Leonard Mada, 5 months ago


https://github.com/discoleo/Rpdb


Report a bug at https://github.com/discoleo/Rpdb/issues


Browse source code at https://github.com/cran/Rpdb


Authors: Leonard Mada [cre, ctb] , Julien Idé [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Depends on rgl, stats


See at CRAN