View source: R/calc.percentSpeciesExpression.R
calc.percentSpeciesExpression | R Documentation |
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.
calc.percentSpeciesExpression(data, species_df)
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. |
dataframe with one row per sample/condition and N columns with the percent of expression for the provided species.
Amy L. Olex alolex@vcu.edu
species_df <- data.frame("Human"="ENSG", "Mouse"="ENSMUSG")
percents <- calc.percentSpeciesExpression(data, species_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.