Skip to content

Commit 08245b2

Browse files
authored
Merge branch 'main' into engineering_dev
2 parents 0875d7a + cde32d9 commit 08245b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/deseq2_normalization.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ for (i in celltypes){
5151

5252

5353
### save count matrix
54+
# save DESeq2 object
55+
save(deseq_obj, file = "DESeq2_object.RData")
56+
5457
# normalized counts
5558
write.csv(counts(deseq_obj$CD4, normalized = TRUE), "counts_norm_CD4.csv")
5659
write.csv(counts(deseq_obj$CD8, normalized = TRUE), "counts_norm_CD8.csv")
@@ -64,4 +67,5 @@ write.csv(assay(vst(deseq_obj$CD14)), "counts_vst_CD14.csv")
6467
# rlog transformed counts
6568
write.csv(assay(rlog(deseq_obj$CD4)), "counts_rlog_CD4.csv")
6669
write.csv(assay(rlog(deseq_obj$CD8)), "counts_rlog_CD8.csv")
67-
write.csv(assay(rlog(deseq_obj$CD14)), "counts_rlog_CD14.csv")
70+
write.csv(assay(rlog(deseq_obj$CD14)), "counts_rlog_CD14.csv")
71+

0 commit comments

Comments
 (0)