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
1
Entering edit mode
Jiang, Mike ★ 1.3k
@jiang-mike-4886
Last seen 23 days ago

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 .