def usage():
    sys.stdout.write('%s\n' % __doc__)
    sys.stdout.write('''
Usage: %s {options} barcodes.txt input.fastx{.gz} output_template

Options:
  -edit num         Number of mismatches/indels to allow in barcode discovery.
                    (default: 0)

  -pos num          Allow barcode to be within [num] bases from the start.
                    (or end for 3' barcodes) (default: 0)

  -allow-revcomp    Allow barcodes to match the reverse-compliment of a read.
                    (non-strand specific sequencing) The read's orientation
                    will *not* be changed in the output file.

  -gz               GZip compress the output files

  -stats            Output stats file (output_template.stats.txt)

''' % os.path.basename(sys.argv[0]))
    sys.exit(1)
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/fastq/barcode_split.py/usage/original