Package: ctdR 0.99.12

Luigi Corsaro

ctdR: Enrichment Analysis of Chemical-Gene Interactions from the Comparative Toxicogenomics Database

Identifies chemicals significantly associated with a set of genes using data from the Comparative Toxicogenomics Database (CTD, <https://ctdbase.org>). Supports four enrichment methods through a unified interface: Over-Representation Analysis (ORA) via a hypergeometric test on stats::phyper(), Gene Set Enrichment Analysis (GSEA) via 'fgsea', the competitive gene-set test CAMERA via 'limma', and per-sample Gene Set Variation Analysis (GSVA) via 'GSVA'. Users download the CTD chemical-gene interactions file once, import it with import_CTD(), and then run enrichment_CTD() on either a gene list (ORA, GSEA) or an expression matrix (CAMERA, GSVA). This package does not bundle or redistribute CTD data: its example interaction file is synthetic, and the tables of the replication vignette hold counts and p-values only. Users must download the required data files directly from <https://ctdbase.org> and comply with the CTD data licensing terms (see <https://ctdbase.org/about/legal.jsp>).

Authors:Luigi Corsaro [aut, cre]

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

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

Bug tracker:https://github.com/drake69/ctdr/issues

Pkgdown/docs site:https://luigicorsaro.com

On BioConductor:ctdR-0.99.11(bioc 3.24)

genesetenrichmentpathwaysannotationgeneexpressiondataimport

5.62 score 3 stars 6 scripts 34 downloads 8 exports 115 dependencies

Last updated from:e1d78d2f91. Checks:1 NOTE, 9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE222
linux-develOK426
source / vignettesOK310
linux-releaseOK463
macos-releaseOK229
macos-oldrelOK164
windows-develOK286
windows-releaseOK280
windows-oldrelOK248
wasm-releaseOK168

Exports:as_genesets_CTDctd_cachectd_provenanceCTDFileenrichment_CTDimportimport_CTDplot_CTD

Dependencies:abindannotateAnnotationDbiaskpassBHBiobaseBiocBaseUtilsBiocFileCacheBiocGenericsBiocIObiocmakeBiocParallelBiostringsbitbit64blobcachemclicliprcodetoolscowplotcpp11crayoncurldata.tableDBIdbplyrDelayedArrayDelayedMatrixStatsdigestdir.expirydplyrfarverfastmapfastmatchfgseafilelockformatRfutile.loggerfutile.optionsgenericsGenomicRangesggplot2gluegraphGSEABaseGSVAgtableh5mreadHDF5Arrayhmshttrhttr2IRangesisobandjsonliteKEGGRESTlabelinglambda.rlatticelifecyclelimmamagickmagrittrMatrixMatrixGenericsmatrixStatsmemoisememusemimeopensslorg.Hs.eg.dbpillarpkgconfigpngprettyunitsprogresspurrrR6RColorBrewerRcppreadrrhdf5rhdf5filtersRhdf5librjsonrlangRSQLiteS4ArraysS4VectorsS7scalesSeqinfoSingleCellExperimentsnowSparseArraysparseMatrixStatsSpatialExperimentstatmodstringistringrSummarizedExperimentsystibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithrXMLxtableXVector

ctdR: an application example
Overview | Data licensing disclaimer | Installation | From Bioconductor devel (current installation method) | From Bioconductor release (after the next Bioconductor release) | From GitHub (latest development version) | Quick start | Step 1 -- Download CTD data | Step 2 -- Import into ctdR | Other species | Which CTD release did I use? | Step 3 -- Run enrichment analysis | Prepare your gene list | Shared output schema | Over-Representation Analysis (ORA) | Gene Set Enrichment Analysis (GSEA) | End-to-end example with real RNA-seq data (GSE311566) | Real-data GSEA | Real-data ORA | CAMERA (competitive test with inter-gene correlation) | GSVA (per-sample scoring) | Visualizing results | Adjusting for multiple testing | Gene set size filters and background universe | The background universe is the choice that matters most | Why the size thresholds are what they are | And why there is no upper limit | What that costs, and how to read around it | Choosing among the four methods | Interoperability with existing Bioconductor infrastructure | Reading a CTD file the BiocIO way | Handing the CTD gene sets to another engine | Naming and scope: the "CTD" acronym | Updating the CTD data | References | Session info

Last update: 2026-11-05
Started: 2026-03-30

Replicating a published CTD analysis: Yang et al. (2024)
Purpose | The study | The same CTD release | Chemicals | Does ctdR build the same gene sets? | The same test on ctdR's sets | The same genes, in discovery mode | Verification and discovery | What differs from the original analysis | Yang et al. and ctdR, chemical by chemical | Session information

Last update: 2026-11-05
Started: 2026-11-05