Skip to content

Commit 3862947

Browse files
committed
Changed mismatch default from 1 to 0.
This change will require users who want mismatches >0 to specify it. A mismatch of 1 can lead to errors in assigning reads to samples when the bar code design is sub-optimal. By making the default 0, the chances of this happening are reduced.
1 parent e23af27 commit 3862947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ print_usage(FILE *stream)
7373
fprintf(stream, "axe-demux -h\n");
7474
fprintf(stream, "axe-demux -v\n\n");
7575
fprintf(stream, "OPTIONS:\n");
76-
fprintf(stream, " -m, --mismatch\tMaximum hamming distance mismatch. [int, default 1]\n");
76+
fprintf(stream, " -m, --mismatch\tMaximum hamming distance mismatch. [int, default 0]\n");
7777
fprintf(stream, " -z, --ziplevel\tGzip compression level, or 0 for plain text [int, default 0]\n");
7878
fprintf(stream, " -c, --combinatorial\tUse combinatorial barcode matching. [flag, default OFF]\n");
7979
fprintf(stream, " -p, --permissive\tDon't error on barcode mismatch confict, matching only\n");
@@ -132,7 +132,7 @@ parse_args(struct axe_config *config, int argc, char * const *argv)
132132
/* Set some sane defaults */
133133
/* Most things will default to 0 as we `calloc` the config struct, so we
134134
* don't need to explicity set them. */
135-
config->mismatches = 1;
135+
config->mismatches = 0;
136136
config->verbosity = 0;
137137
config->out_compress_level = 0;
138138
/* Parse argv using getopt */

0 commit comments

Comments
 (0)