biocore / qiime

Official QIIME 1 software repository. QIIME 2 (https://qiime2.org) has succeeded QIIME 1 as of January 2018.
GNU General Public License v2.0
285 stars 268 forks source link

Fix zero length barcode options for extract_barcodes.py #2207

Open walterst opened 6 years ago

walterst commented 6 years ago

Specifically, the slicing approach of these lines: https://github.com/biocore/qiime/blob/master/qiime/extract_barcodes.py#L412 https://github.com/biocore/qiime/blob/master/qiime/extract_barcodes.py#L414

creates a problem with the length of the barcode is zero, should be adjusted to use the len(sequence)-length of barcode to handle all cases.