DROMA.Meta is an R application package built on top of DROMA.R and DROMA.Set.
Its role is not to replace the core analysis packages, but to package a concrete
multi-step biomarker discovery workflow that combines:
- preclinical batch screening,
- preclinical biomarker selection,
- TCGA/TARGET Anderson-Darling concordance filtering,
- clinical validation on CTRDB.
In the DROMA ecosystem:
- DROMA.Set provides the data structures and database access layer.
- DROMA.R provides the statistical analysis functions.
- DROMA.Meta is the application-layer workflow package that orchestrates those lower-level capabilities into an end-to-end biomarker discovery pipeline.
This makes DROMA.Meta an application package for DROMA.R, focused on running a standardized translational meta-workflow rather than exposing a broad new analysis API.
DROMA.Set -> DROMA.R -> DROMA.Meta
data layer analysis workflow application layer
- DROMA.Set: builds and manages
DromaSet/MultiDromaSetobjects. - DROMA.R: performs drug-omics association analysis and batch screening.
- DROMA.Meta: turns those capabilities into a reusable workflow package for preclinical-to-clinical biomarker discovery.
- Wraps the four-step DROMA meta workflow into reusable R functions.
- Keeps workflow logic in
R/as package-style function files. - Lets users pass explicit runtime parameters such as:
drugtumor_typedata_typecoresdb_pathtcga_rna_counts_dirgene_probe_map_path- threshold settings for each workflow step
- Supports script-level looping over drug and tumor-type combinations through 01-run_meta_batch.R.
The main workflow entry point is:
runMetaWorkflow(
drug,
tumor_type,
feature2_type = "mRNA",
data_type = "all",
cores = 3,
cell_min_intersected_cells = 20,
pdcpdx_min_intersected_cells = 8,
db_path,
ctrdb_path,
tcga_rna_counts_dir,
gene_probe_map_path,
output_base,
override = FALSE
)This function runs one full workflow for one drug and one tumor_type, and
returns a one-row summary table while writing intermediate outputs to the
workflow output directory. When override = FALSE, existing stage outputs under
output_base/<drug>/<tumor_type>/ are reused and those stages are skipped.
01-run_meta_batch.R is the application driver script.
It is responsible for:
- loading package dependencies,
- loading local function files from
R/, - defining runtime parameters,
- reading
valid_drugs.csvandvalid_tumor_types.csv, - looping over all selected combinations,
- writing a batch summary CSV.
This separation keeps the files under R/ closer to package-style reusable
functions, while leaving actual experiment execution in a script.
Install the lower-level DROMA packages first:
# devtools::install_github("mugpeng/DROMA_Set")
# devtools::install_github("mugpeng/DROMA_R")if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
devtools::install_github("mugpeng/DROMA_Meta")library(DROMA.Set)
library(DROMA.R)source("R/FuncHelper.R")
source("R/FuncValidCheck.R")
source("R/FuncTcgaAD.R")
source("R/FuncMetaWorkflow.R")result <- runMetaWorkflow(
drug = "Paclitaxel",
tumor_type = "breast cancer",
feature2_type = "mRNA",
data_type = "all",
cores = 3,
cell_min_intersected_cells = 20,
pdcpdx_min_intersected_cells = 8,
db_path = "/Users/peng/Desktop/Project/DROMA/Data/droma.sqlite",
ctrdb_path = "/Users/peng/Desktop/Project/DROMA/Data/ctrdb.sqlite",
tcga_rna_counts_dir = "/path/to/tcga/rna_counts",
gene_probe_map_path = "/path/to/gencode.human.v49.annotation.gene.probeMap",
output_base = "workflow/Output",
override = FALSE
)
print(result)Use 01-run_meta_batch.R as the application script.
Edit the runtime parameters in that file, then run:
Rscript 01-run_meta_batch.RR/
FuncHelper.R
FuncValidCheck.R
FuncTcgaAD.R
FuncMetaWorkflow.R
workflow/
00-Eligible_Drug_Tumor.R
01-Batch_Preclinical.R
02-Select_Preclinical.R
03-TCGA_AD_Filter.R
04-Clinical_Validation.R
01-run_meta_batch.R
DESCRIPTION
NAMESPACE
Use DROMA.Meta when you already rely on DROMA.R for analysis and want a reproducible application package for a fixed biomarker discovery workflow.
Use DROMA.R directly when you need lower-level analysis functions, custom plots, or exploratory workflows.
- DROMA.Set: data structures and database layer
- DROMA.R: statistical analysis layer
- DROMA.Meta: workflow application layer