Dear knowledgeable people,
I am having some issues manipulating my DESeq Object, it is not so easy as it as with a dataframe.
Basically all what I want to do is is to remove certain genes from the countData and the corresponding rows from the colData.
Has anyone an idea how I can do this? Select and all this does not to work on this object..
Thank you very much, Bine
Thank you very much. Sry for not explaining it clearly enough. It is great that the colData will be filtered automatically.
What I want to do is I found that out of 50.000 genes only 15.000 pass my filter.
Actually the easiest way for me to keep working with the data would be to view these 15.000 genes.
So I have now my new DESeq Object with 15.000 genes:
Apply Filter
keep <- rowSums(counts(dds0)> 1 >= 100 dds0 <- dds0[keep,]
View(dds0) doesnt work, and view(cts) shows me the 50.000 genes from before.
Is there an option to view countData of dds0 (new) ?
Yes, that is expected. The DESeqDataSet is a container, not a specific assay itself so you first have to access the assay.
As said dds is basically a SummarizedExperiment, please read its documentation.
http://bioconductor.org/packages/release/bioc/vignettes/SummarizedExperiment/inst/doc/SummarizedExperiment.html
Thank you I will check this documentation!