Skip to content

Commit c4611ac

Browse files
author
mikejiang
committed
fix the bug where unique.node path was assigned from regular expression string #64
1 parent 996d207 commit c4611ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/GatingSetToCOMPASS.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ COMPASSContainerFromGatingSet<-function(gs = NULL, node = NULL, filter.fun = NUL
5353
if (is.null(gs) | is.null(node)) {
5454
stop("Must specify a gating set and parent node.")
5555
}
56-
unique.node<-node
56+
5757
## Make 'node' act more like a regular expression if it isn't one already
5858
n <- nchar(node)
5959
if (!substring(node, 1, 1) == "/") node <- paste0("/", node)
@@ -80,7 +80,7 @@ COMPASSContainerFromGatingSet<-function(gs = NULL, node = NULL, filter.fun = NUL
8080
stop(gettextf("The node expression %s doesn't identify any nodes.",
8181
node))
8282
}
83-
83+
unique.node<-parent.pop
8484
# Extract the parent node name from the full population name
8585
# we can just use the parent.pop
8686
parent.node <- laply(strsplit(parent.pop, "/"), function(x) x[length(x)])

0 commit comments

Comments
 (0)