Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions bin/stats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from numpy.typing import NDArray
from dataclasses import dataclass
import itertools
from itertools import permutations

BASE_TYPES = ["A", "C", "G", "T"]

Expand Down Expand Up @@ -40,15 +39,6 @@ def argmax(collection) -> int:

nucs = ('A', 'C', 'G', 'T')

def make_variant_header_dict():
nuc_pairs = permutations(nucs, 2)
keys = ((x, NUC_STR_TO_IND[y]) for x, y in nuc_pairs)
return {k:v for v, k in enumerate(keys)}

header_dict = make_variant_header_dict()

for item in header_dict.items():
print(item)

@dataclass(frozen=True, slots=True)
class SiteVariantData:
Expand Down