Package: LUCIDus 3.3.1

Qiran Jia

LUCIDus: LUCID with Multiple Omics Data

Implements Latent Unknown Clustering Integrating Multi-omics Data (LUCID; Peng et al. (2019) <doi:10.1093/bioinformatics/btz667>), which estimates latent clusters jointly from exposures, multi-omics data and a health outcome, with early, parallel (intermediate) or serial (late) integration of the omics layers. Provides model fitting; model selection over the number of clusters and over lasso-type penalties that select exposures and omics features, with refitting on the selected features; estimation with sporadic and list-wise missing omics data; prediction and g-computation of exposure effects; bootstrap confidence intervals whose replicates are aligned to the fitted model's cluster labels, with cluster-stability diagnostics; parallel computation of tuning grids and bootstrap replicates on all platforms; and summary and plot methods for every model type. The multi-omics framework is described in Zhao et al. (2024) <doi:10.32614/RJ-2024-012> and the missing-data extension in Zhao et al. (2024) <doi:10.1093/bioadv/vbae123>.

Authors:Qiran Jia [aut, cre], Yinqi Zhao [aut], David Conti [ths], Jesse Goodrich [ctb]

LUCIDus_3.3.1.tar.gz
LUCIDus_3.3.1.zip(r-4.7-any)LUCIDus_3.3.1.zip(r-4.6-any)LUCIDus_3.3.1.zip(r-4.5-any)
LUCIDus_3.3.1.tgz(r-4.6-any)LUCIDus_3.3.1.tgz(r-4.5-any)
LUCIDus_3.3.1.tar.gz(r-4.7-any)LUCIDus_3.3.1.tar.gz(r-4.6-any)
LUCIDus_3.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
LUCIDus/json (API)

# Install 'LUCIDus' in R:
install.packages('LUCIDus', repos = c('https://contilab-usc.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/contilab-usc/lucidus3/issues

Datasets:

On CRAN:

Conda:

5.59 score 1 stars 52 scripts 738 downloads 1 mentions 16 exports 63 dependencies

Last updated from:4991154b22. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK179
source / vignettesOK301
linux-releaseOK218
macos-releaseOK242
macos-oldrelOK266
windows-develOK136
windows-releaseOK179
windows-oldrelOK178
wasm-releaseOK119

Exports:analyze_missing_patternboot_lucidboot_lucid_tablecheck_imputation_qualitycheck_naestimate_lucidget_cluster_assignmentget_selected_Gget_selected_Zget_top_omics_featureslucidplot_cluster_omic_profilepredict_lucidsafe_imputesummary_lucidtune_lucid

Dependencies:base64encbootbslibcachemclicodetoolscpp11crayondata.treedigestevaluatefarverfastmapfontawesomeforeachfsggplot2glassoglmnetgluegtablehighrhmshtmltoolshtmlwidgetsigraphisobanditeratorsjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMatrixmclustmemoisemimenetworkD3nnetpkgconfigprettyunitsprogressR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownS7sassscalesshapestringisurvivaltinytexvctrsviridisLitewithrxfunyaml

LUCIDus Comprehensive Guide: Models, APIs, and End-to-End Functionality
1) Purpose of This Document | 2) Quick Functionality Map | 3) Setup | 4) Build Associated Demo Data (Not Independent Sampling) | 5) Add Missingness for Diagnostics and Missing-Data Examples | 6) Missing-Data Diagnostics and Imputation | 6.1 analyze_missing_pattern() and check_na() | 6.2 safe_impute() and check_imputation_quality() | 7) Core Model Fitting: estimate_lucid() | 7.1 Early model | 7.2 Parallel model | 7.3 Serial model (mixed topology) | 7.4 Verbose Logging Demos (verbose = TRUE) | 8) Tuning and Wrapper APIs: tune_lucid() and lucid() | 8.1 tune_lucid() with a small early-model grid | 8.2 lucid() wrapper (auto-tune over K for early model) | 9) Summaries: summary() | 10) Prediction: predict_lucid() | 10.1 Standard prediction | 10.2 G-computation mode (early, parallel, and serial) | 10.3 Argument Modes: What to Pass and What You Get Back | 11) Bootstrap Inference: boot_lucid() | 11.1 Running the bootstrap and tuning on multiple cores | 11.2 Stability of the clusters across resamples (3.3.1) | 12) Visualization | 12.1 Path Diagram: plot() | 12.2 Cluster Omics Profiles: plot_cluster_omic_profile() | 12.3 Extracting the Ranking Directly: get_top_omics_features() | 13) Binary Outcome Example (Early Model) | 14) End Notes | 15) Session Info

