From 24f3db514709766b6291306da3264bc58142e74f Mon Sep 17 00:00:00 2001 From: ebergstr Date: Tue, 28 Nov 2023 11:10:32 -0800 Subject: [PATCH] exome=True with correction=True fix --- SigProfilerClusters/hotspot.py | 5 ++++- SigProfilerClusters/version.py | 4 ++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/SigProfilerClusters/hotspot.py b/SigProfilerClusters/hotspot.py index cee15d6..434a154 100644 --- a/SigProfilerClusters/hotspot.py +++ b/SigProfilerClusters/hotspot.py @@ -668,7 +668,10 @@ def calculateSampleIMDs (project, folders, directory, directory_orig, vcf_path_c sim_count = len(files) for file in files: if correction: - sim = file.split("_")[-3] + if "_exome_" in file: + sim = file.split("_")[-4] + else: + sim = file.split("_")[-3] densityMutsSim[sim] = [] chroms = [] if file == '.DS_Store': diff --git a/SigProfilerClusters/version.py b/SigProfilerClusters/version.py index 733605a..e349e0a 100644 --- a/SigProfilerClusters/version.py +++ b/SigProfilerClusters/version.py @@ -1,6 +1,6 @@ # THIS FILE IS GENERATED FROM SIGPROFILECLUSTERS SETUP.PY -short_version = '1.1.0' -version = '1.1.0' +short_version = '1.1.1' +version = '1.1.1' \ No newline at end of file diff --git a/setup.py b/setup.py index f414d81..67433aa 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def readme(): # with open('README.rst') as f: # return(f.read()) -VERSION = '1.1.1' +VERSION = '1.1.2' def write_version_py(filename='SigProfilerClusters/version.py'): # Copied from numpy setup.py