UMI-tools Extract not working

Hi, what is causing the error message here:

Traceback (most recent call last):
  File "/usr/local/tools/_conda/envs/__umi_tools@1.1.2/bin/umi_tools", line 11, in <module>
    sys.exit(main())
  File "/usr/local/tools/_conda/envs/__umi_tools@1.1.2/lib/python3.8/site-packages/umi_tools/umi_tools.py", line 61, in main
    module.main(sys.argv)
  File "/usr/local/tools/_conda/envs/__umi_tools@1.1.2/lib/python3.8/site-packages/umi_tools/extract.py", line 477, in main
    reads = ReadExtractor(read1, read2)
  File "/usr/local/tools/_conda/envs/__umi_tools@1.1.2/lib/python3.8/site-packages/umi_tools/extract_methods.py", line 544, in __call__
    raise ValueError('Read sequence: %s is shorter than pattern: %s' % (
ValueError: Read sequence: ACGC is shorter than pattern: NNNXXXXNN

Hi @biostaring,
it seems that your FASTQ file contains reads whose length is shorter than the barcode pattern; in order to solve it, you need to filter your reads by length >=10, by using for example cutadapt.

Regards

1 Like