Dear all,
I am new to DESeq2 and R and am in need of a distance analysis between different cell types in an RNAseq analysis. We have 10 cell types and 2 biological replicates for each. The sample-to-sample distance was easy to obtain with the code provided in the manual (thank you! and see below), but is there an easy way to assess the group-to-group distance too? (i.e. cell type to cell type). E.g. is it fair to average the counts of biological replicates in the dds, and if so, how? Is there a way to choose JS-distance over Euclidean?
rld <- rlogTransformation(dds, blind=TRUE)
distsRL <- dist(t(assay(rld)))
mat <- as.matrix(distsRL)
rownames(mat) <- colnames(mat) <- with(colData(dds),paste(celltype))
I truly thank you for any assistance that you can offer,
KS
Hi Michael,
Yes, this would absolutely work.
That you kindly for your effort in advance!
KS