RGLab / openCyto

A package that provides data analysis pipeline for flow cytometry.
GNU Affero General Public License v3.0
75 stars 29 forks source link

How to add correct gate_range #225

Closed drpreeti3628 closed 3 years ago

drpreeti3628 commented 3 years ago

Hi,

I created a quadrant gate and then picked on the quadrant as parent to further gate using gate_mindensity as gatign method and setting a range using gate_range arguments.

I want to leverage the mindensity at x axis at 8 and and at y axis at 2.5. But whatever option I try it leverages only one value at both X and Y axis. Can you please suggest a better option

"6","CD45RACD62L","+/-+/-","PE-A-CAR-BUV396-A-CD5+","PerCP-Cy5-5-A-CD45RA,BV605-A-CD62L","gate_mindensity","gate_range = c(8,2.5)",NA,NA,"",NA

mikejiang commented 3 years ago

You will have to do one axis at a time/row, e.g.

* +/- PE-A-CAR-BUV396-A-CD5+ cd45 gate_mindensity gate_range = 8
* +/- PE-A-CAR-BUV396-A-CD5+ cd62 gate_mindensity gate_range = 2.5
gfinak commented 3 years ago

Thanks, Mike. @drpreeti3628, The gate_range argument (and all gating arguments) passed straight through to each gating method. We aren't doing anything clever with the gating arguments in the expansion.

mikejiang commented 3 years ago

Actually this will be closer to your goal if quadGate on cd45 & cd62 are what you wanted

cd45_gate + PE-A-CAR-BUV396-A-CD5+ cd45 gate_mindensity gate_range = 8
cd45_gate + PE-A-CAR-BUV396-A-CD5+ cd62 gate_mindensity gate_range = 2.5
* +/-+/- PE-A-CAR-BUV396-A-CD5+ cd45,cd62 refGate cd45_gate:cd62_gate
drpreeti3628 commented 3 years ago

Thanks @mikejiang and @gfinak it worked.

I leveraged 2 single gates followed by refGate and it gave me accurate results.

Thank you so much