Skip to content

Commit bfe97f2

Browse files
author
Muhammed Hasan Celik
committed
doc string fix
1 parent 020e083 commit bfe97f2

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/decima/cli/vep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"-v",
3333
"--variants",
3434
type=click.Path(exists=True),
35-
help="Path to the variant file .vcf file. VCF file need to be normalized. Try normalizing th vcf file incase of an error. `bcftools norm -f ref.fasta input.vcf.gz -o output.vcf.gz`",
35+
help="Path to the variant .vcf file. VCF file needs to be normalized. Try normalizing th vcf file in case of an error. `bcftools norm -f ref.fasta input.vcf.gz -o output.vcf.gz`",
3636
)
3737
@click.option("-o", "--output_pq", type=click.Path(), help="Path to the output parquet file.")
3838
@click.option("--tasks", type=str, default=None, help="Tasks to predict. If not provided, all tasks will be predicted.")

src/decima/cli/vep_attribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"-v",
1414
"--variants",
1515
type=click.Path(exists=True),
16-
help="Path to the variant file .vcf file. VCF file need to be normalized. Try normalizing th vcf file incase of an error. `bcftools norm -f ref.fasta input.vcf.gz -o output.vcf.gz`",
16+
help="Path to the variant .vcf file. VCF file needs to be normalized. Try normalizing the vcf file in case of an error. `bcftools norm -f ref.fasta input.vcf.gz -o output.vcf.gz`",
1717
)
1818
@click.option("-o", "--output_prefix", type=click.Path(), help="Path to the output prefix.")
1919
@click.option("--tasks", type=str, default=None, help="Tasks to predict. If not provided, all tasks will be predicted.")

src/decima/core/attribution.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def __sub__(self, other):
548548
or (self.pattern_type != other.pattern_type)
549549
):
550550
warnings.warn(
551-
"`threshold`, `min_seqlet_len`, `max_seqlet_len`, `additional_flanks`, and `pattern_type` are not same overriding "
551+
"`threshold`, `min_seqlet_len`, `max_seqlet_len`, `additional_flanks`, and `pattern_type` are not the same, overriding "
552552
"them with the values of the first attribution object."
553553
)
554554

@@ -623,7 +623,6 @@ def open(self):
623623
self.model_name.append(h5.attrs["model_name"])
624624
else:
625625
self.h5 = h5py.File(str(self.attribution_h5), "r")
626-
self.genes = self.h5["genes"][:].astype("U100")
627626
self.model_name = self.h5.attrs["model_name"]
628627
self.genome = self.h5.attrs["genome"]
629628
self.genes = self.h5["genes"][:].astype("U100")

src/decima/vep/vep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _log_vep_warnings(warning_counter: Counter, num_variants: int, genome_path:
262262
if warning == WarningType.ALLELE_MISMATCH_WITH_REFERENCE_GENOME.value:
263263
logger.warning(
264264
f"{warning}: {count} alleles out of {num_variants} predictions mismatched with the genome file {genome_path}."
265-
"If this is not expected, please check if you are using the correct genome version."
265+
" If this is not expected, please check if you are using the correct genome version."
266266
)
267267
elif warning == "no_overlap_found_for_chunk":
268268
logger.warning(f"{warning}: {count} chunks with no overlap found with genes.")

0 commit comments

Comments
 (0)