View source: R/amino_acid_pairs.R
| amino_acid_pairs | R Documentation | 
This function generates combinations of amino acids in pairs. By default, it generates all pair combinations of the 20 standard amino acids.
amino_acid_pairs(
  x = amino_acids(),
  y = amino_acids(),
  keep_self = TRUE,
  keep_duplicates = TRUE,
  keep_reverses = TRUE
)
x | 
 A character vector of amino acids (three-letter codes).  | 
y | 
 Another character vector of amino acids (three-letter codes).  | 
keep_self | 
 Whether to keep pairs involving the same amino acid.  | 
keep_duplicates | 
 Whether to keep duplicated pairs.  | 
keep_reverses | 
 Whether to keep pairs that are reversed versions of
others. E.g. if   | 
A tibble of amino acid pairs.
# Generate all pairs of the 20 standard amino acids
amino_acid_pairs()
# Remove the self-to-self pairs
amino_acid_pairs(keep_self = FALSE)
# Generate specific combinations of Ser against Ala and Trp.
amino_acid_pairs(x = 'Ser', y = c('Ala', 'Trp'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.