rexposome
is an R package for exposome characterization and exopsome-outcome test association. It depends in a series of third party R packages to provide:
rexposome
requires R version equal or newer than 3.0. The following script allows to install rexposome
dependencies:
if (!requireNamespace("BiocManager", quietly=TRUE))
install.packages("BiocManager")
packages = c('Biobase', 'mice', 'MultiDataSet', 'lsr', 'FactoMineR',
'stringr', 'circlize', 'corrplot', 'ggplot2', 'reshape2', 'pryr',
'scales', 'imputeLCMD', 'scatterplot3d', 'glmnet', 'gridExtra',
'grid', 'Hmisc', 'gplots', 'gtools', 'S4Vectors'
)
for( pkg in packages ) {
if( !pkg %in% rownames( installed.packages() ) ) {
message( "Installing ", pkg )
BiocManager::install( pkg )
}
}
The package can be installed using the R package devtools
. devtools
can be installed win the following code:
install.packages("devtools")
Due to the publication process of rexposome
at Biocondcuto, the requirment is set to R-3.4. For those using R-3.4, the following code installs rexposome
:
devtools::install_github("isglobal-brge/rexposome")
For those using an older version of R (but newer than R-3.o) the following code installs rexposome
:
devtools::install_github("isglobal-brge/rexposome", ref="R-3.0")
carles.hernandez < at > isglobal < dot > org
juanr.gonzalez < at > isglobal < dot > org
In rexposome
the exposome is understood as a set of three files:
The exposome is loaded from files using the function readExposome
. If the information is stored in standard R data.frame
s, those can be converted to an ExposomeSet
using the function loadExposome
.
The characterization of the exposome is done with a bunch of functions that follows:
tableMissings
and plotMissings
allows to quantify the amount of missing data.tableLOD
and plotLOD
allows to quantify the amount of measurements under limit of detection (if provided in description-file).normalityTest
allows to test normality on the exposures.impute
and ilod
allows to impute missing data and values under LOD.plotFamily
allows to draw a cumulative bar plot for categorical exposures and a box-plot for continuous exposures.correlation
allows to compute the correlation between exposures.plotCorrelation
allows to draw a circos or a matrix plot for the computed correlations.pca
performs a Principal Component Analysis in the exposome.plotPCA
and plot3PCA
allows to draw a 2D and 3D scatter plot for the result of the PCA.plotPHE
and plotEXP
allows to draw the association and the correlation between phenotypes and exposures to the principal components.exwas
allows to perform an Exposome-Wide Association Study by testing the association of each exposure with a given phenotype.m_exwas
allows to perform a MultiVariate Exposome-Wide Association Study by using ElasticNet methods.plotExwas
allows to plot a Manhattan plot of the result of an ExWAS (for both exwas
and m_exwas
).plotEffect
allows to plot the effects of each exposure. It can also be used to compare two models.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.