How to extract the read counts after normalization with DESeq in R?
1
0
Entering edit mode
2.4 years ago
Amr ▴ 180

I have done the normalization with deseq2 in R, please how can extract csv file for the normalized counts as I want to extract columns of some cell lines to perform GSEA?

dds <- DESeq(dds)

res <- results(dds)

Thanks in advance

GSEA R DESeq Normalization • 904 views
ADD COMMENT
5
Entering edit mode
2.4 years ago
Marco Pannone ▴ 810
count_data <- counts(dds, normalized=TRUE)
write.csv(as.data.frame(count_data),file="count_data.csv")

Naturally, if you are interested only in some samples (columns), then you need to add one more line of code to subset the dataframe accordingly to your aim.

ADD COMMENT
0
Entering edit mode

Thank you so much it worked :)

ADD REPLY

Login before adding your answer.

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