I know from...
>dim(exprs(ALL))
...that my data has 12625 rows (genes) and 128 columns (patients). When I run the following:
apply(exprs(ALL), 1, median)
I'm expecting a single middle number for the entire dataset but instead I'm getting a super long list (below is a sample):
1000_at 1001_at
7.569005 4.965856
1002_f_at 1003_s_at
3.909525 6.021260
1004_at 1005_at
5.852087 9.022537
1006_at 1007_s_at
3.645946 7.285423
1008_f_at 1009_at
8.682517 9.276952
100_g_at 1010_at
For example,
> median(exprs(ALL))
[1] 5.469092
Also, for a histogram I know that:
hist(exprs(ALL))
...works, however,
hist(exprs(ALL, 1))
for rows (genes), and
hist(exprs(ALL, 2))
for columns (patients) does not work, why?
Also, many thanks for your reply post! Very helpful!!