From 547a7b6baae0396db815bdeac9553063ff931afe Mon Sep 17 00:00:00 2001 From: "Sheng, Caibin" Date: Sat, 19 Feb 2022 11:40:59 +0100 Subject: [PATCH] fix a misleading annotation for scCRISPRseq --- scAR/_scAR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scAR/_scAR.py b/scAR/_scAR.py index f153266..a316b75 100644 --- a/scAR/_scAR.py +++ b/scAR/_scAR.py @@ -329,7 +329,7 @@ def inference(self, batch_size=None, model='poisson', adjust='micro', feature_ty Feature types (string), e.g., 'sgRNAs', 'CMOs', 'Tags', and etc.. cutoff Cutoff for Bayesfactors. Default: 3. See https://doi.org/10.1007/s42113-019-00070-x. - MOI + MOI(Under development) Multiplicity of Infection. If assigned, it will allow optimized thresholding, which tests a series of cutoffs to find the best one based on distributions of infections under given MOI. See http://dx.doi.org/10.1016/j.cell.2016.11.038. Under development. Return @@ -391,7 +391,7 @@ def assignment(self, feature_type='sgRNAs', cutoff=3, MOI=None): feature_assignment.loc[cell, f'n_{feature_type}'] = 1 feature_assignment.loc[cell, feature_type] = bayesfactor_max.index[0] else: - feature_assignment.loc[cell, f'n_{feature_type}'] = 2 + feature_assignment.loc[cell, f'n_{feature_type}'] = len(bayesfactor_max) feature_assignment.loc[cell, feature_type] = (', ').join(bayesfactor_max.index) self.feature_assignment = feature_assignment