Skip to content

Expose maf, skip_regions, skip_analysis_pip_cutoff in rss_analysis#1386

Open
Yining97 wants to merge 1 commit into
StatFunGen:mainfrom
Yining97:rss-legacy-parity-knobs
Open

Expose maf, skip_regions, skip_analysis_pip_cutoff in rss_analysis#1386
Yining97 wants to merge 1 commit into
StatFunGen:mainfrom
Yining97:rss-legacy-parity-knobs

Conversation

@Yining97

@Yining97 Yining97 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Restores three legacy univariate_rss knobs as first-class rss_analysis parameters, all routed to summaryStatsQc():

  • --maf (mafCutoff, default 0.0025) — was reachable only via --qc-args and defaulted to 0 (off).
  • --skip-regions chr:start-end … (skipRegion) — drop variants in given windows.
  • --skip-analysis-pip-cutoff (pipCutoffToSkip, default 0.025) — skip a no-signal region; construct.R already had the flag but the notebook didn't forward it.

construct.R gains --maf/--skip-region and rejects the same keys in --qc-args. A default run now MAF-filters at 0.0025 and PIP-skips at 0.025, matching legacy behavior.

Validated on the protocol_example chr22 MWE: default filter 24→19 variants; --maf 0→24; skip-region 19→11; --skip-analysis-pip-cutoff 0.999 skips the region; clash guard errors. Full 4-step run green.

Restores three legacy univariate_rss knobs as first-class rss_analysis
parameters, routed to summaryStatsQc(): --maf (mafCutoff, default 0.0025),
--skip-regions (skipRegion), and --skip-analysis-pip-cutoff (pipCutoffToSkip,
default 0.025). construct.R gains --maf/--skip-region flags and rejects the same
keys in --qc-args; the notebook forwards all three. A default run now MAF-filters
at 0.0025 and PIP-skips at 0.025, matching the legacy workflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant