R/platjam-import-metabolomics-niehs.R
convert_imputed_assays_to_na.RdConvert imputed metabolomics assay data to NA
convert_imputed_assays_to_na(
se,
measurement_assay_names = "area",
impute_assay_name = "gap_fill_status",
suffix = "_noimpute",
impute_flags = c(8, 32),
...
)SummarizedExperiment object, or list of
SummarizedExperiment objects.
When a list is provided, each entry is iterated and processed,
and a list is returned.
character vector with one or more
SummarizedExperiment::assayNames(se) for which the imputed
data will be converted to NA values.
character string with one
SummarizedExperiment::assayNames(se) entry that contains the
impute flags. Only the first matching assay name is used.
character suffix appended to each value in
measurement_assay_names to create a new assay name for the
resulting data matrix.
When filtering by different impute criteria, it may be helpful
to include the codes in the suffix, for example filtering by only
impute_flags=8 may suggest suffix="_noimpute8".
numeric vector of flags indicating values in
impute_assay_name assay data which represent imputed data.
The defaults:
8: filled by trace area (imputed)
32: filled by spectrum noise (imputed)
Other values:
0: original ion used
64: filled by matching ion
128: filled by re-detected peak
additional arguments are ignored.
SummarizedExperiment or when input se is a list
a list of SummarizedExperiment objects is returned.
This function takes SummarizedExperiment data as input, which
must contain at least two SummarizedExperiment::assayNames()
entries:
numeric assay measurements
numeric impute flag data
The coordinates of cells in the impute flag data
which match impute_flags are used to convert data in assay measurements
to NA.
Other jam utility functions:
cardinality(),
color_complement(),
convert_PD_df_to_SE(),
curate_se_colData(),
curate_to_df_by_pattern(),
design2layout(),
get_numeric_transform(),
handle_df_args(),
merge_proteomics_se(),
rowNormScale()