Add flowclust gate to gatingset
1
0
Entering edit mode
pavitrarc ▴ 20
@pavitrarc-7234
Last seen 3 months ago
United States/Seattle/Fred Hutch

How do I add a flowclust 2d gate to an existing gatingset? I am able to do this successfully for rectangle gates using add(gs,myrectgate,...) but I can't figure out how to do a similar thing with a flowclust gate. 

opencyto flowclust • 613 views
ADD COMMENT
1
Entering edit mode
Jiang, Mike ★ 1.3k
@jiang-mike-4886
Last seen 23 days ago
(Private Address)

If you are using the function 'gate_flowClust_2d' from openCyto package, it returns a polygonGate, which can be added as it is to `GatingSet` by `add` method. If you were talking about using `flowClust` package directly (e.g. through 'flowClust` function), you need to convert the tmixFilter result to `ellipseGate`. It can be done through the convenient internal wrapper  'openCyto:::.getEllipseGate`. Alternatively, you can use another helper function ('cytoUtils::tmix2DGate') to invoke the `flowClust` and get the multiple (depends on your input of 'K') polygonGates .

ADD COMMENT

Login before adding your answer.

Traffic: 407 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6