Skip to content

Commit cde32d9

Browse files
authored
Merge pull request #11 from OpenKBC/analysis_r
Analysis R - normalization
2 parents 84c69e1 + ac1bac3 commit cde32d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/deseq2_normalization.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ for (i in celltypes){
4949

5050

5151
### save count matrix
52+
# save DESeq2 object
53+
save(deseq_obj, file = "DESeq2_object.RData")
54+
5255
# normalized counts
5356
write.csv(counts(deseq_obj$CD4, normalized = TRUE), "counts_norm_CD4.csv")
5457
write.csv(counts(deseq_obj$CD8, normalized = TRUE), "counts_norm_CD8.csv")
@@ -63,6 +66,3 @@ write.csv(assay(vst(deseq_obj$CD14)), "counts_vst_CD14.csv")
6366
write.csv(assay(rlog(deseq_obj$CD4)), "counts_rlog_CD4.csv")
6467
write.csv(assay(rlog(deseq_obj$CD8)), "counts_rlog_CD8.csv")
6568
write.csv(assay(rlog(deseq_obj$CD14)), "counts_rlog_CD14.csv")
66-
67-
68-

0 commit comments

Comments
 (0)