Skip to content

Commit

Permalink
format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pontushojer committed May 3, 2024
1 parent 1ac20cb commit 3af32ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/naibr/get_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def parse_chromosome(chrom, configs):
# - Otherwise calculate accurately across each chromosome (or subsection).
coverage = cov / (reads_end - reads_start)
logger.info(f"Done reading chromosome {chrom}: coverage = {coverage:.3f}X")
fraction_conc = n_conc/n_total if n_total != 0 else 0
fraction_disc = n_disc/n_total if n_total != 0 else 0
fraction_conc = n_conc / n_total if n_total != 0 else 0
fraction_disc = n_disc / n_total if n_total != 0 else 0
logger.info(
f"{chrom}: total pairs: {n_total:,}, discordant: {n_disc:,} ({fraction_disc:.2%}), "
f"concordant: {n_conc:,} ({fraction_conc:.2%})"
Expand Down

0 comments on commit 3af32ce

Please sign in to comment.