Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit 092f3c0

Browse files
committed
test: minor bug-hunting resource rearrangement
1 parent 6c703ab commit 092f3c0

File tree

2 files changed

+535
-4
lines changed

2 files changed

+535
-4
lines changed

misc/bug_hunting/check_align.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from cool_seq_tool.schemas import Strand
55

66
from dcd_mapping.align import align
7-
from dcd_mapping.resources import LOCAL_STORE_PATH, get_scoreset_metadata
7+
from dcd_mapping.resources import get_scoreset_metadata
88

99
logging.basicConfig(
1010
filename="dcd-check-align.log",
@@ -18,13 +18,13 @@
1818
with open("notebooks/analysis/results/mave_blat.pickle", "rb") as f:
1919
mave_blat_dict = pickle.load(f)
2020

21-
with open(LOCAL_STORE_PATH / "human_urns.txt", "r") as f:
21+
with open("human_urns.txt", "r") as f:
2222
urns = [line.strip() for line in f.readlines()]
2323

2424
strand_reformat = {1: Strand.POSITIVE, -1: Strand.NEGATIVE}
2525

2626

27-
def format_chrom(chrom):
27+
def chrom_reformat(chrom):
2828
return f"chr{chrom}"
2929

3030

@@ -41,7 +41,7 @@ def format_chrom(chrom):
4141
original = mave_blat_dict[urn]
4242
try:
4343
for name, actual, expected in [
44-
("chromosome", alignment.chrom, format_chrom(original["chrom"])),
44+
("chromosome", alignment.chrom, chrom_reformat(original["chrom"])),
4545
("strand", alignment.strand, strand_reformat[original["strand"]]),
4646
]:
4747
if actual != expected:

0 commit comments

Comments
 (0)