Well, you reset all the normalization factors back to 1 when you ran DGEList() again at the end. Why did you do that? The library sizes had been recalculated already.
Have you read the section on normalization in the edgeR User's Guide? Amongst other things, that tells you why the read counts themselves are never changed.
Minor points:
I think it is usually better to run calcNormFactors() after filtering rather than before.
There is no need for str(y). Just type show(y) or just y by itself. It's far more informative.
Thanks for your help. I have re-written the codes.
I would like to subset the read counts without converting them into CPM. I mean, subsetting for raw read counts. I am planning to use median method of normalization over TMM.
I want to subset for >10 counts and it should be present in atleast 3 libraries.
Thanks for your help. I have re-written the codes.
I would like to subset the read counts without converting them into CPM. I mean, subsetting for raw read counts. I am planning to use median method of normalization over TMM.
I want to subset for >10 counts and it should be present in atleast 3 libraries.
Could you please suggest a code?
Thanks