Computes the euclidean distance between two given residues
res.dist(pdb, rA, chainA, rB, chainB, backbone = FALSE, hatoms = FALSE)
is either a PDB id, or the path to a pdb file.
an integer indicating the position of the first residue.
a character indicating the chain to which belong the first residue.
an integer indicating the position of the second residue.
a character indicating the chain to which belong the second residue.
logical, when TRUE it means that we include those atoms belonging to the main chain (CA, N, O and C) beside all the side chain atoms.
logical, if TRUE we include all the hydrogen atoms in the computation as long as the PDB provides their coordinates.
This function returns a list of three elements, where each of these elements is, in turn, a list of three elements providing information regarding minimal, maximal and averaged distances.
pairwise.dist(), dist2closest(), ball()
# NOT RUN {
res.dist('1q8k', 51, 'A', 55, 'A', backbone = TRUE, hatoms = TRUE)
# }
Run the code above in your browser using DataLab