Last update: 2026-12-03
Started: 2026-08-30

LUCID Early Tutorial: Sankey Plot with Balanced Top Omics
1) Goal | 2) Setup | 3) Simulate a Two-Layer Omics Matrix for Early Integration | 4) Fit a LUCID Early Model | 5) Sankey Function with Equal Top N per Omics Family | 6) Top Features Selected per Family | 7) Display the Plot | 7.1 All omics in the concatenated early-integration matrix | 7.2 Top 5 microbiota and top 5 metabolites | 8) Notes

Last update: 2026-12-03
Started: 2026-08-30

LUCID Serial Tutorial: 6 Consecutive Parallel Stages with Monotone Missingness
1) Why This Tutorial | 2) Setup | 3) Simulate Associated Data (Not Independent Noise) | 4) Inject Monotone Stage-Wise Missingness | 5) Fit Serial Model (6 Parallel Stages, K = 2 per Layer) | 5.1) Verbose Logging Demo (verbose = TRUE) | 6) Verify Stage-Wise Missingness Summary | 6.1) What a serial model does not do with missingness | 7) Confirm Final-Stage Numerical Stability | 8) User-Facing Summary Output | 8.1) Sankey Diagram of the Whole Chain | Why the default draws no omics features | 9) Bootstrap Inference (Serial Model) | 10) Summary With Bootstrap CI | 11) Interpretation Notes for Real Data Use | 12) Session Info

Last update: 2026-12-03
Started: 2026-08-30

LUCID's Three Model Architectures: Early, Parallel, and Serial -- Binary Outcome (HELIX Example)
1) Tutorial Goal and Scope | 2) Data Objects and Statistical Roles | 3) Hyperparameter Guide (Practical) | 4) Setup and Source Package Code | 5) Build Modeling Inputs (With Missingness Injection) | 6) Helper Functions for Selected-Feature Refit | 7) Early Model Tutorial: Binary Outcome | 7.1 Penalized screening fit | 7.2 Zero-penalty selected-only refit | 7.3 Bootstrap CI + summary | 8) Parallel Model Tutorial: Binary Outcome | 8.1 Penalized screening fit | 8.2 Zero-penalty selected-only refit | 8.3 Bootstrap CI + summary | 8.4 Diagnosing extreme odds ratios: separation and outcome_penalty = "firth" | 9) Serial Model Tutorial A (All-Early Stages): Binary Outcome | 9.1 Penalized screening fit | 9.2 Zero-penalty selected-input refit | 9.3 Bootstrap CI + summary | 10) Serial Model Tutorial B (Mixed Parallel + Early): Binary Outcome | 10.1 Penalized screening fit | 10.2 Zero-penalty selected-input refit | 10.3 Bootstrap CI + summary | 11) Visualization: Sankey Diagram and Cluster Omics Profiles | 12) Prediction: Labels or Probabilities | 13) Closing Notes and Session Info | Session Info

Last update: 2026-12-03
Started: 2026-08-30

