You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
output_group.add_argument('--output', '--output-sequences', '-o', help="filtered sequences in FASTA format")
The order here means that it must be internally referenced as args.output, where output is the default value of dest.
"output" is ambiguous since this is just one of many output options. I would prefer the more specific name to align with other options and subcommands.
Two layers to this proposal:
Prefer "output sequences" over "output" internally.
Use dest='output_sequences' and args.output_sequences.
Prefer "output sequences" over "output" for users.
Reorder the options to '--output-sequences', '--output', '-o' so that the preferred name is displayed first. This would remove the need for an explicit dest.
A bigger change would be deprecating the --output/-o flags and removing in a major release, but maybe that's not necessary and would just be extra churn.
The text was updated successfully, but these errors were encountered:
Thanks for documenting this so clearly, @victorlin. I'm definitely in favor of preferring --output-sequences for users and eventually deprecating --output.
It might be worth considering doing the same in augur index. Current usage:
usage: augur index [-h] --sequences SEQUENCES --output OUTPUT [--verbose]
Count occurrence of bases in a set of sequences.
options:
-h, --help show this help message and exit
--sequences SEQUENCES, -s SEQUENCES
sequences in FASTA or VCF formats. Augur will summarize the content of FASTA sequences and only report the names of strains found in a given VCF. (default: None)
--output OUTPUT, -o OUTPUT
tab-delimited file containing the number of bases per sequence in the given file. Output columns include strain, length, and counts for A, C, G, T, N, other valid IUPAC characters, ambiguous characters ('?' and '-'), and other invalid
characters. (default: None)
--verbose, -v print index statistics to stdout (default: False)
There, --output-sequences needs to be added first.
augur filter
allows--output
,--output-sequences
, and-o
to be used interchangeably:augur/augur/filter/__init__.py
Line 105 in da1c89d
The order here means that it must be internally referenced as
args.output
, whereoutput
is the default value ofdest
."output" is ambiguous since this is just one of many output options. I would prefer the more specific name to align with other options and subcommands.
Two layers to this proposal:
Prefer "output sequences" over "output" internally.
dest='output_sequences'
andargs.output_sequences
.Prefer "output sequences" over "output" for users.
'--output-sequences', '--output', '-o'
so that the preferred name is displayed first. This would remove the need for an explicitdest
.--output
/-o
flags and removing in a major release, but maybe that's not necessary and would just be extra churn.The text was updated successfully, but these errors were encountered: