gene.table: Gene symbols associated to protein accessions

Description Usage Arguments Details Value Author(s) Examples

View source: R/EDA_functions.R

Description

Given a character vector with protein accessions, and a character vector with protein descriptions including gene symbols, returns a character vector with gene symbols whose names are the protein accessions. A character pattern should also be given to match the gene symbols.

Usage

1
gene.table(Accession, Protein, patt = "GN=[A-Z0-9_]*", off = 3)

Arguments

Accession

A character vector with protein accessions

Protein

A character vector of protein descriptions including gene name symbols.

patt

A character pattern to match the gene symbol within the protein description.

off

Offset from the first character in the pattern corresponding to the gene symbol.

Details

NA is inserted where no match is found

Value

A character vector with gene symbols, whose names are the corresponding protein accessions.

Author(s)

Josep Gregori

Examples

1
2
3
4
data(pnms)
head(pnms)
gene.smb <- gene.table(pnms$Accession,pnms$Proteins)
head(gene.smb)

msmsEDA documentation built on May 20, 2017, 10:15 p.m.

Search within the msmsEDA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.