Dear all,
I have been trying many things now, but I think there must be an easier way for my quite simple problem.
My colData has Sample.Site = Heart, Liver, ...
Now for my analysis I just want to compare Sample.Site=Heart between Males and femals. How can I filter the colData in a way that I only have Sample.Site=Heart?
Thank you so much for any idea, Bine
Ah, I thought there was a shortcut... You don't need to extract the
colData
to subsetDoes the same thing
Thank you. I wonder how would I remove the samples which are not from heart from the count data then?
Please re-read my answer more carefully. It makes no sense to have a function that subsets one part of the
SummarizedExperiment
object and leaves another part unchanged. The whole idea behind encapsulating the data in theSummarizedExperiment
object is to allow end users to be able to easily subset the object without having to worry if thecolData
still match up with the columns of theassays
, or if therowRanges
still match up with the rows of theassays
.ok you are saying like this my countdata is already taken care of and I do not need to manipulate it separately. Sorry i am still very new to these summarized experiment.
There is a vignette for the SummarizedExperiment package. I often make the point that Open Source software is free in the sense that you don't have to pay money, but there is a cost in your time and effort to understand how the software works. If you plan on using R/Bioconductor to any extent, then you will need to get accustomed to seeking out and reading the information that is made available to you, and the vignette is the very first thing you should read. Do note that the point I make above is in the second paragraph of the introduction! So you wouldn't have to read far to already know this.
Thank you, got it. Just confirming for another person who might read this, my last comment is correct.
One more question, since you said it works like a dataframe I assume I can do this in case I want to use two heart + lung:
Or, rather just:
thank you :)
I was today years old when I learned that
/
did something in R's model.matrix formula.I guess I shouldn't be surprised since
*
is a thing, but man ... still wet behind the ears, I guess ...Thanks for the tutelage, Jim!
Of late I have been working with Epidemiologists, and if there is something they like more than stratifying I have yet to find it. Oh, wait. Power calculations. So like I was saying, other than power calculations nothing pleases an Epidemiologist more than stratifying. And nothing pleases me less than cutting data up into ever smaller chunks, so...
Notably, the
/
operator isn't even mentioned in?formula
. I know about it from Modern Applied Statistics with S, because V&R are old school legit.