Closed AlistairNWard closed 9 years ago
Tool configuration files can include the 'linked argument' field in the arguments section. If arguments are linked, the values are reordered to achieve maximum similarity between corresponding elements of linked arguments value lists. If lists are reordered, the user is warned. This feature can be disabled with the --do-not-reorder (-dnr) flag.
Consider the following example:
gkno bwa -q _1.fq -q2 _2.fq
The wildcards will be evaluated by bash and fed to gkno, however the order in which the lists appear cannot be guaranteed. For this to work, each X_1.fq must be paired with the correct X_2.fq. Either include logic in configuration file instructing gkno to look for shared patterns, or provide a general check. If multiple arguments are given multiple values on the command line, check to see if there is any common text between the values and order accordingly.