Learn R Programming

polyester (version 1.8.3)

fpkm_to_counts: Turn FPKMs from a ballgown object into estimated counts for transcripts

Description

Turn FPKMs from a ballgown object into estimated counts for transcripts

Usage

fpkm_to_counts(bg, mean_rps = 1e+08, threshold = 0)

Arguments

bg
ballgown object created from real RNA-seq dataset
mean_rps
This should be the number of reads per sample in total for use in backing out the FPKM calculations
threshold
only estimate parameters from transcripts with mean FPKM measurements larger than threshold

Value

A matrix of counts with the same number of rows and columns as the ballgown object

Examples

Run this code
library(ballgown)
  data(bg)
  countmat = fpkm_to_counts(bg, mean_rps=400000)

Run the code above in your browser using DataLab