Skip to content

Commit

Permalink
fix the bug where unique.node path was assigned from regular expressi…
Browse files Browse the repository at this point in the history
…on string #64
  • Loading branch information
mikejiang committed Dec 12, 2018
1 parent 996d207 commit c4611ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/GatingSetToCOMPASS.R
Expand Up @@ -53,7 +53,7 @@ COMPASSContainerFromGatingSet<-function(gs = NULL, node = NULL, filter.fun = NUL
if (is.null(gs) | is.null(node)) {
stop("Must specify a gating set and parent node.")
}
unique.node<-node

## Make 'node' act more like a regular expression if it isn't one already
n <- nchar(node)
if (!substring(node, 1, 1) == "/") node <- paste0("/", node)
Expand All @@ -80,7 +80,7 @@ COMPASSContainerFromGatingSet<-function(gs = NULL, node = NULL, filter.fun = NUL
stop(gettextf("The node expression %s doesn't identify any nodes.",
node))
}

unique.node<-parent.pop
# Extract the parent node name from the full population name
# we can just use the parent.pop
parent.node <- laply(strsplit(parent.pop, "/"), function(x) x[length(x)])
Expand Down

0 comments on commit c4611ac

Please sign in to comment.