Using dgelist function in EdgeR to calculate RPKM
0
0
Entering edit mode
2.5 years ago
bart ▴ 50

Hi,

I'm new to RNAseq and I want to calculate rpkm values from my raw counts but I am unsure if my understanding of how to do so is correct. From what I understand, I should do the following:

df <- DGEList(counts=counts,genes=my_genes_vector,groups=my_groups_vector)) #counts should be the dataframe with all the counts, genes should be a vector with genes and groups should be a vector to which group a sample belongs (treatment vs no treatment etc)

df <- calcNormFactors(df)

RPKM <- rpkm(df, gene.length=my_gene_length_vector) #my_gene_length_vector should be a vector with all gene lengths

Is this correct?

Thanks!

rpkm edger dgelist • 820 views
ADD COMMENT
0
Entering edit mode

I think so. Refer to this website: https://support.bioconductor.org/p/64585/

ADD REPLY

Login before adding your answer.

Traffic: 3129 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