Matched marrow and blood profiling reveals compartment- and feature-specific liquid-biopsy signals in multiple myeloma
This repository contains analysis scripts supporting the manuscript:
Matched marrow and blood profiling reveals compartment- and feature-specific liquid-biopsy signals in multiple myeloma
Authors: Dor D. Abelman, Jenna Eagles, Stephanie Pedersen, David S. Scott, Arnavaz Danesh, Jeff P. Bruce, Stephenie D. Prokopec, Aimee Wong, Ellen N. Wei, Saumil Shah, Darrell White, Irwindeep Sandhu, Kevin Song, Alli Murugesan, Anthony Reiman, Suzanne Trudel, and Trevor J. Pugh.
Suzanne Trudel and Trevor J. Pugh are co-corresponding authors.
The study compares matched bone marrow plasma cells, bone marrow plasma cfDNA, and peripheral blood cfDNA in multiple myeloma. Analyses integrate tumor fraction, mutations, copy-number alterations, translocations, B-cell receptor clonotypes, fragmentomics, clinical endpoints, and sample-processing context.
The central analysis question is whether bone marrow plasma cfDNA better recapitulates the myeloma genome than peripheral blood cfDNA. The manuscript shows that bone marrow plasma cfDNA is not a uniformly superior genomic surrogate, and that cfDNA interpretation depends on sample compartment, molecular feature class, tumor fraction, assay threshold, and processing context.
The scripts are organized by analysis stage:
0_*: environment setup, input validation, panel summaries, and software-version reporting1_*: clinical, sample, mutation, CNA, translocation, and BCR preprocessing2_*: baseline feature generation, concordance analyses, oncoprints, fragmentomics, and integrated feature tables3_*: modeling, clinical-outcome analyses, sensitivity analyses, genomic-risk concordance, and interpretation4_*: longitudinal response and clonal-dynamics analyses5_*: manuscript figure/table assembly and related checkslib/: shared helper functions used across scripts
The active script inventory and rerun order are documented in:
README.mdWORKFLOW_GUIDE.mdACTIVE_CODE_INDEX.mdlib/README.md
This repository contains code required to reproduce the main analyses and figures. Some analyses require controlled-access human genomic sequencing data and linked de-identified clinical/sample metadata. These data cannot be distributed openly through GitHub.
Sequencing data generated for the manuscript will be deposited in a controlled-access repository, subject to participant consent and institutional data-sharing restrictions. Source data and processed non-identifying summary tables required to reproduce reported figures and summary statistics are provided with the manuscript where permitted.
Because raw human genomic data are controlled-access, some scripts cannot be executed end-to-end without approved data access and the expected processed input files.
This code repository is used as the Scripts/ subdirectory of the controlled
project workspace. The controlled inputs and workspace configuration must be
supplied separately. Run commands from the parent directory, one level above
Scripts/:
cd /path/to/Targetted_panel_manuscript
Rscript Scripts/0_1_setup_environment.R
Rscript Scripts/0_2_validate_inputs.RThese scripts check the project root, expected folders, required inputs, and R package availability. A standalone clone of this code repository does not contain the controlled project inputs and is not expected to run end-to-end by itself.
Use this route when upstream processed inputs already exist and the goal is to regenerate the main manuscript analyses and figures:
Rscript Scripts/2_2_Process_panel_features.R Rscript Scripts/2_3G_Run_Concordance_Suite.R Rscript Scripts/2_3H_Run_Manuscript_Oncoprints.R Rscript Scripts/2_3F_Fragmentomics_analysis.R Rscript Scripts/2_3I_Mutation_Discordance_Audit.R Rscript Scripts/2_4_Integrate_all_feature_data.R Rscript Scripts/3_1_Model_evaluation_and_comparisons.R Rscript Scripts/3_2_Compartment_heterogeneity.R Rscript Scripts/3_2A_Genomic_Risk_Concordance.R Rscript Scripts/3_4_Logistic_regression.R Rscript Scripts/4_0_Predicting_progression_and_subclonal_evolution.R Rscript Scripts/5_0_Assemble_Manuscript_Figures.R
For a fuller rebuild, run scripts in stage order from 0_* through 5_*. Many later-stage scripts expect outputs generated by earlier preprocessing scripts.
| Script | Purpose |
|---|---|
0_1_setup_environment.R |
Checks the project root, expected folders, R packages, and session information. |
0_2_validate_inputs.R |
Checks required repository inputs before downstream analyses are run. |
0_3_Summarise_capture_panel_footprint.R |
Summarizes the target footprint of the capture-panel design. |
0_4_export_software_versions.R |
Exports R package and external software-version information from the current environment. |
| Script | Purpose |
|---|---|
1_0A_Create_patient_metadata_table_with_processed_samples.R |
Builds sequencing metadata and sample/file availability tables. |
1_0B_Process_clinical_data.R |
Harmonizes clinical data and creates processed baseline clinical objects. |
1_0C_Clinical_enrichment.R |
Adds response, MRD, and follow-up fields used by later analyses. |
1_0D_Audit_FISH_probe_coverage.R |
Audits FISH probe coverage for lesions used in genomic-risk or concordance analyses. |
1_1_Get_sample_processing_data_and_DNA_yields.R |
Combines processing logs and DNA yield information. |
1_2A_Determine_likely_sample_swaps.R |
Runs a sample-swap or barcode-consistency audit. |
1_2B_Prepare_Consort_Diagram.R |
Builds cohort assignment and CONSORT-style availability summaries. |
1_2C_Rebuild_Manual_CONSORT_Counts.R |
Rebuilds manually reviewed CONSORT count inputs. |
1_2D_Render_CONSORT_Diagram.R |
Renders the CONSORT diagram from prepared counts. |
1_2E_Render_CONSORT_Diagram_DiagrammeR.R |
Alternative DiagrammeR-based CONSORT rendering. |
1_3A_Annotate_OncoKB.R |
Prepares OncoKB annotation handoff for processed mutation calls. |
1_3_Process_mutation_data.R |
Processes consensus mutation calls into analysis-ready mutation objects. |
1_4_Process_translocation_data.R |
Parses IG-caller outputs and builds translocation candidate objects. |
1_5_Process_CNA_data.R |
Processes copy-number evidence and arm-level CNA call metrics. |
1_6_Process_BCR_data.R |
Processes MiXCR-derived BCR outputs into compact repertoire features. |
| Script | Purpose |
|---|---|
2_0_Summarise_yeilds_and_tumor_fractions.R |
Summarizes cfDNA yield and tumor-fraction context. |
2_1A_baseline_demographics_table.R |
Builds baseline demographic and clinical summary tables. |
2_1B_Create_cohort_swim_plot_and_summarise_patient_info.R |
Builds cohort timeline, swim-plot context, and patient-level summaries. |
2_1C_CNA_TX_Calibration_Framework.R |
Calibrates CNA and translocation recovery frameworks. |
2_1D_Mutation_Threshold_Sensitivity_Audit.R |
Audits mutation threshold choices and tier rationale. |
2_2_Process_panel_features.R |
Builds central panel-feature objects across mutations, CNAs, translocations, BCR, and baseline features. |
2_3A_Panel_Oncoprint.R |
Prepares state objects and inputs for panel oncoprints. |
2_3B_Panel_Feature_Concordance.R |
Summarizes feature concordance across assay compartments, including BCR where available. |
2_3C_Panel_Oncoprint_Compartment_and_Pairwise.R |
Renders compartment-aware and pairwise oncoprint figures. |
2_3D_Concordance_Sensitivity_Framework.R |
Builds compact concordance and sensitivity summaries. |
2_3E_Metadata_Integrity_and_BM_Reference_Stability.R |
Audits metadata integrity and stability of BM reference definitions. |
2_3F_Fragmentomics_analysis.R |
Runs the main fragmentomics analysis workflow. |
2_3F_extended_IMMAGINE_longitudinal_pairing_audit.R |
Audits longitudinal IMMAGINE sample pairing for fragmentomics analyses. |
2_3F_extended_fragmentomics_compartment_classifier.R |
Runs an extended compartment-classifier analysis for fragmentomics features. |
2_3F_extended_longitudinal_fragmentomics_sensitivity.R |
Runs extended longitudinal fragmentomics sensitivity analyses. |
2_3G_Run_Concordance_Suite.R |
Wrapper for the active concordance stack. |
2_3H_Run_Manuscript_Oncoprints.R |
Wrapper for the active oncoprint stack. |
2_3I_Mutation_Discordance_Audit.R |
Audits mutation discordance against strict BM-reference definitions and BM-lookback evidence. |
2_3J_BCR_Longitudinal_Repertoire_Figures.R |
Builds BCR longitudinal repertoire figures and summaries. |
2_3K_BCR_Dominant_Threshold_Sensitivity.R |
Runs BCR dominant-clone threshold sensitivity analyses. |
2_3K_BM_cfDNA_Mutational_Context_Exploration.R |
Explores BM cfDNA mutational-context patterns. |
2_4_Integrate_all_feature_data.R |
Integrates major modality-level features into downstream analysis tables. |
2_5_Fragmentomics_degradation_usability.R |
Evaluates fragmentomics degradation or usability patterns. |
2_6_BMcfDNA_long_fragment_TF_correlation.R |
Tests BM cfDNA long-fragment relationships with tumor fraction. |
2_7_Fragmentomics_processing_context_sensitivity.R |
Tests fragmentomics sensitivity to processing context. |
| Script | Purpose |
|---|---|
3_0_Longitudinal_tracking.R |
Builds longitudinal tracking summaries and visual context. |
3_1_Model_evaluation_and_comparisons.R |
Evaluates baseline detection and model-comparison results. |
3_2_Compartment_heterogeneity.R |
Analyzes compartment-specific burden and PB/BM comparisons. |
3_2A_Genomic_Risk_Concordance.R |
Compares genomic-risk calls across BM cells, BM cfDNA, and PB cfDNA. |
3_3_Sensitivity_robustness.R |
Runs sensitivity and robustness diagnostics. |
3_4_Logistic_regression.R |
Fits baseline detection models and compares endpoints. |
3_4B_BMcfDNA_vs_PBcfDNA_Feature_Overlap.R |
Compares BM cfDNA and PB cfDNA feature overlap. |
3_5_Concordance_Explanatory_Analysis.R |
Explores tumor-burden and sample-quality explanations for concordance patterns. |
3_6_Clinical_Outcome_Exploration.R |
Explores response, MRD, and progression-free survival context. |
3_7_Multimodal_Outcome_Model_Comparison.R |
Compares multimodal outcome models on the common evaluable subset. |
3_8_Integrated_Endpoint_Modeling.R |
Runs integrated endpoint-modeling analyses. |
3_8_Power_and_Precision_Audit.R |
Audits power, precision, and estimability for analysis claims. |
3_8D_Rerender_DELFI_Locus_Heatmap_Variants.R |
Re-renders DELFI locus heatmap variants. |
3_8E_Rerender_DELFI_Locus_Heatmap_ComplexHeatmap.R |
Re-renders DELFI locus heatmaps with ComplexHeatmap. |
3_9_Additional_Multimodal_Analyses.R |
Runs additional multimodal analyses. |
3_10_Extended_Clinical_Outcome_Analysis.R |
Runs extended clinical-outcome analyses. |
3_11_Main_Clinical_Outcome_Figure.R |
Builds the main clinical-outcome figure components. |
3_12_Cohort_Stratified_Clinical_Outcome_Figure.R |
Builds cohort-stratified clinical-outcome figure components. |
3_13_Figure5_M4_Clinical_Outcomes_Analysis.R |
Builds M4 clinical-outcome analyses for Figure 5. |
3_14_Figure6_Longitudinal_Trajectories_Analysis.R |
Builds Figure 6 longitudinal trajectory analyses. |
3_14A_Figure6_Subclonal_Evolution_Main.R |
Builds main subclonal-evolution components for Figure 6. |
3_14B_Figure6_PB_BM_Matched_Concordance.R |
Analyzes matched PB/BM concordance for Figure 6. |
3_15_MRD_Matched_Longitudinal_Context.R |
Builds MRD-matched longitudinal context analyses. |
3_15B_MRD_Matched_Longitudinal_Context_By_Modality.R |
Splits MRD-matched longitudinal context by modality. |
3_15C_MRD_CrossStudy_Concordance_Sensitivity.R |
Runs MRD cross-study concordance sensitivity analyses. |
3_16_Relapse_Baseline_Mutation_Evolution_CaseSeries.R |
Builds relapse/baseline mutation-evolution case-series outputs. |
3_17_Relapse_Multimodal_Evolution_Supplement.R |
Builds relapse multimodal-evolution supplement outputs. |
| Script | Purpose |
|---|---|
4_0_Predicting_progression_and_subclonal_evolution.R |
Analyzes serial cfDNA response and clonal-dynamics context. |
| Script | Purpose |
|---|---|
5_0_Assemble_Manuscript_Figures.R |
Assembles main manuscript figures from generated components. |
5_1_Export_Manuscript_Tables.R |
Exports manuscript tables from analysis outputs. |
5_2_Assemble_Nested_CV_Figure_Package.R |
Assembles nested cross-validation figure outputs. |
5_3_Export_Figure_Source_Data_Workbooks.R |
Packages the plotted source tables into submission-facing figure workbooks. |
5_3_Table2_Molecular_Recovery_CI_QC.R |
Runs confidence-interval and QC checks for molecular recovery summaries. |
5_4_Build_Table3_Endpoint_Interpretation_Framework.R |
Builds the endpoint interpretation framework table. |
5_5_Generate_Supplementary_Table_Source_Summaries.R |
Builds the source summaries used for submitted Supplementary Tables 10–12. |
5_6_Lock_Final_Supplementary_Tables.R |
Assembles submitted Supplementary Tables 1–13 and their final manifest/workbook. |
2_3G_Run_Concordance_Suite.R runs:
2_3B_Panel_Feature_Concordance.R2_3D_Concordance_Sensitivity_Framework.R2_3J_BCR_Longitudinal_Repertoire_Figures.R
2_3H_Run_Manuscript_Oncoprints.R runs:
2_3A_Panel_Oncoprint.R2_3C_Panel_Oncoprint_Compartment_and_Pairwise.R
The first script builds the serialized compartment state; the second renders the
manuscript oncoprints. For figure-layout changes, begin in 2_3C. For
assay-state or missingness changes, inspect both.
Some concordance and oncoprint scripts read MUTATION_CALLSET.
The default primary analysis uses the Tier 1 callset. To intentionally run exploratory analyses with the lower-support Tier 2 callset:
MUTATION_CALLSET=tier2_exploratory Rscript Scripts/2_3G_Run_Concordance_Suite.R
Use the default Tier 1 callset for primary manuscript results unless intentionally running exploratory or sensitivity analyses.
Shared helper modules are in lib/. They cover cohort definitions, validation, manuscript paths, plotting style, concordance calculations, fragmentomics helpers, mutation lookback support, and patient/sample ID handling.
See:
WORKFLOW_GUIDE.mdACTIVE_CODE_INDEX.mdlib/README.md
Generated outputs may be written outside this directory into folders such as:
Outputs/Processed_Data/Figures/Tables/manuscript/
Check script headers before running late-stage analyses, as many scripts expect upstream outputs to already exist.
- Treat files in
Other/as reference material unless a current script explicitly points to them. - Before using a manuscript number, trace it back to the script and table that generated it.
- Some scripts depend on controlled-access inputs and cannot be executed end-to-end without approved access to the underlying human genomic data.
- Source data and processed summary tables are the recommended starting point for reproducing manuscript figures and reported summary statistics.