DESeq normalizes the raw count data by using (estimated) scaling factors and is implemented in R package DESeq. First calculate the ratio of the read count over the geometric mean across all samples for each gene. Then estimate the scaling factor by the median ratio within each sample.