Skip to content

Commit

Permalink
Handle NoneType variant sequences
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Capodanno <[email protected]>
  • Loading branch information
sallybg and bencap committed Jun 13, 2024
1 parent 6857d8f commit 6327830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcd_mapping/vrs_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _adjust_genomic_variant_to_ref(
# variant._sequences can be a string or an iterable
if isinstance(variant._sequences, str):
variant._sequences = str(Seq(variant._sequences).reverse_complement())
else:
elif variant._sequences is not None:
revcomp_sequences_list = []
for sequence in variant._sequences:
revcomp_sequences_list.append(str(Seq(sequence).reverse_complement()))
Expand Down

0 comments on commit 6327830

Please sign in to comment.