How to perform FPKM on raw reads in R
2
0
Entering edit mode
6.8 years ago

How I perform fpkm on a file containing the raw reads of two samples and each sample have three replicates? I want to do the analysis in R.

RNA-Seq FPKM R sequencing • 13k views
ADD COMMENT
3
Entering edit mode
5.1 years ago
Ahmed Alhendi ▴ 230

Try countToFPKM package. This package provides an easy to use function to convert the read count matrix into FPKM values normalised by library size and feature effective length. It also provides the user with a reliable function to generate FPKM heatmap plot of the highly variable features in RNA-Seq dataset.; following the equation:

enter image description here.

The fpkm() function requires three inputs to return FPKM as numeric matrix normalized by library size and feature length:

  • counts A numeric matrix of raw feature counts.
  • featureLength A numeric vector with feature lengths that can be obtained using biomaRt.
  • meanFragmentLength A numeric vector with mean fragment lengths, which can be calculate with
    Picard using CollectInsertSizeMetrics.

Also see https://github.com/AAlhendi1707/countToFPKM

ADD COMMENT
0
Entering edit mode

Could the countToFPKM package work for single end RNA seq data too? Thanks.

ADD REPLY
1
Entering edit mode
6.8 years ago

See the blog post "What the FPKM" by Harold Pimentel that also provides R code:

https://haroldpimentel.wordpress.com/2014/05/08/what-the-fpkm-a-review-rna-seq-expression-units/

ADD COMMENT

Login before adding your answer.

Traffic: 2542 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6