seqbind {bio3d}R Documentation

Combine Sequences by Rows Without Recycling

Description

Take a pair of vector or matrix arguments and combine them row-wise without recycling the shorter argument (as is the case with rbind).

Usage

seqbind(a, b, blank = "-")

Arguments

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.

Value

A matrix combining the a and b input arguments row-wise.

Author(s)

Barry Grant

References

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

See Also

seqaln, read.fasta, read.pdb, write.fasta, rbind

Examples

## 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)

[Package bio3d version 1.0-5 Index]