Hello,
I have a normalized file referred to in my programme as "geneSummaries". For each gene across the samples I want to get the median. I am using a For loop to do this.
Normalised the .CEL files which point to geneSummaries
exprs(geneSummaries)-> num for(i in num){ geneSummaries[-1, ] geneSummaries[ ,i] Will be doing the calculation here.... }
So my Question is to do with pulling the data out of the file to do the calculation. I want it drop the 1st column as this is just the name of the sample. See below a sample example of it, when I opened it.
7945460 7.471390 7.256158 7.287770 7.545794 7945462 7.609366 7.528324 7.324294 7.310791 7945475 5.375443 5.749566 5.519073 5.806861
So to do that I used geneSummaries[-1, ]
but it doesn't work
And to pull information out of the i
th column I used geneSummaries[ ,i]
so can later do calculation, which also doesn't work.
Could someone suggest a idea on how to do this, please.
Thanks so much .........