Using on the output of get_dataset_samples
, this function creates
a simplified design table, granting one column to each experimental variable
make_design(samples, metaType = "text")
A data.frame including the design table for the dataset
samples <- get_dataset_samples('GSE46416')
make_design(samples)
#> factorValues block
#> Bipolar disorder patient euthymic phase, 11 c("block.... Batch_02_26/11/09
#> Bipolar disorder patient euthymic phase, 17 c("block.... Batch_02_26/11/09
#> Control, 12 c("block.... Batch_02_26/11/09
#> Control, 1_DE50 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient euthymic phase, 19 c("block.... Batch_03_27/11/09
#> Control, 9 c("block.... Batch_01_25/11/09
#> Bipolar disorder patient manic phase, 29 c("disea.... Batch_03_27/11/09
#> Bipolar disorder patient manic phase, 31 c("disea.... Batch_04_02/12/09
#> Bipolar disorder patient manic phase, 18 c("block.... Batch_02_26/11/09
#> Bipolar disorder patient manic phase, 35 c("disea.... Batch_04_02/12/09
#> Control, 15 c("block.... Batch_02_26/11/09
#> Bipolar disorder patient manic phase, 5 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient euthymic phase, 34 c("block.... Batch_04_02/12/09
#> Bipolar disorder patient euthymic phase, 30 c("block.... Batch_03_27/11/09
#> Control, 2_DE40 c("block.... Batch_01_25/11/09
#> Control, 2_DE23 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient manic phase, 33 c("disea.... Batch_04_02/12/09
#> Bipolar disorder patient euthymic phase, 6 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient euthymic phase, 24 c("block.... Batch_03_27/11/09
#> Control, 8 c("block.... Batch_01_25/11/09
#> Control, 3 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient euthymic phase, 32 c("block.... Batch_04_02/12/09
#> Bipolar disorder patient euthymic phase, 38 c("block.... Batch_04_02/12/09
#> Bipolar disorder patient euthymic phase, 22 c("block.... Batch_03_27/11/09
#> Bipolar disorder patient manic phase, 23 c("disea.... Batch_03_27/11/09
#> Bipolar disorder patient manic phase, 37 c("disea.... Batch_04_02/12/09
#> Bipolar disorder patient euthymic phase, 36 c("block.... Batch_04_02/12/09
#> Control, 4 c("disea.... Batch_05_24/11/10
#> Bipolar disorder patient manic phase, 10 c("disea.... Batch_01_25/11/09
#> Control, 1_DE62 c("block.... Batch_01_25/11/09
#> Bipolar disorder patient manic phase, 21 c("disea.... Batch_03_27/11/09
#> Bipolar disorder patient manic phase, 16 c("block.... Batch_02_26/11/09
#> disease
#> Bipolar disorder patient euthymic phase, 11 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient euthymic phase, 17 bipolar disorder has_modifier euthymic phase
#> Control, 12 reference subject role
#> Control, 1_DE50 reference subject role
#> Bipolar disorder patient euthymic phase, 19 bipolar disorder has_modifier euthymic phase
#> Control, 9 reference subject role
#> Bipolar disorder patient manic phase, 29 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient manic phase, 31 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient manic phase, 18 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient manic phase, 35 bipolar disorder has_modifier manic phase
#> Control, 15 reference subject role
#> Bipolar disorder patient manic phase, 5 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient euthymic phase, 34 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient euthymic phase, 30 bipolar disorder has_modifier euthymic phase
#> Control, 2_DE40 reference subject role
#> Control, 2_DE23 reference subject role
#> Bipolar disorder patient manic phase, 33 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient euthymic phase, 6 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient euthymic phase, 24 bipolar disorder has_modifier euthymic phase
#> Control, 8 reference subject role
#> Control, 3 reference subject role
#> Bipolar disorder patient euthymic phase, 32 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient euthymic phase, 38 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient euthymic phase, 22 bipolar disorder has_modifier euthymic phase
#> Bipolar disorder patient manic phase, 23 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient manic phase, 37 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient euthymic phase, 36 bipolar disorder has_modifier euthymic phase
#> Control, 4 reference subject role
#> Bipolar disorder patient manic phase, 10 bipolar disorder has_modifier manic phase
#> Control, 1_DE62 reference subject role
#> Bipolar disorder patient manic phase, 21 bipolar disorder has_modifier manic phase
#> Bipolar disorder patient manic phase, 16 bipolar disorder has_modifier manic phase