human_aa {canprot}R 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")

[Package canprot version 2.0.0 Index]