Package: CohortContrast 1.0.0

Markus Haug

CohortContrast: Enrichment Analysis of Clinically Relevant Concepts in Common Data Model Cohort Data

Identifies clinically relevant concepts in Observational Medical Outcomes Partnership Common Data Model cohorts using an enrichment-based workflow. Defines target and control cohorts and extracts medical interventions that are over-represented in the target cohort during the observation period. Users can tune filtering and selection thresholds. The workflow includes chi-squared tests for two proportions with Yates continuity correction, logistic tests, and hierarchy and correlation mappings for relevant concepts. The results can be optionally explored using the bundled graphical user interface. For workflow details and examples, see <https://healthinformaticsut.github.io/CohortContrast/>.

Authors:Markus Haug [aut, cre], Raivo Kolde [aut]

CohortContrast_1.0.0.tar.gz
CohortContrast_1.0.0.zip(r-4.7)CohortContrast_1.0.0.zip(r-4.6)CohortContrast_1.0.0.zip(r-4.5)
CohortContrast_1.0.0.tgz(r-4.6-any)CohortContrast_1.0.0.tgz(r-4.5-any)
CohortContrast_1.0.0.tar.gz(r-4.7-any)CohortContrast_1.0.0.tar.gz(r-4.6-any)
CohortContrast_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
CohortContrast/json (API)

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

Bug tracker:https://github.com/healthinformaticsut/cohortcontrast/issues

Pkgdown/docs site:https://healthinformaticsut.github.io

On CRAN:

Conda:

6.62 score 4 stars 14 scripts 611 downloads 26 exports 57 dependencies

Last updated from:bc5d0b2de1. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE202
source / vignettesOK266
linux-release-x86_64NOTE142
macos-release-arm64NOTE157
macos-oldrel-arm64NOTE199
windows-develNOTE145
windows-releaseNOTE114
windows-oldrelNOTE150
wasm-releaseOK130

Exports:automaticCorrelationCombineConceptsautomaticHierarchyCombineConceptscheckDataModecheckPythonDepsCohortContrastcohortFromCohortTablecohortFromCSVcohortFromDataTablecohortFromJSONconfigurePythoncreateControlCohortInversecreateControlCohortMatchinggenerateMappingTablegetPythonInfogetTopSeparatingConceptsinstallPythonDepsinstallPythonDepsOfflineloadCohortContrastStudymatchCohortsByAgenGramClusterSummarizationnGramDiscoveryprecomputeSummaryremoveTemporalBiasresolveCohortTableOverlapsrunCohortContrastViewerstopCohortContrastViewer

Dependencies:askpassbackportsbitbit64blobCDMConnectorcheckmateclicliprclockCodelistGeneratorcodetoolsCohortConstructorcpp11crayoncurldata.tableDBIdbplyrdoParalleldplyrforeachgenericsgluehmshttriteratorsjsonlitelifecyclelubridatemagrittrmimenanoparquetomopgenericsopensslPatientProfilespillarpkgconfigprettyunitsprogresspurrrR6readrrlangsnakecasestringistringrsystibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithr

Air-gapped Server Setup

Rendered froma10_air_gapped_server_setup.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Article Case Study Generation

Rendered froma13_article_case_studies.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-22
Started: 2026-04-22

Dashboard Composite Plot

Rendered froma03_dashboard_composite.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Demographics Tab

Rendered froma08_demographics_tab.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Execution

Rendered froma01_execution.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2024-12-17

Graphical User Interface

Rendered froma02_interface.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2025-01-10

ICD10 Atlas Generation

Rendered froma14_icd10_atlas_generation.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-22
Started: 2026-04-22

Interpreting Results with lc500

Rendered froma11_interpreting_results_lc500.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-02
Started: 2026-04-02

Interpreting Summary Results with lc500s

Rendered froma12_interpreting_summary_results_lc500s.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-02
Started: 2026-04-02

Mappings Tab

Rendered froma06_mappings_tab.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Overlap Tab

Rendered froma05_overlap_tab.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Patient vs Summary Mode

Rendered froma07_patient_vs_summary_mode.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Setup

Rendered froma00_introduction.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2024-12-17

Sidepanel Filters and Controls

Rendered froma09_sidepanel_controls.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Trajectories Tab

Rendered froma04_trajectories_tab.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2026-04-09
Started: 2026-03-17

Readme and manuals

Help Manual

Help pageTopics
Function for automatically combining concepts by hierarchy mappingautomaticCorrelationCombineConcepts
Function for automatically combining concepts by hierarchy mappingautomaticHierarchyCombineConcepts
Check if a Data Directory Contains Summary Mode DatacheckDataMode
Check Python DependenciescheckPythonDeps
Run CohortContrast AnalysisCohortContrast
CohortContrast Viewer - Interactive Disease Cohort VisualizationCohortContrastViewer
Read cohort from database cohort tablecohortFromCohortTable
Read cohort from CSVcohortFromCSV
Read cohort from data.frame objectcohortFromDataTable
Read cohort from JSONcohortFromJSON
Configure Python Environment for CohortContrast ViewerconfigurePython
Function for creating automatic matches based on inverse control logiccreateControlCohortInverse
Function for creating automatic matches based on age and sexcreateControlCohortMatching
Create a mapping table with predefined maximum abstraction levelgenerateMappingTable
Get Python Configuration InformationgetPythonInfo
Get Top Concepts That Best Separate ClustersgetTopSeparatingConcepts
Install Python DependenciesinstallPythonDeps
Install Python Dependencies OfflineinstallPythonDepsOffline
Load a Saved CohortContrast StudyloadCohortContrastStudy
Function for matching the control to target by agematchCohortsByAge
Function for summarizing ngrams from nGramDiscovery outputnGramClusterSummarization
Function for discovering ngrams from the extracted data from CohortContrast functionnGramDiscovery
Pre-compute Summary Data for a StudyprecomputeSummary
Remove Temporal Bias from CohortContrast AnalysisremoveTemporalBias
Resolve overlaps inside the cohort tableresolveCohortTableOverlaps
Run CohortContrast Viewer DashboardrunCohortContrastViewer
Stop CohortContrast Viewer DashboardstopCohortContrastViewer