Skip to content

docs: pre-stable-release audit of doc/*.rst#1113

Merged
etal merged 3 commits into
masterfrom
doc-audit-pre-stable-release
Jun 29, 2026
Merged

docs: pre-stable-release audit of doc/*.rst#1113
etal merged 3 commits into
masterfrom
doc-audit-pre-stable-release

Conversation

@etal

@etal etal commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Audit of every doc/*.rst page against the current CLI and code ahead of the next stable release. The Sphinx build is clean (no warnings), all :ref:/:doc:/toctree cross-references resolve, and all subcommand names and flags in the docs were diffed against cnvkit.py ... --help.

CLI accuracy (commands/flags/columns that no longer matched)

  • export theta: reference is supplied via -r/--reference, not a second positional (importexport, heterogeneity).
  • guess_baits.py: access BED is -a/--access (-g is --min-gap).
  • genemetrics output columns: nbins -> probes, seg_weight/seg_probes -> segment_weight/segment_probes.
  • segmetrics stat flags: --median, --stdev, --sem (were -median, --std, -sem).
  • import-rna: document -f rsem for RSEM input (default format is counts); -output -> --output.
  • target: bin-size flag is --avg-size.
  • export nexus-basic: list the gene and probe columns it emits.
  • baf: segment also consumes VCF b-allele frequencies.
  • nonhybrid: WGS --annotate is recommended, not required; fix a Markdown link that should be reStructuredText.
  • tumor: batch does emit default-threshold integer calls (.call.cns); it just cannot apply purity/ploidy.
  • quickstart: dropped-word typo; a pooled reference is named my_reference.cnn, not my_flat_reference.cnn.
  • pipeline: clarify the call threshold-table example uses tighter germline/diploid inner cutoffs, not the tumor-safe defaults.

API reference, citations, and links

  • Add autodoc stubs for cnvlib.bintest, cnvlib.purity, cnvlib.cluster, and skgenome.cut (back current functionality, were undocumented); fix a cluster.py docstring that broke under autodoc.
  • Correct the CNVkit self-citation year (2016, not 2014) and restore "DNA" to the paper title in index.rst and CITATION; add the missing BibTeX field separator.
  • whoelse.rst: reorganize into Software and Studies sections; drop dead commercial links (DNAnexus, Bina RAVE, Diploid InHelix); add recent CNVkit-using work (Villani 2023, Joanito 2022, Marjanovic 2020) and the nf-core/sarek pipeline.
  • Modernize legacy external links (matplotlib customizing guide + config filename; IGV homepage).

CI

  • ci(docker): the latest image tag was keyed on is_default_branch, so it tracked master (identical to devel) and was never applied on a release tag, contradicting both its own comment and the documented meaning. It now keys on v*.*.* tag refs.

All new citations were verified against CrossRef and the articles themselves (DOIs, authors, volume/pages, and confirmed CNVkit usage). Reviewed via three focused passes (correctness, conventions, scope) before pushing.

etal added 3 commits June 29, 2026 16:09
…t behavior

Pre-stable-release audit of doc/*.rst found documented commands and
identifiers that no longer match the current CLI:

- export theta: supply the reference via -r/--reference, not a second
  positional argument (importexport.rst, heterogeneity.rst).
- guess_baits.py: the access BED is -a/--access; -g is --min-gap.
- genemetrics columns: nbins -> probes, seg_weight/seg_probes ->
  segment_weight/segment_probes (reports.rst).
- segmetrics stat flags: --median, --stdev, --sem (were -median, --std, -sem).
- import-rna: document -f rsem for RSEM input (the default format is counts);
  fix -output -> --output (rna.rst).
- target: the bin-size flag is --avg-size, not --average-size (pipeline.rst).
- export nexus-basic: list the gene and probe columns it actually emits.
- baf: segment also consumes VCF b-allele frequencies.
- nonhybrid: WGS --annotate is recommended, not required; convert a stray
  Markdown link to reStructuredText.
- tumor: batch does emit default-threshold integer calls (.call.cns); it
  simply cannot apply purity/ploidy corrections.
- quickstart: fix a dropped word; name a pooled reference my_reference.cnn
  rather than my_flat_reference.cnn.
- pipeline: clarify that the call threshold-table example uses tighter
  germline/diploid inner cutoffs, not the tumor-safe defaults.
- heterogeneity: render .call.cns as an inline literal.
… release

- Add autodoc stubs for cnvlib.bintest, cnvlib.purity, cnvlib.cluster, and
  skgenome.cut, which back current functionality but were missing from the API
  reference; fix a cluster.py module-docstring list that broke under autodoc.
- Correct the CNVkit self-citation year (2016, not 2014) and restore "DNA" to
  the paper title in both index.rst and CITATION; add the missing field
  separator in the CITATION BibTeX entry.
- whoelse.rst: split into Software and Studies sections; drop dead commercial
  links (DNAnexus, Bina RAVE, Diploid InHelix); add recent CNVkit-using work
  (Villani 2023, Joanito 2022, Marjanovic 2020) and the nf-core/sarek pipeline.
- Modernize legacy external links (the matplotlib customizing guide and config
  filename, and the IGV homepage).
The metadata-action step enabled the `latest` tag on `is_default_branch`,
so `latest` tracked master (identical to `devel`) and was never applied on a
release-tag push, contradicting both its own comment and the documented
"latest stable release" meaning. Key it on v*.*.* tag refs instead.
@etal etal merged commit 1cc0cc7 into master Jun 29, 2026
12 checks passed
@etal etal deleted the doc-audit-pre-stable-release branch June 29, 2026 23:15
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.31%. Comparing base (69a9abd) to head (13e1bf7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1113   +/-   ##
=======================================
  Coverage   71.31%   71.31%           
=======================================
  Files          74       74           
  Lines        8081     8081           
  Branches     1429     1429           
=======================================
  Hits         5763     5763           
  Misses       1874     1874           
  Partials      444      444           
Flag Coverage Δ
unittests 71.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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