Repository navigation
OncoRef 1.27.1: withhold artifacts derived from invalid-scale sources
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
ValueErrorfor a named invalid cohort;available_*_cohorts()omit it. cancer_reference_expressionraises for a named invalid cohort whateveron_missingsays, and omits it with aUserWarningfrom default listings.- The
summary_rows_allsource-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, withavailable=Falseandmissing_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.