Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
hack to print out qualities in cutadapt’s info file (will crash when trimming FASTA files)
diff --git i/cutadapt/scripts/ w/cutadapt/scripts/
index 855721d..2eaf435 100755
--- i/cutadapt/scripts/
+++ w/cutadapt/scripts/
@@ -155,6 +155,7 @@ class AdapterCutter(object):
# TODO write only one line, even for multiple matches
for match in matches:
seq =
+ qualities =
if match is None:
print(, -1, seq, sep='\t', file=self.info_file)
@@ -167,6 +168,9 @@ class AdapterCutter(object):
+ qualities[0:match.rstart],
+ qualities[match.rstart:match.rstop],
+ qualities[match.rstop:],
sep='\t', file=self.info_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.