Skip to content

Commit

Permalink
MAINT: Improve error to include no golay suggestion (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmFord authored and ebolyen committed Nov 14, 2019
1 parent 4eae3c8 commit 71b9c6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions q2_demux/_demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ def emp_single(seqs: BarcodeSequenceFastqIterator,
raise ValueError('No sequences were mapped to samples. Check that '
'your barcodes are in the correct orientation (see '
'the rev_comp_barcodes and/or '
'rev_comp_mapping_barcodes options).')
'rev_comp_mapping_barcodes options). If barcodes are '
'NOT Golay format set golay_error_correction '
'to False.')

for fh in per_sample_fastqs.values():
fh.close()
Expand Down Expand Up @@ -447,7 +449,9 @@ def emp_paired(seqs: BarcodePairedSequenceFastqIterator,
raise ValueError('No sequences were mapped to samples. Check that '
'your barcodes are in the correct orientation (see '
'the rev_comp_barcodes and/or '
'rev_comp_mapping_barcodes options).')
'rev_comp_mapping_barcodes options). If barcodes are '
'NOT Golay format set golay_error_correction '
'to False.')

for fwd, rev in per_sample_fastqs.values():
fwd.close()
Expand Down

0 comments on commit 71b9c6e

Please sign in to comment.