| seqbind {bio3d} | R Documentation |
Take a pair of vector or matrix arguments and combine them row-wise without
recycling the shorter argument (as is the case with rbind).
seqbind(a, b, blank = "-")
a |
a vector or matrix. |
b |
a vector or matrix to be appended to a. |
blank |
a character to add to the shorter argument, to achieve the same length as the longer argument. |
A matrix combining the a and b input arguments row-wise.
Barry Grant
Grant, B.J. et al. (2006) Bioinformatics 22, 2695–2696.
seqaln, read.fasta,
read.pdb, write.fasta, rbind
## Not run:
## Read two pdbs
a.pdb <- read.pdb( system.file("examples/1bg2.pdb", package="bio3d") )
b.pdb <- read.pdb( system.file("examples/d1goja_.ent", package="bio3d") )
seqs <- seqbind(aa321(a.pdb$atom[a.pdb$calpha,"resid"]),
aa321(b.pdb$atom[b.pdb$calpha,"resid"]))
# seqaln(seqs)
## End(Not run)