`calculateRPKM` <-
function( readCount, exonBases=1000, totalReads=1000000) {
# turn a gene's total read count into a "Reads Per Thousand_Exon_Bases per Million_Reads"
thousandBasesFac <- max( exonBases, 1) / 1000
millionReadsFac <- max( totalReads, 1) / 1000000
rpkm <- readCount / thousandBasesFac / millionReadsFac
return( rpkm)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.