LUCID's Three Model Architectures: Early, Parallel, and Serial -- Continuous Outcome (HELIX Example)
1) Tutorial Goal and Scope | 2) Data Objects and Statistical Roles | 3) Hyperparameter Guide (Practical) | 4) Setup and Source Package Code | 5) Build Modeling Inputs (With Missingness Injection) | 6) Helper Functions for Selected-Feature Refit | 7) Early Model Tutorial | 7.1 Penalized screening fit (Rho_* > 0) | 7.1b Object structure: what's in the fitted object | 7.2 Inspect selected features | 7.3 Zero-penalty selected-only refit | 7.4 Bootstrap CI + summary | 8) Parallel Model Tutorial | 8.1 Penalized screening fit | 8.1b Object structure: what's in the fitted object | 8.2 Inspect selected features (union + per-layer) | 8.3 Zero-penalty selected-only refit | 8.4 Bootstrap CI + summary | 9) Serial Model Tutorial A: All-Early Stages | 9.1 Penalized screening fit | 9.1b Object structure: what's in the fitted object | 9.2 Zero-penalty selected-input refit | 9.3 Bootstrap CI + summary | 10) Serial Model Tutorial B: Mixed Parallel + Early | 10.1 Penalized screening fit | 10.2 Zero-penalty selected-input refit | 10.3 Bootstrap CI + summary | 11) Missing-Data Handling: Diagnostics and Verification | 11.1 Verify the handling, do not just display it | 11.2 Single-value imputation, and scoring it | 11.3 Penalizing the omics: what the two penalties actually do | 12) Prediction and G-Computation | 12.1 What you may omit, and why | 12.2 Prediction across all three architectures | 12.3 Supervised versus unsupervised prediction | 12.5 G-computation: what if the exposure were different? | 13) The lucid() Wrapper and Tuning K | 14) Visualizing the Model: Sankey Diagram | 15) Cluster Omics Profiles | 15.1 The default view | 15.2 Why the ranking is not the spread of the means | 15.3 Bars, and more than one layer | 15.4 The numbers behind the figure | 16) How to Read the Main Outputs | 17) Practical Notes and Reproducibility | 18) Verification Summary and Session Info | Session Info

Last update: 2026-12-03
Started: 2026-08-30

Readme and manuals

Help Manual

Help pageTopics
Describe the missing-data pattern of an omics matrixanalyze_missing_pattern
Inference of LUCID model based on bootstrap resamplingboot_lucid
Tidy table of bootstrap estimates and confidence intervalsboot_lucid_table
Check whether imputed values are distributionally plausiblecheck_imputation_quality
Classify each subject's omics missingness patterncheck_na
Fit LUCID models with one or multiple omics layersestimate_lucid
Extract the hard cluster assignment from a fitted LUCID modelget_cluster_assignment
Extract selected (retained) exposures from a fitted LUCID modelget_selected_G
Extract selected (retained) omics features from a fitted LUCID modelget_selected_Z
Extract the top-N most important omics features from a fitted LUCID modelget_top_omics_features
Fit a lucid model for integrated analysis on exposure, outcome and multi-omics data, allowing for tuninglucid
Plot per-cluster omics profilesplot_cluster_omic_profile
Visualize an early-integration LUCID model through a Sankey diagramplot.early_lucid
Visualize a parallel-integration LUCID model through a Sankey diagramplot.lucid_parallel
Visualize a serial-integration LUCID model through a Sankey diagramplot.lucid_serial
Predict Cluster Assignment and Outcome From a Fitted LUCID Modelpredict_lucid
Print the output of LUCID in a nicer tableprint.sumlucid_early
Print the output of LUCID in a nicer tableprint.sumlucid_parallel
Print the output of LUCID in a nicer tableprint.sumlucid_serial
Single-value imputation that tolerates fully missing columnssafe_impute
A simulated dataset for LUCIDsim_data
A simulated HELIX dataset for LUCIDsimulated_HELIX_data
Summarize results of the early LUCID modelsummary.early_lucid summary_lucid
Summarize results of the parallel LUCID modelsummary.lucid_parallel
Summarize results of the serial LUCID modelsummary.lucid_serial
Wrapper for LUCID Model and Penalty Tuningtune_lucid