convert_genes: Adds a column to the df with the human gene name...

Description Usage Arguments Value

View source: R/convert_genes.R

Description

This function adds a column HumanSymbol to the given df containing the human gene name for the gene present in the column MouseSymbol. If no matching gene is found, it adds a NaN value to the column. Uses a conversion file between mouse and human gene symbols (parameter conversion_file).

Usage

1
convert_genes(df, conversion_file, old_gene_col, new_gene_col)

Arguments

conversion_file

.csv file containing equivalence b/w human and mouse genes in two columns (HumanSymbol & MouseSymbol)

old_gene_col

Name of column containing the old gene name

new_gene_col

Name of column containing the new gene name

gene

Name of the mouse gene

Value

Dataframe with a new column containing the new gene names


AlexandreGaubil/geneSpeciesTranslation documentation built on Jan. 2, 2022, 7:19 p.m.