blab / pathogen-embed

Create reduced dimension embeddings for pathogen sequences
https://pypi.org/project/pathogen-embed/
MIT License
1 stars 0 forks source link

Display default parameters for subcommands of `pathogen-embed` #11

Closed huddlej closed 5 months ago

huddlej commented 7 months ago

The pathogen-embed command uses argparse's ArgumentDefaultsHelpFormatter class to show default values in the help text, but this behavior does not extend to the subparsers associated with each embedding subcommand (e.g., pca, mds, etc.).

To display defaults for the subparser arguments, we have to pass the same ArgumentDefaultsHelpFormatter argument to each add_parser function call which accepts the same arguments as the ArgumentParser class.