Learn R Programming

ptm (version 0.2.2)

is.at: Check Residue a Fixed Position

Description

Checks if a given amino acid is at a given position.

Usage

is.at(at, target, aa = 'M', uniprot = TRUE)

Arguments

at

the position in the primary structure of the protein.

target

a character string specifying the UniProt ID of the protein of interest or, alternatively, the sequence of that protein.

aa

the amino acid of interest.

uniprot

logical, if TRUE the argument 'target' should be an ID.

Value

Returns a boolean. Either the residue is present at that position or not.

Details

Please, note that when uniprot is set to FALSE, target can be the string returned by a suitable function, such as get.seq or other.

See Also

aa.at(), renum.pdb(), renum.meto(), renum(), aa.comp()

Examples

Run this code
# NOT RUN {
is.at(28, 'P01009', 'Q')
is.at(at = 80, target = get.seq('P00004', 'metosite'), uniprot = FALSE)
# }

Run the code above in your browser using DataLab