Skip to contents

Online documentation

This vignette displays pre-computed results. Run the targets pipeline locally for interactive analysis.

Overview

The CoMMpass Analysis project provides pre-computed analysis results as static JSON files hosted on GitHub Pages. These endpoints are updated on each pipeline run and serve read-only data derived from the GDC portal.

Base URL: https://JohnGavin.github.io/coMMpass-analysis/api/v1/

Data is pre-computed via a targets pipeline and serialized to JSON. For raw (non-derived) data, visit the original data sources listed in the Raw Data Sources section below.

Available Endpoints

The table below lists all JSON API endpoints with their descriptions and record counts.

Static API endpoints for CoMMpass analysis results. Base URL: https://JohnGavin.github.io/coMMpass-analysis/api/v1. Data is pre-computed and updated on each pipeline run.
name url description
1 clinical https://JohnGavin.github.io/coMMpass-analysis/api/v1/clinical.json Clinical data for CoMMpass patients
2 de-results https://JohnGavin.github.io/coMMpass-analysis/api/v1/de-results.json Differential expression results (DESeq2)
3 survival https://JohnGavin.github.io/coMMpass-analysis/api/v1/survival.json Prepared survival data with covariates
4 pathways https://JohnGavin.github.io/coMMpass-analysis/api/v1/pathways.json GSEA pathway analysis results
5 cytogenetics https://JohnGavin.github.io/coMMpass-analysis/api/v1/cytogenetics.json Cytogenetic marker status and risk classification
6 data-dictionary https://JohnGavin.github.io/coMMpass-analysis/api/v1/data-dictionary.json Variable metadata and data dictionary

Example: curl

Fetch endpoint data from the command line using curl and jq.

Show code
safe_tar_read("code_api_curl")

Fetch the endpoint index

curl -s https://JohnGavin.github.io/coMMpass-analysis/api/v1/index.json | jq .

Fetch clinical data

curl -s https://JohnGavin.github.io/coMMpass-analysis/api/v1/clinical.json | jq ‘.metadata’

Download survival data

curl -o survival.json https://JohnGavin.github.io/coMMpass-analysis/api/v1/survival.json

Example: R (jsonlite)

Load API data directly into R data frames using jsonlite::fromJSON().

Show code
safe_tar_read("code_api_r")

base_url <- “https://JohnGavin.github.io/coMMpass-analysis/api/v1”

Read endpoint index

index <- jsonlite::fromJSON(paste0(base_url, “/index.json”)) index$endpoints

Load clinical data as data frame

clinical <- jsonlite::fromJSON(paste0(base_url, “/clinical.json”)) str(clinicalmetadata)head(clinicalmetadata) head(clinicaldata)

Load survival data

surv <- jsonlite::fromJSON(paste0(base_url, “/survival.json”)) dim(surv$data)

Example: Python (requests)

Access the API from Python using requests and pandas.

Show code
safe_tar_read("code_api_python")

import requests import pandas as pd

base_url = “https://JohnGavin.github.io/coMMpass-analysis/api/v1”

Fetch clinical data

resp = requests.get(f”{base_url}/clinical.json”) data = resp.json() print(f”Rows: {data[‘metadata’][‘n_rows’]}“)

Convert to DataFrame

df = pd.DataFrame(data[‘data’]) print(df.head())

Raw Data Sources

This pipeline uses open-access GDC data only. For non-derived data:

