# Demultiplexing Help

**URL:** https://forum.qiime2.org/t/demultiplexing-help/3311
**Category:** User Support
**Tags:** pending-development, demux, import
**Created:** [March 5, 2018, 2:24pm UTC](https://forum.qiime2.org/t/demultiplexing-help/3311 "2018-03-05T14:24:59Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [March 7, 2018, 9:02pm UTC](https://forum.qiime2.org/t/demultiplexing-help/3311/7 "2018-03-07T21:02:47Z")

</div>

Hi @Dean!

> [@Dean](#):
>
> I was given a .qual and .fasta file which I converted into a .fastq file and extracted the barcodes and reads

If you are going to demultiplex using the EMP protocol (`demux emp-single`), this is fine, but it won't work if you're planning on using `q2-cutadapt`'s demultiplexing methods.

> [@Dean](#):
>
> q2-CasavaOneEightSingleLanePerSampleDirFmt-20xn2609/[SampleID].VSL\_[Barcode]\_L001\_R1\_001.fastq.gz is not a(n) FastqGzFormat file:
> 
> Missing sequence for record beginning on line 13
> 
> when I tried using the reads.fastq.gz (and barcodes.fastq.gz in case that worked), running cutadapt demux-single. Both times I tried running it, they returned a different SampleID and sequence for record line error.

Have you had a chance to familiarize yourself with the [Importing tutorial](https://docs.qiime2.org/2018.2/tutorials/importing/)? There are some descriptions in that tutorial that are relevant to what you are working on, and ultimately these errors come down to some fundamental mismatches between data and the commands you are trying to run on it.

> [@Dean](#):
>
> Is there a different way to extract reads from the .qual/.fasta files other than going through Q1?

Okay, so moving forward, I would recommend the following. Convert your fast+qual to fastq using whatever tool you did to accomplish that previously. Import that one fastq file as `MultiplexedSingleEndBarcodeInSequence`, then follow the [`q2-cutadapt` community tutorial](https://forum.qiime2.org/t/demultiplexing-and-trimming-adapters-from-reads-with-q2-cutadapt/2313) to demultiplex these data. 🤞

> [@Dean](#):
>
> Thanks for helping out!

No problem, that is what we are here for! Thanks for working with us to make QIIME 2 a great place to be! 🦖 🎈

---

_[View the full topic](https://forum.qiime2.org/t/demultiplexing-help/3311)._
