Rows: 14889 Columns: 17
── Column specification ────────────────────────────────────────────────────────
Delimiter: "\t"
chr (1): Gene
dbl (16): N_4, N_12, N_14, N_16, N_18, N_20, N_6, N_8, B_1, B_7, B_9, B_3, B...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Rows: 16 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: "\t"
chr (1): BCG
dbl (1): row
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
#reformat, against tidyverse good practices, but it's more conveniente for traditional R programming.GE<-as.matrix(expression[,-1])dim(GE)
[1] 14889 16
genenames<-expression[,1]length(genenames[[1]])
[1] 14889
rownames(GE)<-genenames[[1]]#just a dry run with a single genett<-t.test(GE[1,]~trt,var.equal =TRUE)tt
Two Sample t-test
data: GE[1, ] by trt
t = 0.11986, df = 14, p-value = 0.9063
alternative hypothesis: true difference in means between group B and group N is not equal to 0
95 percent confidence interval:
-1.003294 1.122071
sample estimates:
mean in group B mean in group N
0.5865607 0.5271721
tt$statistic
t
0.1198626
tt$estimate
mean in group B mean in group N
0.5865607 0.5271721
mean in group B mean in group N dif.mean in group B df.df
0.58656071 0.52717208 0.05938863 14.00000000
SE t_test.t p_value
0.49547251 0.11986261 0.90629508
mean in group B mean in group N dif.mean in group B df.df SE
A2ML1 0.5865607 0.5271721 0.05938863 14 0.4954725
AADAC 0.1864595 0.1399737 0.04648578 14 0.3556881
AAMDC -0.2649282 -1.0181096 0.75318135 14 0.8105920
t_test.t p_value
A2ML1 0.1198626 0.9062951
AADAC 0.1306925 0.8978779
AAMDC 0.9291745 0.3685433
Now apply it to all the table and format the output.
Warning in instance$preRenderHook(instance): It seems your data is too big for
client-side DataTables. You may consider server-side processing:
https://rstudio.github.io/DT/server.html
Warning in instance$preRenderHook(instance): It seems your data is too big for
client-side DataTables. You may consider server-side processing:
https://rstudio.github.io/DT/server.html