Skip to content

Commit

Permalink
fixing lowercase characters in reference
Browse files Browse the repository at this point in the history
  • Loading branch information
xsitarcik committed Aug 30, 2023
1 parent d0374b2 commit 846ace3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schemas/locus.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(
def prepare_sequence(self, reference_path: str):
fa_seq: str = pysam.faidx(reference_path, self.coord)
seq = ''.join(fa_seq.split('\n')[1:])
noting_seq = ''.join(fa_seq.split('\n')[1:])
seq = seq.upper()
noting_seq = seq
if len(seq) <= 1:
raise ValueError(f'Reference repeat sequence is empty for {self.name} - check coord {self.coord}')
if not self.motif:
Expand Down

0 comments on commit 846ace3

Please sign in to comment.