Skip to content

Commit

Permalink
Do not write out blank seq
Browse files Browse the repository at this point in the history
  • Loading branch information
Tu committed Apr 27, 2021
1 parent 0093a0f commit 44d0352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion primertrim/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def main(argv=None):
trimmable_reads.register_match(read_id, matchobj)

for desc, seq, qual in trimmable_reads.get_trimmed_reads():
args.output_fastq.write("@{0}\n{1}\n+\n{2}\n".format(desc, seq, qual))
if seq != "":
args.output_fastq.write("@{0}\n{1}\n+\n{2}\n".format(desc, seq, qual))

if args.log:
for read_id, matchobj in trimmable_reads.matches.items():
Expand Down

0 comments on commit 44d0352

Please sign in to comment.