Skip to content

Commit

Permalink
nf filterNcGenes
Browse files Browse the repository at this point in the history
  • Loading branch information
vertesy committed Jun 10, 2024
1 parent 1cf407e commit 389beac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/Seurat.Utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ filterNcGenes <- function(genes, pattern_NC = c("^AC[0-9].+", "^AL[0-9].+", "^AP
"^AF[0-9].+", "^Z[0-9]+.+",
"^LINC0.+", "^C[1-9]orf.+", "^MIR[1-9].+",
".+\\.AS[1-9]$", ".+\\.DT[1-9]$"),
...) {
unique = TRUE, ...) {

# Input assertions
stopifnot(is.character(genes), length(genes) > 0,
Expand All @@ -1034,6 +1034,8 @@ filterNcGenes <- function(genes, pattern_NC = c("^AC[0-9].+", "^AL[0-9].+", "^AP
# Output assertions
stopifnot(is.character(genes_kept), length(genes_kept) <= original_length)

if(unique) genes_kept <- unique(genes_kept)

return(genes_kept)
}

Expand Down

0 comments on commit 389beac

Please sign in to comment.