Description Usage Arguments Value Examples
Produces a log FPKM (fragment/read per kilobase per million) of the genes necessary for classification. Requires a data frame of raw counts per gene (each row corresponds to a gene) and a vector of gene lengths. Note: in order to succesfully classify all twenty of the genes are required by the classifier.
1 | streamline(counts,glengths)
|
counts |
A matrix of raw integer counts where each row is a gene and each column a different sample. |
glengths |
The length in bases of all genes (rows) in the counts matrix for which the FPKM is normalised to. |
A matrix of fragments/reads per kilobase per million. Rows are genes and columns are samples.
1 2 3 | cf <- system.file("data","test_data.txt",package="AllSorts") #Get path to raw text file (a tsv)
counts <- read.table(file=cf,sep=' ',stringsAsFactors = FALSE,header=TRUE)
FPKM <- streamline(counts[,c(1:6)],counts$Gene_Length)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.