Skip to content

Commit 940eedf

Browse files
author
Yuhe Cheng
committed
typo
1 parent 159c497 commit 940eedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subcommands/Estimate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pandas as pd
77
from matplotlib import pyplot as plt
88
from pysam import VariantFile as VCF
9-
import math
109

1110

1211
def calculate_ref_trinuc(args):
@@ -138,7 +137,6 @@ def do_estimate(args):
138137
uburden_lb,
139138
uburden_ub,
140139
) = estimate_96(trinuc_by_rf_np, trinuc_mut_np, ref_trinuc, trinuc_by_rf.columns)
141-
print(trinuc_rate)
142140
corrected_trinuc_pd = pd.DataFrame(corrected_trinuc_num, index=num2trinucSbs)
143141
fig, ax = plt.subplots(figsize=(60, 10))
144142
SBS96_order = sorted(corrected_trinuc_pd.index, key=lambda x: (x[2:5], x[0] + x[6]))
@@ -202,6 +200,7 @@ def do_estimate(args):
202200
# corrected_burden = corrected_trinuc_num.sum()/ref_trinuc.sum()
203201
# original_burden = trinuc_rate
204202
# print(corrected_burden)
203+
"""
205204
fig, axs = plt.subplots(16, 6)
206205
for nn in range(96):
207206
nnn = math.floor(nn / 6)
@@ -213,6 +212,7 @@ def do_estimate(args):
213212
axs[nnn, mmm].plot(x, trinuc_rate[nn] * x, color="r")
214213
axs[nnn, mmm].set_title(num2trinucSbs[nn])
215214
fig.savefig(args.prefix + "/" + sample + "_sbs96_mutrates.png", dpi=300)
215+
"""
216216
with open(args.prefix + "/" + sample + "_burden.txt", "w") as f:
217217
f.write(f"Uncorrected burden\t{uburden}\n")
218218
f.write(f"Uncorrected burden 95% lower\t{uburden_lb}\n")

0 commit comments

Comments
 (0)