From ac01e2fb23f68b249e9124f39e350caf88bb7d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=B5=A2=28Ying=20Zhu=29?= Date: Tue, 1 Aug 2023 14:06:54 +0800 Subject: [PATCH] Update hmm.py make the window paramter activate of segment_hmm function --- cnvlib/segmentation/hmm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnvlib/segmentation/hmm.py b/cnvlib/segmentation/hmm.py index c32194ce..e757824c 100755 --- a/cnvlib/segmentation/hmm.py +++ b/cnvlib/segmentation/hmm.py @@ -36,7 +36,7 @@ def segment_hmm(cnarr, method, diploid_parx_genome, window=None, variants=None, # NB: Incorporate weights into smoothed log2 estimates # (Useful kludge until weighted HMM is in place) orig_log2 = cnarr["log2"].values.copy() - cnarr["log2"] = cnarr.smooth_log2() # window) + cnarr["log2"] = cnarr.smooth_log2(window) logging.info("Building model from observations") model = hmm_get_model(cnarr, method, diploid_parx_genome, processes)