Skip to content

Commit

Permalink
Merge pull request #46 from prihoda/fix-raw-numbering
Browse files Browse the repository at this point in the history
Fix raw numbering
  • Loading branch information
brennanaba authored Nov 8, 2024
2 parents ab16208 + e0d5111 commit 0df4e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImmuneBuilder/sequence_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def number_single_sequence(sequence, chain, scheme="imgt", allowed_species=['hum

# Renumber once sanity checks done
if scheme == "raw":
output = [((i+1, " "),x[1]) for i,x in enumerate(numbered[0][0][0]) if x[1] != "-"]
output = [((i+1, " "),x[1]) for i,x in enumerate(output)]
elif scheme != 'imgt':
numbered, _, _ = anarci([("sequence", sequence)], scheme=scheme, output=False, allow=set(allow), allowed_species=allowed_species)
output = [x for x in numbered[0][0][0] if x[1] != "-"]
Expand Down

0 comments on commit 0df4e2a

Please sign in to comment.