I am new to QIIME2 and fairly unfamiliar with the Linux operating system. I received a compressed file of multiplexed single-end sequences with barcodes in sequences and I am trying to follow the importing tutorial for QIIME2 on a Ubuntu virtual computer.
The first thing I did was unzip the original .tar.bz2 file in Ubuntu and moved the unzipped fastq file to my working directory. I then used the gzip command in the terminal to create the fastq.gz file:
$ gzip sequences.fastq
Next, I created the metadata.txt file and used the following command to create the .qzv file.
$ qiime metadata tabulate --m-input-file mymetadata.txt --o-visualization tabulated-sample-metadata.qzv
However, when I try to import the fastq.gz file by executing the following command, I get an error:
$ qiime tools import --type MultiplexedSingleEndBarcodeInSequence --input-path sequences.fastq.gz --output-path multiplexed-seqs.qza
There was a problem importing sequences.fastq.gz: sequences.fastq.gz is not a(n) FastqGzFormat file: Missing separator for record beginning on line 57741453
I have deleted the fastq.gz file and started over by recompressing the original fastq file again and I always get the same error about the fastq.gz file not being a FastqGzFormat file, although the description of the error after the colon has mentioned other problems in previous attempts ("missing separator for record beginning on line ....").
I went through the import tutorial and I was able to get the example file (muxed-se-barcode-in-seq.fastq.gz) to import just fine. I get the impression that the problem is with the original fastq file I was given, or something that happens to it when I unzip it. The sequence data was from an Ion Torrent sequencer and the original file that was sent to me had a .tar.bz2 file extension. I'm really not sure what the issue might be and the folks at the lab that sequenced my data are not able to help me either. They are familiar with QIIME but have not used QIIME2 to process their NGS data recently.
Any help you can offer would be greatly appreciated!