Skip to content

OncoRef 1.27.1: withhold artifacts derived from invalid-scale sources

Choose a tag to compare

@iskandr iskandr released this 03 Nov 04:44
· 175 commits to main since this release
e4dff1e

Refs #604 (the source repair itself is not done).

per_sample_expression already rejected the legacy UNC NUTM1 source, but artifacts derived from it were still served: cancer_reference_expression("NUTM") and cohort_gene_percentiles("NUTM") returned the invalid summaries without warning, and some readers returned an empty frame for a named invalid cohort.

Every reader now consults the availability manifest's source_scale_class for the cohort's selected source (registry-driven, so it applies to any source later marked invalid_legacy_tpm):

  • Percentile, representative and within-sample readers raise ValueError for a named invalid cohort; available_*_cohorts() omit it.
  • cancer_reference_expression raises for a named invalid cohort whatever on_missing says, and omits it with a UserWarning from default listings.
  • The summary_rows_all source-union view omits an invalid source with a warning unless it is named, and still returns a valid source such as Treehouse.
  • cancer_reference_expression_availability() still describes the source, with available=False and missing_reason="invalid_source_scale".

Valid cohorts are unaffected.

Still open (#604): recover or verify linear expression, rebuild and version the source and all derived NUTM artifacts, reassess NUTM1 ranks, declare a common ranking universe for cross-source percentiles. The controlled input is not in this repository. Consumers that read raw artifact files directly (e.g. the PirlyGenes compatibility reader) bypass these guards.

See docs/audits/nutm-expression-scale.md.