Skip to content

Commit

Permalink
fix: refget-compat checksums must use uppercase contig seq
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 22, 2023
1 parent 904699b commit 247c5d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fasta_checksum_utils/_contig.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def gen_sequence() -> Generator[bytes, None, None]:
yield (
fh
.fetch(contig_name, offset, min(offset + SEQUENCE_CHUNK_SIZE, contig_length))
.upper() # See http://samtools.github.io/hts-specs/refget.html#checksum-calculation
.encode("ascii")
)

Expand Down

0 comments on commit 247c5d2

Please sign in to comment.