imExposomeSet {rexposome} | R Documentation |
Class imExposomeSet
was designed to store the exposures obtained
after a multiple imputation process done using mice
. The
data.frame
obtained from mice
has the particulatiry
to contain the columns .imp
and .id
joint
to phenotypes and exposures. The slots assayData
, featureData
,
and phenoData
are coordinated.
## S4 method for signature 'imExposomeSet,ANY' plot(x, y, ...) ## S4 method for signature 'imExposomeSet' dim(x) ## S4 method for signature 'imExposomeSet' expos(object) ## S4 method for signature 'imExposomeSet' exposureNames(object) ## S4 method for signature 'imExposomeSet' extract(object, rid = -1, ...) ## S4 method for signature 'imExposomeSet' exwas(object, formula, filter, family, ..., tef = TRUE, verbose = FALSE, warnings = TRUE) ## S4 method for signature 'imExposomeSet' familyNames(object, by.exposure = FALSE) ## S4 method for signature 'imExposomeSet' phenotypeNames(object) ## S4 method for signature 'imExposomeSet' plotFamily(x, family, group, group2, scatter = FALSE, na.omit = TRUE) ## S4 method for signature 'imExposomeSet' sampleNames(object) ## S4 method for signature 'imExposomeSet' x[[i]] ## S4 method for signature 'imExposomeSet,ANY,ANY,ANY' x[i, j, k, ..., drop = FALSE] ## S4 method for signature 'imExposomeSet' toES(object, rid = 1)
x |
An |
y |
NOT USED |
... |
Other used arguments |
object |
An object of class |
rid |
Number of the imputation to be extracted |
formula |
Formula, not including exposures, to be tested. |
filter |
Expression to be used to filter |
family |
Family descriving the nature of the health outcome |
tef |
If set to |
verbose |
If set to |
warnings |
If set to |
by.exposure |
If set to |
group |
Phenotype to group exposures |
group2 |
NOT USED |
scatter |
If set to true it shows the samples value in the plot |
na.omit |
NOT USED |
i |
Character corresponding to selected sample names. |
j |
Character coresponding to selected exposures. |
k |
Character corresponding to selected phenotypes. |
drop |
NOT USED |
An object of class imExposomeSet
plot
: Wrapper for plotFamily
method.
dim
: Returns the number of exsures, samples and phenotypes.
expos
: Returns a data.frame
with exposures.
exposureNames
: Method to obtain samples' names
extract
: Method to extract exposures for a single imputation
exwas
: Performs an EXposome-Wide Association Study
familyNames
: Getter to obtain the families's names of the
family of each exposure.
phenotypeNames
: Getter to obtain the families's names of the
family of each exposure.
plotFamily
: Draws a boxplot or accumulated-bar plot for each
exposure in the all imputed sets.
sampleNames
: Method to obtain samples' names
[[
: Get an ExposomeSet
with the selected
imputation
[
: Subset an imExposomeSet
toES
: Returns an ExposomeSet
with ethe given imputation.
nimputation
Number of imputations done with mice
.
assayData
data.frame
containing .imp
, .id
and
the exposures.
featureData
data.frame
containing the description of
the exposures.
phenoData
data.frame
containing .imp
, .id
and
the phenotypes.
Sample order is not guarantee
loadImputed
to create an imExposomeSet
from data.frames