Skip to content

Commit

Permalink
added comment for how to handle HMM files
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Nov 7, 2024
1 parent 866c503 commit f72e505
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions barcode_validator/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def align_to_hmm(self, sequence):
:param sequence: A BioPython SeqRecord object
:return: A BioPython SeqRecord object containing the aligned sequence
"""

# TODO: inside this method, the HMM file should be inferred from the `marker_code` attribute of the sequence.
# For example, if `marker_code` == 'COI-5P', the HMM file should be 'COI-5P.hmm', which should be set via
# self.hmmalign.set_hmmfile().
self.logger.info("Aligning sequence to HMM")
if len(sequence.seq) == 0:
self.logger.warning("Empty sequence provided for alignment")
Expand Down

0 comments on commit f72e505

Please sign in to comment.