formatResults {midasHLA} | R Documentation |
formatResults
format statistical analysis results table to html or
latex format.
formatResults( results, filter_by = "p.value <= 0.05", arrange_by = "p.value", select_cols = c("term", "estimate", "std.error", "p.value", "p.adjusted"), format = c("html", "latex"), header = NULL, scroll_box_height = "400px" )
results |
Tibble as returned by |
filter_by |
Character vector specifying conditional expression used to
filter |
arrange_by |
Character vector specifying variable names to use for
sorting. Equivalent to |
select_cols |
Character vector specifying variable names that should be included in the output table. Can be also used to rename selected variables, see examples. |
format |
String |
header |
String specifying header for result table. If |
scroll_box_height |
A character string indicating the height of the table. |
Character vector of formatted table source code.
## Not run: midas <- prepareMiDAS(hla_calls = MiDAS_tut_HLA, colData = MiDAS_tut_pheno, experiment = "hla_alleles") object <- lm(disease ~ term, data = midas) res <- runMiDAS(object, experiment = "hla_alleles", inheritance_model = "dominant") formatResults(res, filter_by = c("p.value <= 0.05", "estimate > 0"), arrange_by = c("p.value * estimate"), select_cols = c("allele", "p-value" = "p.value"), format = "html", header = "HLA allelic associations") ## End(Not run)