Closed GoogleCodeExporter closed 9 years ago
Hi, thanks for your report. I think I have fixed this problem already in the
most recent, but not yet released, cutadapt version. I have just added a
pre-version of cutadapt 1.2 to the download page. Could you please download it
and check whether you still have the error?
Original comment by marcel.m...@tu-dortmund.de
on 11 Oct 2012 at 3:17
Hi,
Thanks for the fast reply. However, the error still persists. Now it
happens with the following pair of sequences:
The read:
CTTTCCGCTGTACCCTGCCACATATTCTTCGTTGGAAGAGCACACGTCTGAACTCCAGTCACGGCC
The adapter:
GATCGGAAGAGCACACGTCTGAACTCCAGTCACNNNNNNATCTCGTATGCCGTCTTCTGCTTG
Traceback (most recent call last):
File "/home/maciejp/Downloads/cutadapt-1.2rc2/bin/cutadapt", line
10, in <module>
cutadapt.main()
File "/home/maciejp/Downloads/cutadapt-1.2rc2/cutadapt/scripts/cutadapt.py",
line 850, in main
read, trimmed = cutter.cut(read)
File "/home/maciejp/Downloads/cutadapt-1.2rc2/cutadapt/scripts/cutadapt.py",
line 592, in cut
print(matched_wildcards(match), read.name, file=self.wildcard_file)
File "/home/maciejp/Downloads/cutadapt-1.2rc2/cutadapt/scripts/cutadapt.py",
line 364, in matched_wildcards
if match.adapter.sequence[match.astart + i] == wildcard_char ]
IndexError: string index out of range
I hope it helps.
Original comment by mpasz...@gmail.com
on 11 Oct 2012 at 4:01
I hope I've fixed the issue. You can get the most recent version from Github:
https://github.com/marcelm/cutadapt
If you don't know how to use Git, just download the zip file. Please let me
know if it works.
Original comment by marcel.m...@tu-dortmund.de
on 12 Oct 2012 at 11:15
Yes, it seems to work fine. However, if I use an input file (uncompressed or
gziped fastq) with a single read, the script finishes with the following
comment:
No reads were read! Either your input file is empty or you used the wrong
-f/--format parameter.
The output file with a single read is generated nevertheless.
Original comment by mpasz...@gmail.com
on 12 Oct 2012 at 3:04
Sorry about that. It is the current development version that has a bug in the
statistics code. It simply did not count some reads. If you get the most recent
version, you will not get that particular message, but some of the numbers will
still be off. The trimming is unaffected and will work as before, though. I
hope I can repair that in the next days.
Original comment by marcel.m...@tu-dortmund.de
on 18 Oct 2012 at 3:41
Thanks, it's good to know that this bug did not affect the trimming.
Cheers!
Original comment by mpasz...@gmail.com
on 18 Oct 2012 at 3:46
The current version of cutadapt (1.2.1) shows correct statistics.
Original comment by marcel.m...@tu-dortmund.de
on 10 Dec 2012 at 10:40
Original issue reported on code.google.com by
mpasz...@gmail.com
on 11 Oct 2012 at 2:50