diff --git a/R/Utils.R b/R/Utils.R index 5d205309..7af8d81a 100644 --- a/R/Utils.R +++ b/R/Utils.R @@ -326,7 +326,7 @@ ClrNormalizeByGroup <- function(seuratObj, groupingVar, assayName = 'ADT', targe if (!is.null(minCellsPerGroup) && !is.na(minCellsPerGroup)) { groupValues <- as.character(seuratObj[[groupingVar, drop = TRUE]]) if (any(is.na(groupValues))) { - missing <- unique(seuratObj$BarcodePrefix[[is.na(seuratObj[[groupingVar]])]]) + missing <- unique(seuratObj$BarcodePrefix[is.na(seuratObj[[groupingVar, drop = TRUE]])]) stop(paste0('There were NAs for the column: ', groupingVar, '. BarcodePrefix values were: ', paste0(missing, collapse = ','))) } diff --git a/inst/scripts/PredictScTourPseudotime.py b/inst/scripts/PredictScTourPseudotime.py index ee7e44bb..e74aa217 100644 --- a/inst/scripts/PredictScTourPseudotime.py +++ b/inst/scripts/PredictScTourPseudotime.py @@ -3,7 +3,7 @@ import numpy as np import pandas as pd import torch -import anndata +from anndata import AnnData def PredictPseudotime(GEXfile, model_file, ptime_out_file, embedding_out_file): #read count data and variable genes