Additional data (FISH, PFS, treatment response) would require MMRF Researcher Gateway access (https://research.themmrf.org/), which is not currently available to this project.

Phase 2 Roadmap

A future release will provide a dynamic plumber API with query parameters for filtering, subsetting, and custom analyses. The plumber endpoint functions already exist in R/10_api.R and inst/plumber/plumber.R. Phase 2 will add authentication, rate limiting, and OpenAPI documentation.

Data Sources

Results in this vignette are derived from the MMRF CoMMpass study (MMRF-COMMPASS, ~1,143 patients), downloaded via TCGAbiolinks. The pipeline runs with a configurable sample_limit (default 200; CI uses 20).

For full citations, data access tiers, and the distinction between pipeline data and synthetic test data, see the Data Sources vignette.

Recent Changes

Recent project commits with lines added, files changed, and change categories.

Last 20 project commits with change statistics. Date = commit date; Type = conventional-commit prefix (feat/fix/docs/ci/refactor/test/chore). Files = number of files modified; +Lines/-Lines = lines added/removed. Source: git log –numstat. See changes-by-type table for aggregate breakdown.
date type summary n_files lines_added lines_removed file_categories
2026-03-14 Bug Fix fix(pipeline): Fix 11 NULL targets — DE condition, ID matching, consensus type 41 146 47 Other, R Source
2026-03-14 Bug Fix fix(cachix): Remove –watch-mode auto flag (already default) 1 1 1 Other
2026-03-14 Bug Fix fix(pipeline): Fix 3 NULL-target bugs, auto-generate package.nix (#93) 87 235 80 Config, Docs, Other, R Source
2026-03-14 Bug Fix fix(nix): Fix cachix signing key, rebuild Bioconductor-dependent targets 2 0 0 Other
2026-03-14 New Feature feat(captions): Add dynamic captions to 34 table/plot targets 22 579 89 Other, R Source
2026-03-14 Bug Fix fix(vignettes): Enforce zero-computation rule — 22 violations → 0 32 360 764 Other, R Source, Vignettes
2026-03-13 Bug Fix fix(vignettes): Convert kable RDS to data.frames, fix telemetry eval guards 18 8 2 Other, Vignettes
2026-03-13 Bug Fix fix(ci): Save data frames (not DT widgets) to RDS for Nix portability 3 0 0 Other
2026-03-13 Bug Fix fix(vignettes): Use Quarto #| eval syntax for pkgdown-banner chunks 11 44 11 Vignettes
2026-03-13 Refactoring refactor(targets): Move Bioconductor packages to per-target declarations 11 35 17 Other, R Source, Vignettes
2026-03-13 New Feature feat(vignettes): Add code provenance, kable→DT conversion, caption compliance 35 1004 437 CI/CD, Other, R Source, Vignettes
2026-03-13 Bug Fix fix(vignettes): Skip NULL RDS in safe_tar_read, return invisible(NULL) 11 22 22 Vignettes
2026-03-13 Bug Fix fix(glossary): Prevent double DT::datatable() wrapping in glossary-table chunk 1 3 1 Vignettes
2026-03-13 CI/CD ci: Show quarto errors with quiet=FALSE, render individual vignettes in diagnostic 1 20 6 CI/CD
2026-03-13 CI/CD ci: Add verbose quarto error diagnostics on build failure 1 14 1 CI/CD
2026-03-13 Bug Fix fix(vignettes): Strip Nix paths from DT widgets, auto-wrap data frames 25 66 28 CI/CD, Other, Vignettes
2026-03-13 CI/CD ci: Add diagnostic quarto render step to debug build failure 1 17 0 CI/CD
2026-03-13 Bug Fix fix(vignettes): Revert safe_tar_read placeholder, guard gene-report 11 12 56 Vignettes
2026-03-13 Maintenance chore: Export vig_count_distribution_plot as ggplot RDS (513KB) 1 0 0 Other
2026-03-13 Bug Fix fix(vignettes): Enable code eval in CI with RDS fallback 80 113 74 CI/CD, Other, R Source, Vignettes

Reproducibility

Session Info (click to expand)
Show code
sessionInfo()
#> R version 4.5.3 (2026-03-11)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.3 LTS
#> 
#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so;  LAPACK version 3.12.0
#> 
#> locale:
#>  [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
#>  [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
#>  [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
#> [10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   
#> 
#> time zone: UTC
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> loaded via a namespace (and not attached):
#>  [1] vctrs_0.7.2         cli_3.6.5           knitr_1.51         
#>  [4] rlang_1.1.7         xfun_0.57           otel_0.2.0         
#>  [7] processx_3.8.6      targets_1.12.0      jsonlite_2.0.0     
#> [10] data.table_1.18.2.1 glue_1.8.0          prettyunits_1.2.0  
#> [13] backports_1.5.0     htmltools_0.5.9     ps_1.9.1           
#> [16] rmarkdown_2.30      tibble_3.3.1        evaluate_1.0.5     
#> [19] base64url_1.4       fastmap_1.2.0       yaml_2.3.12        
#> [22] lifecycle_1.0.5     compiler_4.5.3      codetools_0.2-20   
#> [25] igraph_2.2.2        pkgconfig_2.0.3     digest_0.6.39      
#> [28] R6_2.6.1            tidyselect_1.2.1    pillar_1.11.1      
#> [31] callr_3.7.6         magrittr_2.0.4      withr_3.0.2        
#> [34] tools_4.5.3         secretbase_1.2.0