Skip to content

docs(cli): fix stale options, defaults, and examples in pgatk-cli.md#106

Merged
ypriverol merged 1 commit into
devfrom
docs/cli-options-fix
May 22, 2026
Merged

docs(cli): fix stale options, defaults, and examples in pgatk-cli.md#106
ypriverol merged 1 commit into
devfrom
docs/cli-options-fix

Conversation

@ypriverol

Copy link
Copy Markdown
Member

Summary

Cross-checked every documented command/option in docs/pgatk-cli.md against the actual @click.option decorators in pgatk/commands/*.py. Fixed only confirmed inaccuracies; subjective wording / changelog updates were left for separate PRs.

Per-command fixes

  • generate-decoy — help block listed mostly invented short flags (-i -o -l -n -x -w -t -b -m) and two options that don't exist (--cleavage_sites, --anti_cleavage_sites). Rewrote against proteindb_decoy.py:14-44.
  • ensembl-downloader-l/--list_taxonomies doesn't exist (likely confused with cbioportal-downloader -l/--list_studies); removed the option and the example that used it. Added the real -en/--ensembl_name, --grch37, --url_file, and -fp/--folder_prefix_release options.
  • cosmic-downloader — added missing -P/--products and --url_file.
  • cbioportal-downloader — added missing -th/--multithreading and --url_file.
  • ncbi-downloader — added missing --grch37, --generate-transcripts, --generate-cds.
  • vcf-to-proteindb:
    • -c/--config_file is not required=True in the click decorator — moved to Optional.
    • --exclude_consequences default was missing regulatory_region_variant (the value in ensembl_config.yaml is six terms, not five).
    • The "non-ENSEMBL sources" note told users to override --transcript_index/--consequence_index. Those options don't exist; the real names are --transcript_str/--consequence_str/--biotype_str.
    • -w/--workers default listed as 1; actual default is cpu_count().
  • dnaseq-to-proteindb-c/--config_file is optional; --num_orfs default is 3 (matches click help string and ensembl_config.yaml), was listed as 0.
  • cosmic-to-proteindb cell-line example — --filter_column 'Sample name' is the COSMIC v2 column name; v103 columns are uppercase (SAMPLE_NAME).
  • Internal link#downloading-ncbi--clinvar-data (double dash) was broken because mkdocs slugify collapses / to nothing, producing downloading-ncbi-clinvar-data (single dash).

Test plan

  • mkdocs build --strict — zero warnings from user-facing pages (only pre-existing docs/plans/ warnings remain, all about cross-file links from the plans/ directory that are unrelated to this PR).
  • Spot-check a couple of edited example commands end-to-end on the maintainer's environment if you want belt-and-braces (they were verified flag-by-flag against the click decorators).

Cross-checked every documented command/option against pgatk/commands/*.py.
Fixes:

- generate-decoy: rewrite the help block - it listed mostly invented
  short flags (-i, -o, -l, -n, -x, -w, -t, -b, -m) and two options
  (--cleavage_sites, --anti_cleavage_sites) that do not exist on the
  click command; correct flags are -in/-out/-e/-d/-s and the new
  --min_peptide_length/--max_peptide_length/--keep_target_hits options.
- ensembl-downloader: remove -l/--list_taxonomies (no such option) and
  the example using it; add the real -en/--ensembl_name, --grch37, and
  --url_file options.
- cosmic-downloader: add -P/--products and --url_file options.
- cbioportal-downloader: add -th/--multithreading and --url_file options.
- ncbi-downloader: add --grch37, --generate-transcripts, --generate-cds.
- vcf-to-proteindb: -c/--config_file is optional (was listed Required);
  --exclude_consequences default includes regulatory_region_variant; the
  "parameters to change for non-ENSEMBL sources" note referred to
  --transcript_index/--consequence_index which do not exist - corrected
  to --transcript_str/--consequence_str/--biotype_str; -w default is
  cpu_count(), not 1.
- dnaseq-to-proteindb: -c/--config_file is optional; --num_orfs default
  is 3 (matches click help string and ensembl_config.yaml).
- cosmic-to-proteindb cell-line example: --filter_column 'Sample name'
  is the v2 column name; v103 uses SAMPLE_NAME.
- Fix broken intra-page anchor #downloading-ncbi--clinvar-data ->
  #downloading-ncbi-clinvar-data (mkdocs slug normalizes slash to nothing).

mkdocs build now produces zero warnings from user-facing pages
(remaining warnings are in docs/plans/, which is historical content).
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b364bbd5-288c-452a-b08a-ba3e1abc328c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/cli-options-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ypriverol ypriverol merged commit 824ea58 into dev May 22, 2026
5 checks passed
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