Skip to content

Commit

Permalink
Factor out convert_from_aligned_to_reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Jun 17, 2023
1 parent 2ed9aaf commit 46db8fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/subtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def convert_from_subtype_to_hxb2(position, orientation, subtype):

alignment = wrappers.mafft(sequences)

return convert_from_aligned_to_reference(position, alignment)

def convert_from_aligned_to_reference(position, alignment):
hxb2_pos = 0
subtype_pos = 0
for i in range(len(alignment[0])):
Expand Down

0 comments on commit 46db8fd

Please sign in to comment.