Learn R Programming

bio3d (version 2.1-2)

pdbaln: Sequence Alignment of PDB Files

Description

Create multiple sequences alignments from a list of PDB files returning aligned sequence and structure records.

Usage

pdbaln(files, fit = FALSE, pqr = FALSE, ncore = 1, nseg.scale = 1,  ...)

Arguments

files
a character vector of PDB file names.
fit
logical, if TRUE coordinate superposition is performed on the input structures.
pqr
logical, if TRUE the input structures are assumed to be in PQR format.
ncore
number of CPU cores used to do the calculation. ncore>1 requires package parallel installed.
nseg.scale
split input data into specified number of segments prior to running multiple core calculation. See fit.xyz.
...
extra arguments passed to seqaln function.

Value

  • Returns a list of class "pdbs" with the following five components:
  • xyznumeric matrix of aligned C-alpha coordinates.
  • resnocharacter matrix of aligned residue numbers.
  • bnumeric matrix of aligned B-factor values.
  • chaincharacter matrix of aligned chain identifiers.
  • idcharacter vector of PDB sequence/structure names.
  • alicharacter matrix of aligned sequences.
  • callthe matched call.

Details

This wrapper function calls the underlying functions read.pdb, pdbseq, seqaln and read.fasta.pdb returning a list of class "pdbs" similar to that returned by read.fasta.pdb.

As these steps are often error prone it is recomended for most cases that the individual underlying functions are called in sequence with checks made on the valadity of their respective outputs to ensure sensible results.

References

Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.

See Also

read.pdb, pdbseq, seqaln, read.fasta,read.fasta.pdb, core.find, fit.xyz, read.all

Examples

Run this code
#files <- get.pdb(c("4q21","5p21"), URLonly=TRUE)
files <- get.pdb(c("4q21","5p21"), path=tempdir(), overwrite=TRUE)
pdbaln(files)

Run the code above in your browser using DataLab