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
Usage:
qaf_demux.jl [-i <input_fastq> | --input_fastq <input_fastq>] (-o <output_dir> | --output_dir <output_dir>) -b <barcode> -s <barcode_start> [-m <max_diff>]
-h --help Show this help message and exit.
-i --input_fastq <input_fastq> Fastq file to demultiplex. Default is to read from stdin.
-o --output_dir <output_dir> Directory in which to put demultiplexed fastq files.
-b --barcode <barcode> Barcodes to which the reads should be attributed.
-s --barcode_start <barcode_start> Position at which the barcode starts (1-based).
-m --max_diff <max_diff> Only assign a record to one of the barcodes if it has no more than *max_diff* differences in its barcode portion. [default: 3]
My script is complaining if I specify the mandatory option -o after the optional argument -m on my command-line:
ERROR: LoadError: ArgumentError: invalid base 10 digit '/' in "/tmp/test_qaf_demux"
If I put the -o earlier, it is fine.
(The script is also complaining if I do not provide option -m, because it doesn't populate the args with the desired default value "-m"=>false,"<max_diff>"=>nothing, but I should probably report this as a separate issue.)
The text was updated successfully, but these errors were encountered:
blaiseli
changed the title
Argument order mandatory
Cannot put mandatory argument after optional ones?
Aug 12, 2019
Consider the following usage description:
My script is complaining if I specify the mandatory option
-o
after the optional argument-m
on my command-line:If I put the
-o
earlier, it is fine.(The script is also complaining if I do not provide option
-m
, because it doesn't populate the args with the desired default value"-m"=>false,"<max_diff>"=>nothing
, but I should probably report this as a separate issue.)The text was updated successfully, but these errors were encountered: