# Golay Barcodes not being detected with demux

**URL:** <https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449>\
**Category:** Technical Support\
**Tags:** demux\
**Created:** [February 2, 2025, 9:07pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449 "2025-02-02T21:07:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zach\_Burcham](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zach_burcham/32/18784_2.png) [@Zach\_Burcham](https://forum.qiime2.org/u/Zach_Burcham)\
**Post date:** [February 2, 2025, 9:07pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/1 "2025-02-02T21:07:12Z")

</div>

Hello everyone,

I am trying to demux a new dataset and am getting the following error:

**Plugin error from demux:**

**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). If barcodes are NOT Golay format set golay\_error\_correction to False.**

I have confirmed that I do NOT need to use the reverse complement options and if I set "golay\_error\_correction" to "False", the sequences DO demultiplex. Where I am confused, is that these should be Golay barcodes as they are the EMP 16S V4 primers/indexes. For example here is a barcode sequence from by fastq file which is the Plate 3 G5 index:

@VL00838:14:AAGG27FM5:1:2404:59018:56394 1:N:0:CCGGCCGCGTGC  
CCGGCCGCGTGC  
+  
IIIIIIIIIIII

Does anyone know what might the issue be?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [February 3, 2025, 3:38pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/2 "2025-02-03T15:38:18Z")

</div>

Hi Zach,

Can you post the full Qiime2 command you ran?

---

<div class="post-metadata">

**Author:** ![Zach\_Burcham](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zach_burcham/32/18784_2.png) [@Zach\_Burcham](https://forum.qiime2.org/u/Zach_Burcham)\
**Post date:** [February 3, 2025, 6:30pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/3 "2025-02-03T18:30:37Z")

</div>

Sure. it was the following:

```auto
qiime tools import \
   --type EMPPairedEndSequences \
   --input-path fastq/ \
   --output-path import/emp-paired-end-sequences.qza

qiime demux emp-paired \
  --m-barcodes-file metadata/SR1_updated_barcodes.txt \
  --m-barcodes-column GolayBarcode \
  --i-seqs import/emp-paired-end-sequences.qza \
  --o-per-sample-sequences import/demux-full.qza \
  --o-error-correction-details import/demux-details.qza

```

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [February 3, 2025, 6:38pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/4 "2025-02-03T18:38:06Z")

</div>

Maybe it's related to this?

> <https://github.com/qiime2/q2-demux/issues/102#issuecomment-630380478>
>
> \*\*Proposed Behavior\*\*
> I think yes, default should be False, but I see both side…s of the argument:
> 
> 1. True: the \`emp-\*\` methods are designed for EMP, after all. EMP uses golay barcodes (correct?) and hence anyone truly following that protocol would have golay (by default).
> 2. False: many different primers and barcoding schemes (i.e., non-EMP) are compatible with the "EMP"-style method and I think many novice users will stumble into this, as demonstrated on the \[forum\](https://forum.qiime2.org/t/plugin-error-from-demux-requres-12nt-instead-8nt/9947?u=nicholas\_bokulich). Setting this to default will allow users to decide what they do.

> [@Questions about import Paired-end sequencing data](https://forum.qiime2.org/t/questions-about-import-paired-end-sequencing-data/12531/4):
>
> The mapping barcodes must be reverse-complemented to be considered valid golay barcodes. Then the barcodes must be reverse-complemented to match your mapping barcodes!

Yeah, that's surprising to me too! I wonder if this is a hold over from the original EMP methods. They are pretty old so there could be some surprises in there!

Could you try this on your data? Hit'em with the double reverse, and report back!

```sh
  --p-rev-comp-barcodes
  --p-rev-comp-mapping-barcodes

```

---

<div class="post-metadata">

**Author:** ![Zach\_Burcham](https://forum.qiime2.org/user_avatar/forum.qiime2.org/zach_burcham/32/18784_2.png) [@Zach\_Burcham](https://forum.qiime2.org/u/Zach_Burcham)\
**Post date:** [February 4, 2025, 9:05pm UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/5 "2025-02-04T21:05:26Z")

</div>

The double reverse worked like a charm! Interesting quirk!

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [March 8, 2025, 3:22am UTC](https://forum.qiime2.org/t/golay-barcodes-not-being-detected-with-demux/32449/7 "2025-03-08T03:22:04Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
