View source: R/data_sanity_check.R
data_sanity_check | R Documentation |
Determine if the input data is in a correct format
data_sanity_check(
data,
taxa_are_rows = TRUE,
assay.type = assay_name,
assay_name = "counts",
rank = tax_level,
tax_level = NULL,
aggregate_data = NULL,
meta_data = NULL,
fix_formula,
group = NULL,
struc_zero = FALSE,
global = FALSE,
pairwise = FALSE,
dunnet = FALSE,
mdfdr_control = list(fwer_ctrl_method = "holm", B = 100),
trend = FALSE,
trend_control = list(contrast = NULL, node = NULL, solver = "ECOS", B = 100),
verbose = TRUE
)
data |
the input data. The |
taxa_are_rows |
logical. Whether taxa are positioned in the rows of the feature table. Default is TRUE. |
assay.type |
alias for |
assay_name |
character. Name of the count table in the data object
(only applicable if data object is a |
rank |
alias for |
tax_level |
character. The taxonomic or non taxonomic(rowData) level of interest. The input data
can be analyzed at any taxonomic or rowData level without prior agglomeration.
Note that |
aggregate_data |
The abundance data that has been aggregated to the desired
taxonomic level. This parameter is required only when the input data is in
|
meta_data |
a |
fix_formula |
the character string expresses how the microbial absolute
abundances for each taxon depend on the fixed effects in metadata. When
specifying the |
group |
character. the name of the group variable in metadata.
The |
struc_zero |
logical. Whether to detect structural zeros based on
|
global |
logical. Whether to perform the global test. Default is FALSE. |
pairwise |
logical. Whether to perform the pairwise directional test. Default is FALSE. |
dunnet |
logical. Whether to perform the Dunnett's type of test. Default is FALSE. |
mdfdr_control |
a named list of control parameters for mixed directional
false discover rate (mdFDR), including 1) |
trend |
logical. Whether to perform trend test. Default is FALSE. |
trend_control |
a named list of control parameters for the trend test,
including 1) |
verbose |
logical. Whether to display detailed progress messages. |
a list
containing the outputs formatted appropriately for
downstream analysis.
Huang Lin
data(atlas1006, package = "microbiome")
check_results = data_sanity_check(data = atlas1006,
tax_level = "Family",
fix_formula = "age + sex + bmi_group",
group = "bmi_group",
struc_zero = TRUE,
global = TRUE,
verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.