Skip to content

Commit

Permalink
Merge pull request #36 from boombard/fix_collapse
Browse files Browse the repository at this point in the history
fixed typos in the collapse function
  • Loading branch information
boombard authored Apr 21, 2017
2 parents a8e035e + 81637c6 commit 88d4754
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tracerlib/tracer_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,12 @@ def collapse_close_sequences(recombinants, locus):
and comp_name in filtered_contig_names:
# pdb.set_trace()
# define re pattern here to find TRAVx[DN] or TRDVx[DN] depending on locus
if locus == "TCRA":
if locus == "TCR_A":
duplicate_pattern = re.compile(r"TRAV\d+[DN]")
segment_pattern = re.compile(
r"TRAV(\d+)([DN])?(-\d)?.+")
attempt_collapse = True
elif locus == "TCRD":
elif locus == "TCR_D":
duplicate_pattern = re.compile(r"DV\d+[DN]")
segment_pattern = re.compile(r"DV(\d+)([DN])?(-\d)?.+")
attempt_collapse = True
Expand Down Expand Up @@ -596,12 +596,12 @@ def collapse_close_sequences(recombinants, locus):

elif lev_dist < 75 and not base_id == comp_id and base_name in filtered_contig_names \
and comp_name in filtered_contig_names:
if locus == "TCRA":
if locus == "TCR_A":
duplicate_pattern = re.compile(r"TRAV\d+[DN]")
segment_pattern = re.compile(
r"TRAV(\d+)([DN])?(-\d)?.+")
attempt_collapse = True
elif locus == "TCRD":
elif locus == "TCR_D":
duplicate_pattern = re.compile(r"DV\d+[DN]")
segment_pattern = re.compile(r"DV(\d+)([DN])?(-\d)?.+")
attempt_collapse = True
Expand Down

0 comments on commit 88d4754

Please sign in to comment.