Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor confusion regarding help message #572

Closed
kalavattam opened this issue Jan 31, 2023 · 1 comment
Closed

Minor confusion regarding help message #572

kalavattam opened this issue Jan 31, 2023 · 1 comment
Assignees

Comments

@kalavattam
Copy link

kalavattam commented Jan 31, 2023

Thanks for developing and maintaining umi_tools, which is really useful for my research.

A minor note/question: If you see, for example line 888 of dedup.py, an option to 'correct' is noted; is this option acted on by the code? As far as I can tell, it's not (discovered this while carefully studying all parameters in order to understand how to correctly call the tool for my work). I see 'correct' listed with some other parameters beyond this example too. Admittedly, haven't run a subcommand to directly check this. Thanks.

@TomSmithCGAT
Copy link
Member

Hi Kris,

The help text for these three arguments has a typo! The available options given are ("discard", "use", "output"), but the help messages all say Options are 'discard', 'use' or 'correct'.

group.add_option("--unmapped-reads", dest="unmapped_reads",
type="choice",
choices=("discard", "use", "output"),
default="discard",
help=("How to handle unmapped reads. Options are "
"'discard', 'use' or 'correct' [default=%default]"))
group.add_option("--chimeric-pairs", dest="chimeric_pairs",
type="choice",
choices=("discard", "use", "output"),
default="use",
help=("How to handle chimeric read pairs. Options are "
"'discard', 'use' or 'correct' [default=%default]"))
group.add_option("--unpaired-reads", dest="unpaired_reads",
type="choice",
choices=("discard", "use", "output"),
default="use",
help=("How to handle unpaired reads. Options are "
"'discard', 'use' or 'correct' [default=%default]"))

As it happens, the output option for these three arguments is only available with group. That's stated in the online help (https://umi-tools.readthedocs.io/en/latest/reference/dedup.html), but not in the command line help for dedup. It's a quirk of the arguments being added alongside other arguments which are common to dedup and group.

On reflection, these arguments should be added separately for dedup and group so that the help text is clearer. I'll add that to the to-do for whenever the heck we get around to another release...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants