Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 18, 2024
1 parent dc67184 commit 6feda53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/CellTypist.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' @include Utils.R

utils::globalVariables(
names = c('majority_voting', 'Fraction', 'PropPerCluster', 'over_clustering', 'predicted_labels', 'totalPerCluster', 'totalPerLabel', 'propPerLabel', 'sortOrder'),
names = c('majority_voting', 'Fraction', 'PropPerCluster', 'over_clustering', 'predicted_labels', 'totalPerCluster', 'totalPerLabel', 'propPerLabel', 'sortOrder', 'Category'),
package = 'RIRA',
add = TRUE
)
Expand Down Expand Up @@ -212,7 +212,7 @@ RunCellTypist <- function(seuratObj, modelName = "Immune_All_Low.pkl", pThreshol
cellFile <- paste0(dirname(matrixFile), '/barcodes.tsv')

# Cell typist expects a single column:
tbl <- read.table(geneFile, sep = '\t')
tbl <- utils::read.table(geneFile, sep = '\t')
write.table(tbl$V1, file = geneFile, row.names = FALSE, col.names = FALSE)

# Ensure models present:
Expand Down Expand Up @@ -386,8 +386,8 @@ TrainCellTypist <- function(seuratObj, labelField, modelFile, minCellsPerClass =
unlink(cellFile)

# Cell typist expects a single column per gene:
tbl <- read.table(geneFile, sep = '\t')
write.table(tbl$V1, file = geneFile, row.names = FALSE, col.names = FALSE)
tbl <- utils::read.table(geneFile, sep = '\t')
utils::write.table(tbl$V1, file = geneFile, row.names = FALSE, col.names = FALSE)


# potentially replace windows slashes with forward slash
Expand Down

0 comments on commit 6feda53

Please sign in to comment.