Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
semenko committed Feb 1, 2025
1 parent 6cd6573 commit fa66132
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ jobs:
fail-fast: false
matrix:
include:
- { python: "3.10", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.12", os: "ubuntu-latest", session: "mypy" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "macos-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
- { python: "3.12", os: "macos-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.12", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.12", os: "ubuntu-latest", session: "docs-build" }

env:
NOXSESSION: ${{ matrix.session }}
Expand Down
6 changes: 3 additions & 3 deletions src/bam2tensor/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GenomeMethylationEmbedding:
This class helps identify CpG sites in a given .fasta file and stores
methylation embedding information for each CpG site for analyzing .bam files.
Stored embedding information cached and stored in gzipped json files.
Stored embedding information is cached and stored in gzipped json files.
"""

def __init__(
Expand Down Expand Up @@ -65,7 +65,7 @@ def __init__(
# Store the CpG sites in a dict per chromosome
self.cpg_sites_dict: dict[str, list[int]] = {}

# This is a dict of lists, where but each list contains a tuple of CpG ranges witin a window
# This is a dict of lists, where each list contains a tuple of CpG ranges within a window
# Key: chromosome, e.g. "chr1"
# Value: a list of tuples, e.g. [(0,35), (190,212), (1055,)]
self.windowed_cpg_sites_dict: dict[str, list[tuple]] = {}
Expand Down Expand Up @@ -340,7 +340,7 @@ def embedding_to_genomic_position(
Args
----------
embedding_pos : int
The embedding position.
The embedding position, e.g. 3493
Returns
-------
Expand Down

0 comments on commit fa66132

Please sign in to comment.