# NOT RUN {
# (1) a toy example (a very small subsample of a transcriptomics data set)
#
datatxt <- system.file("extdata", "transcripto_very_small_sample.txt", package="DRomics")
# to test the package on a small (for a quick calculation) but not very small data set
# use the following commented line
# datatxt <- system.file("extdata", "transcripto_sample.txt", package="DRomics")
(o <- omicdata(datatxt, check = TRUE, norm.method = "cyclicloess"))
(s_quad <- itemselect(o, select.method = "quadratic", FDR = 0.05))
(f <- drcfit(s_quad, progressbar = TRUE))
# Default plot
plot(f)
# (2) an example on a transcriptomics data set (a subsample of a greater data set)
#
# }
# NOT RUN {
datatxt <- system.file("extdata", "transcripto_sample.txt", package="DRomics")
(o <- omicdata(datatxt, check = TRUE, norm.method = "cyclicloess"))
(s_quad <- itemselect(o, select.method = "quadratic", FDR = 0.05))
(f <- drcfit(s_quad, progressbar = TRUE))
# Default plot
plot(f)
# Plot of the first 12 most responsive items
plot(f, items = 12)
# Plot of the chosen items in the chosen order
plot(f, items = c("301.2", "363.1", "383.1"))
# }
# NOT RUN {
# (3) Comparison of parallel and non paralell implementations on a
# larger selection of items
#
# }
# NOT RUN {
s_quad <- itemselect(o, select.method = "quadratic", FDR = 0.05)
system.time(f1 <- drcfit(s_quad, progressbar = TRUE))
system.time(f2 <- drcfit(s_quad, progressbar = FALSE, parallel = "snow", ncpus = 2))
# }
Run the code above in your browser using DataLab