Skip to contents

Determines whether a data directory contains pre-computed summary data (summary mode) or patient-level data (patient mode).

Usage

checkDataMode(dataDir)

Arguments

dataDir

Path to the data directory

Value

A list with:

mode

"summary" or "patient"

has_clustering

Logical, whether clustering data is available

clusterKValues

Vector of available k values for clustering

Examples

studyPath <- system.file("example", "st", "lc500s", package = "CohortContrast")
info <- checkDataMode(studyPath)
info$mode
#> [1] "summary"