Skip to content

Updates to bring code and documentation in sync#299

Open
tfenne wants to merge 5 commits into
odelaneau:masterfrom
tfenne:docs-cli-sync
Open

Updates to bring code and documentation in sync#299
tfenne wants to merge 5 commits into
odelaneau:masterfrom
tfenne:docs-cli-sync

Conversation

@tfenne

@tfenne tfenne commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

I keep getting bitten by the fact that the doc website documents a --no-index option for GLIMPSE2_ligate which no longer exists in the binary. Rather than just fixing that one discrepancy, I did a full audit of the command-line options for all five tools across three sources: the option declarations in the source (*_parameters.cpp), each binary's --help, and the documentation tables in docs/docs/documentation/*.md (which generate the website).

The website and the repo .md files are identical, so every gap was docs vs. code. This PR brings the two back into sync, and adds a few short flags that the docs already advertised but the binaries never accepted.

Changes

Code — make the binaries match the documented behaviour

  • Declare the -T short flag for --threads on all five tools, and -I for GLIMPSE2_ligate --input. These were shown in the docs but never declared, so passing them errored out. The flags are purely additive and conflict-free (no tool already used -T, and ligate had no -I).
  • Fix three --help strings in GLIMPSE2_concordance that referenced non-existent flags: --bins pointed at --use-ref-alt (real option: --use-alt-af); --min-val-gl and --min-val-dp pointed at --gt-validation (real option: --gt-val); --min-val-dp also referenced --minDP. Also fixed a "no filter of if using" typo.

Docs — sync the tables to the current code

  • ligate: remove the --no-index row (the option was removed when ligation switched to automatic streaming indexing); fix the --thread--threads typo.
  • phase: --burn-in--burnin (the documented name is rejected by the binary); correct the --pbwt-modulo-cm default 50.1; drop the bogus 5 default shown on the --state-list flag; and document three options that were missing entirely: --use-gl-indels, --checkpoint-file-in, --checkpoint-file-out.
  • chunk: correct the window/buffer defaults to the values currently set in the source (window-cm 2.5, window-mb 2.0, window-count 20000, buffer-mb 0.4, buffer-count 2000).
  • concordance: --samples takes a FILE argument; mirror the --use-alt-af help-text fix.
  • Minor markdown/style cleanups (close table rows in the phase tables this PR edits; --threads spacing in split_reference).

Deliberately not changed

  • --no-index was not re-added — it was intentionally removed and streaming indexing makes it unnecessary; only the stale doc row is dropped.

Verification

All five tools build cleanly and each binary's --help was confirmed to match the updated docs, including the new -T/-I short flags and the corrected help strings. (There is no unit-test framework in the repo; build + --help inspection is the verification path.)

tfenne added 5 commits June 20, 2026 08:23
The docs (and generated website) advertise -T as a short flag for --threads
on every tool, and -I for ligate's --input, but neither was ever declared in
the source, so passing them errored out. Declare them so the binaries match
the documentation. The flags are purely additive and conflict-free (no tool
already used -T or, for ligate, -I).
The --bins description pointed users at --use-ref-alt and the --min-val-dp
description at --minDP; neither option exists. The real options are
--use-alt-af and --min-val-dp respectively.
Bring the documentation tables in line with what the binaries actually
accept:

- ligate: drop the --no-index row (removed from code in f310862 when
  streaming indexing became automatic); fix the --thread typo to --threads.
- phase: --burn-in -> --burnin (matches the actual option name); correct
  --pbwt-modulo-cm default 5 -> 0.1; drop the bogus '5' default on the
  --state-list flag; document the previously-undocumented --use-gl-indels,
  --checkpoint-file-in and --checkpoint-file-out options.
- chunk: correct the window/buffer defaults to the current values set in
  ab64d68 (window-cm 2.5, window-mb 2.0, window-count 20000, buffer-mb 0.4,
  buffer-count 2000).
- concordance: --samples takes a FILE argument; fix the --bins help text
  reference --use-ref-alt -> --use-alt-af.
- split_reference: cosmetic --threads spacing.
Per CodeRabbit: the --min-val-gl and --min-val-dp help text (source and docs)
pointed at --gt-validation, which is not a real option; the flag is --gt-val.
Also fixes the 'no filter of if using' typo to 'no filter if using'.
Per CodeRabbit: the rows touched in this PR lacked a trailing pipe, tripping
MD055. Add trailing pipes to all data rows in the two tables this PR edits so
each table is internally consistent. The pre-existing BAM/CRAM table is left
untouched (out of scope for this PR).
@srubinacci

Copy link
Copy Markdown
Collaborator

Thanks. Will try to find some time to check this and get back to you by the end of the week!
Appreciate the efforts!

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.

2 participants