Skip to content

Commit

Permalink
Attempt to fix scTour/pytorch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 30, 2025
1 parent e75788a commit f31d80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/Utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ',')))
}

Expand Down
2 changes: 1 addition & 1 deletion inst/scripts/PredictScTourPseudotime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f31d80a

Please sign in to comment.