Hi, sorry if this is a bit basic but I'm very new to R.
I am working in Rstudio and I have gene expression data downloaded using TCGAbiolinks, I have downloaded it and prepared it into a RangedSummarizedObject so it includes the clinical data.
I want to subset the data based on this clinical data.
This is the information I found from the SummarizedExperiment package manual -
Subsetting In the code snippets below, x is a RangedSummarizedExperiment object. subset(x, subset, select): Create a subset of x using an expression subset referring to columns of rowRanges(x) (including ‘seqnames’, ‘start’, ‘end’, ‘width’, ‘strand’, and names(rowData(x))) and / or select referring to column names of colData(x)
My object is called prep.BRCA.tumour so I will have subset(prep.BRCA.tumour, ...then I don't know how to write out the next bit.
The data I want is in listData within the colData dataframe.
If anyone could shed some light as to how I would write this it would be much appreciated.