findMotif: Returns an alignment data frame of alleles that share a...

Description Usage Arguments Value Examples

View source: R/findMotif.R

Description

Consumes the alignment data frame produced by BLAASD() and returns an alignment data frame of alleles that share a specific amino acid motif.

Usage

1
findMotif(motif)

Arguments

motif

An amino acid motif in the following format: Locus*##$~##$~##$, where ## identifies a peptide position, and $ identifies an amino acid residue. Motifs can include any number of amino acids.

Value

An amino acid alignment dataframe of alleles that share the specified motif. If the motif is not found in any alleles, or the motif has formatting errors, a warning message is returned.

Examples

1
2
3
4
5
6
7
8
9
#example with actual motif
findMotif("DRB1*26F~28E~30Y")
("DRB1*26F~28E")

#example with non-existent motif
findMotif("DRB1*26F~28E~30Z")

#extracting names of alleles with user-defined motif
findMotif("DRB1*26F~28E~30Y")[,4]

SSHAARP documentation built on Sept. 17, 2021, 9:07 a.m.