Skip to content

Commit

Permalink
typehint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
semenko committed Jan 19, 2024
1 parent 8f93dbf commit c530c3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/bam2tensor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def validate_input_output(bams_to_process: list, overwrite: bool) -> None:
def main(
input_path: str,
genome_name: str,
expected_chromosomes: list,
expected_chromosomes: str,
reference_fasta: str,
quality_limit: int,
window_size: int,
Expand All @@ -138,13 +138,12 @@ def main(
print(f"\nLoading (or generating) methylation embedding named: {reference_fasta}")

# Convert expected_chromosomes to a list
expected_chromosomes = expected_chromosomes.split(",")
print(f"\tExpected chromosomes: {expected_chromosomes}")

# Create (or load) a GenomeMethylationEmbedding object
genome_methylation_embedding = GenomeMethylationEmbedding(
genome_name=genome_name,
expected_chromosomes=expected_chromosomes,
expected_chromosomes=expected_chromosomes.split(","),
fasta_source=reference_fasta,
window_size=window_size,
skip_cache=skip_cache,
Expand Down
4 changes: 2 additions & 2 deletions src/bam2tensor/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class GenomeMethylationEmbedding:

def __init__(
self,
genome_name,
expected_chromosomes,
genome_name: str,
expected_chromosomes: list[str],
fasta_source: str,
window_size: int = 150,
skip_cache: bool = False,
Expand Down

0 comments on commit c530c3c

Please sign in to comment.