gene_to_comp: Groups proteins by gene symbols into compartments or...

Description Usage Arguments Examples

Description

Takes data frame with a "gene" column and adds a column using a second data frame as a reference to convert between "Gene" column and a compartment column

Usage

1
gene_to_comp(dat, comp_dat, level = "compartment")

Arguments

dat

a data frame with gene symbols

level

a string containing the level to be sorted

gene_dat

a reference data frame with gene symbols and the assigned compartments and sub-compartments within the cell

Examples

1
df$sub_compartment <- gene_to_comp(df, comp_df, level = "sub_compartment")

tsoleary/proteomixr documentation built on July 19, 2019, 8:37 a.m.