Hi all,
I have a question about edgeR Bisulfite sequencing and differential methylation analysis. I'm following the main manual 'differential analysis of sequence read count'. I have found some inconsistencies in library size preparation.
In the manual, the library sizes for each sample should be the average of the total read counts for the methylated and unmethylated libraries. But the code shows:
TotalLibSize <- y$samples$lib.size[Methylation=="Me"] + y$samples$lib.size[Methylation=="Un"]
In the next chapter in the same step and note 'as before' the code is:
TotalLibSizepr <- 0.5*ypr$samples$lib.size[Methylation=="Me"] + 0.5*ypr$samples$lib.size[Methylation=="Un"]
Could You explain to me the difference between both approaches? In other papers, there are also two different approaches.
Regards
Great! All is clear. Thank You for a clear explanation.