unique_gene_expression: Title Remove redundant gene expression data, and select the...

View source: R/RNA.R

unique_gene_expressionR Documentation

Title Remove redundant gene expression data, and select the maximum one

Description

Title Remove redundant gene expression data, and select the maximum one

Usage

unique_gene_expression(expression.df, f = "max", gene = NULL, method = 1)

Arguments

expression.df

Please note the first column must be gene names if gene = Null

f

Default "max"

gene

If the first columnn is not gene name, input gene name here

method

Default 1. 1 for aggragate, 2 for dplyr

Value

A clean expression data.frame

Examples

d <- read.table(text=
'Name     Month  Rate1     Rate2
Aira       1      12        23
Aira       2      18        73
Aira       3      19        45
Ben        1      53        19
Ben        2      22        87
Ben        3      19        45
Cat        1      22        87
Cat        2      67        43
Cat        3      45        32', header=TRUE)
loonR::unique_gene_expression(d)


ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.