Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iCount/demultiplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ def _extract(reads, barcodes, **kwargs):

def add_randomer_to_header(randomer, fq_entry):
"""Add randomer info to FASTQ header."""
match = re.match(r'.*(:rbc:)([ACGT]+).*', fq_entry.id)
match = re.match(r'.*(:rbc:)([ACGTN]+).*', fq_entry.id)
if match:
# Handle the case where randomer is already in the header.
rbc = match.group(2)
randomer = randomer + rbc

fq_entry.id = re.sub(r':rbc:[ACGT]+', '', fq_entry.id)
fq_entry.id = re.sub(r':rbc:[ACGTN]+', '', fq_entry.id)

if fq_entry.id[-2:] in ['/1', '/2']:
# For early versions of Illumina, keep mate info at the end:
Expand Down