From 34b52d701e8b6ffdf5605c51fe51999922ba872e Mon Sep 17 00:00:00 2001 From: huangyh09 Date: Sat, 5 Oct 2019 10:52:45 +0100 Subject: [PATCH] v0.1.6: fix a bug for smaller set of GT --- vireoSNP/version.py | 2 +- vireoSNP/vireo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vireoSNP/version.py b/vireoSNP/version.py index de49d1f..32efefd 100644 --- a/vireoSNP/version.py +++ b/vireoSNP/version.py @@ -1 +1 @@ -__version__ = "0.1.5" \ No newline at end of file +__version__ = "0.1.6" \ No newline at end of file diff --git a/vireoSNP/vireo.py b/vireoSNP/vireo.py index ce2cfdd..8a58feb 100644 --- a/vireoSNP/vireo.py +++ b/vireoSNP/vireo.py @@ -143,7 +143,7 @@ def main(): options.geno_tag) mm_idx = match(cell_vcf['variants'], donor_vcf['variants']) - idx1 = np.where(mm_idx != None)[0] + idx1 = np.where(mm_idx == mm_idx)[0] #remove None idx2 = mm_idx[idx1].astype(int) donor_GPb = donor_GPb[idx2, :, :]