iconic
This is the development version of iconic; to use it, please install the devel version of Bioconductor.
Causal Model Selection with Genetic Instruments and Negative Controls
Bioconductor version: Development (3.24)
Provides a model selection workflow for causal inference with genetic instruments and negative controls in observational omics data. The package fits eight estimators of the natural direct and indirect effects (NDE/NIE), diagnoses which are valid for the user's data via instrument-strength checks and negative-control validity screens (A1, A2, A2'), stress-tests them against confounding and pleiotropy violations, and recommends the estimator most likely to be unbiased. A hybrid generative texture model (a torch GAN for sample-level structure and a Gaussian copula for the mediator panel) lets the sensitivity analysis mirror the marginal and joint structure of the user's cohort. The modular API comprises iconic_data() to standardize data, iconic_diagnose() to assess estimator eligibility, iconic_estimate() to fit all eligible estimators, iconic_sensitivity() to sweep instrument exogeneity, iconic_recommend() to rank estimators by identification strength and robustness, and iconic_prospect() to plan future studies. infer_confounding() estimates held-fixed confounding parameters from the data. Multi-omic cohorts are supplied as MultiAssayExperiment objects (omics panels as experiments, sample-level exposure, instruments and covariates as colData), and analysis data can be exported back to MultiAssayExperiment. Helper functions construct exposure instruments (polygenic scores from GWAS summary statistics or PGS Catalog scoring files), mediator instruments (GenomicRanges-based cis-eQTL scans and elastic-net predicted-expression composites from RangedSummarizedExperiment or matrix inputs), and negative-control panels (principal components of residualized omics matrices). Time-to-event outcomes are supported on the Cox log-hazard-ratio and restricted-mean-survival-time scales. Binary outcomes are supported on the log-odds-ratio (logistic two-stage predictor-substitution outcome stage) and risk-difference (linear probability model) scales. The torch package is required for the generative texture model (sensitivity and prospective analysis); all other functionality works without it. The methods are described in Bresnahan et al. (2026)
Author: Sean T. Bresnahan [aut, cre]
, Charis Xiong [aut]
Maintainer: Sean T. Bresnahan <seantbresnahan3 at gmail.com>
citation("iconic")):
Huber W, Carey VJ, Gentleman R, Anders S, Carlson M, Carvalho BS, Bravo HC, Davis S, Gatto L, Girke T, Gottardo R, Hahne F, Hansen KD, Irizarry RA, Lawrence M, Love MI, MacDonald J, Obenchain V, Oleś AK, Pagès H, Reyes A, Shannon P, Smyth GK, Tenenbaum D, Waldron L, Morgan M (2015). "Orchestrating high-throughput genomic analysis with Bioconductor." Nature Methods, 12(2), 115–121. doi:10.1038/nmeth.3252.
Gentleman RC, Carey VJ, Bates DM, Bolstad B, Dettling M, Dudoit S, Ellis B, Gautier L, Ge Y, Gentry J, Hornik K, Hothorn T, Huber W, Iacus S, Irizarry R, Leisch F, Li C, Maechler M, Rossini AJ, Sawitzki G, Smith C, Smyth G, Tierney L, Yang JYH, Zhang J (2004). "Bioconductor: open software development for computational biology and bioinformatics." Genome Biology, 5(10), R80. doi:10.1186/gb-2004-5-10-r80.
Installation
To install this package, start R (version "4.6") and enter:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
## The following initializes the development version of Bioconductor
BiocManager::install(version = "devel")
BiocManager::install("iconic")
For older versions of R, please refer to the appropriate Bioconductor release.
Documentation
To view documentation for the version of this package installed in your system, start R and enter:
browseVignettes("iconic")
| Diagnosing Estimator Eligibility | HTML | R Script |
| Genetic Instruments and Negative Controls from External Data | HTML | R Script |
| ICONIC Walkthrough | HTML | R Script |
| Sensitivity Analysis and Confounding Inference | HTML | R Script |
| Survival Outcomes | HTML | R Script |
| The Generative Texture Model | HTML | R Script |
| Reference Manual |
Details
| biocViews | GeneExpression, GeneticVariability, Genetics, MultipleComparison, RNASeq, Regression, SNP, Software, StatisticalMethod, Survival, Transcriptomics |
| Version | 0.99.5 |
| In Bioconductor since | BioC 3.24 (R-4.6) |
| License | MIT + file LICENSE |
| Depends | |
| Imports | AER, GenomicRanges, grDevices, graphics, IRanges, MASS, methods, MultiAssayExperiment, parallel, S4Vectors, stats, SummarizedExperiment, survival, utils, withr |
| System Requirements | |
| URL | https://seantbresnahan.com/iconic/ https://github.com/sbresnahan/iconic |
| Bug Reports | https://github.com/sbresnahan/iconic/issues |
See More
| Suggests | testthat (>= 3.0.0), ggplot2, patchwork, scales, knitr, rmarkdown, torch, bigsnpr, bigstatsr, glmnet, irlba, BiocStyle |
| Linking To | |
| Enhances | |
| Depends On Me | |
| Imports Me | |
| Suggests Me | |
| Links To Me | |
| Build Report | Build Report |
Package Archives
Follow Installation instructions to use this package in your R session.
| Source Package | iconic_0.99.5.tar.gz |
| Windows Binary (x86_64) | |
| macOS Binary (big-sur-x86_64) | |
| macOS Binary (sonoma-arm64) | |
| Source Repository | git clone https://git.bioconductor.org/packages/iconic |
| Source Repository (Developer Access) | git clone git@git.bioconductor.org:packages/iconic |
| Bioc Package Browser | https://code.bioconductor.org/browse/iconic/ |
| Package Short Url | https://bioconductor.org/packages/iconic/ |
| Package Downloads Report | Download Stats |