TASBE / TASBEFlowAnalytics

Flow cytometry unit conversion and analytics
Other
7 stars 8 forks source link

Range Filter Scatter Plot #533

Closed hgscott closed 2 years ago

hgscott commented 2 years ago

This code generates a gating scatter plot comparable to the Automatic Gate plots, with a red rectangle highlighting the region selected by the range filter.

This required the blankfile to be passed to the Range Filter constructor as well as the filter information.

The plot is saved in the specified plot folder with the file name RangeFilter-{channel name}-vs-{channal name}.

This does not return the handle of the scatter plot for further customization- that will be submitted in the next pull request.

Example use:

blankfile = DataFile('fcs', 'L-1A.fcs');
filter = {'FSC-A', [3.5 4.5], 'SSC-A', [0.75 2.5]};
RF = RangeFilter(blankfile, filter{1}, 10.^filter{2}, filter{3}, 10.^filter{4});

Will generate the following plot: RangeFilter-FSC-A-vs-SSC-A