human_aa: Get amino acid compositions of human proteins

View source: R/human_aa.R

human_aaR Documentation

Get amino acid compositions of human proteins

Description

Get amino acid compositions of human proteins from their UniProt IDs.

Usage

  human_aa(uniprot = NULL, aa_file = NULL,
    stop_if_missing = FALSE, warn_if_duplicated = FALSE)

Arguments

uniprot

character, UniProt IDs of proteins

aa_file

character, file name

stop_if_missing

logical, stop with an error if there are UniProt IDs that can't be found?

warn_if_duplicated

logical, emit a warning if duplicate UniProt IDs are detected?

Details

This function retrieves the amino acid compositions of one or more proteins specified by uniprot.

This function depends on the amino acid compositions of human proteins, which are stored in the canprot environment when the package is attached. If aa_file is specified, additional amino acid compositions are read from this file. This file should be in the same format as human.extra.csv in the installation directory of the package.

Value

The function returns a data frame with amino acid compositions of proteins.

Examples

human_aa("P24298")

jedick/canprot documentation built on April 2, 2024, 10:29 p.m.