calc.percentSpeciesExpression: Calculates the percent of gene expression for each listed...

View source: R/calc.percentSpeciesExpression.R

calc.percentSpeciesExpressionR Documentation

Calculates the percent of gene expression for each listed species.

Description

This function calculates the percent of gene expression for each listed species base on the total read counts and the counts of reads belonging to each species. This function requires that the gene names for each species be uniquily labeled. For example, ENSG is human and ENSMUSG is mouse for Entre IDs.

Usage

calc.percentSpeciesExpression(data, species_df)

Arguments

data

A dataframe or matrix containing the data to use for calculating the percent of species expression.

species_df

A dataframe containing each species name as a column name, and the string to use to identify each species uniquely in the gene names(row names of data matrix) is in row 1.

Value

dataframe with one row per sample/condition and N columns with the percent of expression for the provided species.

Author(s)

Amy L. Olex alolex@vcu.edu

Examples

species_df <- data.frame("Human"="ENSG", "Mouse"="ENSMUSG")
percents <- calc.percentSpeciesExpression(data, species_df)

AmyOlex/RNASeqBits documentation built on Jan. 26, 2024, 7:08 a.m.