Removing Barcodes with UPARSE/USEARCH
1
0
Entering edit mode
6.3 years ago

I'm working on pre-processing my microbiome data with UPARSE/USEARCH (http://www.drive5.com/). I need to remove my barcode reads. There is a script available for this: http://drive5.com/python/fastq_strip_barcode_relabel_py.html

I am getting the following error:

File "USEARCH_py/fastq_strip_barcode_relabel.py", line65, in <module> fastq.ReadRecs(FileName, OnRec)
File "/home/qiime/Documents/USEARCH_py/fastq.py", line 127, in ReadRecs assert Line[0] == '@'
AssertionError


Can anyone help me identify the problem?

microbiome uparse • 1.9k views
0
Entering edit mode

I have encountered the same problem now. How did you solve it?

I was inputting a FASTQ file, but it still shows an error

2
Entering edit mode
6.3 years ago

assert Line[0] == '@' means that the line should start with a @. In this case, it's checking that it is a FASTQ file. I was inputting a FASTA file from the previous step, which uses > as a line delimiter.