Simple RScript to calculate RPKMs and TPMs from the counts created by featureCounts
RPKM/TPM calculations are based on the methods shown in http://www.rna-seqblog.com/rpkm-fpkm-and-tpm-clearly-explained/
The input file is the output of featureCounts
Usage: Rscript tpm_rpkm.R <featureCounts_output_file>
Creates: <featureCounts_output_file>_rpkm.txt <featureCounts_output_file>_tpm.txt