Skip to content

FlowKit imports FlowJo gates made on compensated channels with the uncompensated channels #265

@hbhargava7

Description

@hbhargava7

Describe the bug

If you create a gate on the compensated version of a channel in FlowJo (e.g. Comp-APC-A), and then get the gate via wsp.get_gate(sid, 'gate_name'), it uses the uncompensated version of the channels

Code To Reproduce
Code to reproduce the behavior:

import flowkit as fk
wsp = fk.Workspace(flowjo_path, find_fcs_files_from_wsp=True)
wsp.get_gate(sid, 'gate_name').get_dimension_ids()
>['APC-Cy7-A', 'APC-A']

but it should be

['Comp-APC-Cy7-A', 'Comp-APC-A']

get_gate_events returns events from the uncompensated channels too, regardless of whether source is passed as raw or comp.

get_gate_events also does not include the compensated channels, only the raw channels. However, wsp.get_transforms(sid) includes the compensated channels.

Expected behavior
The above code should return
['Comp-APC-Cy7-A', 'Comp-APC-A']

get_gate_events returns events from the uncompensated channels too, regardless of whether source is passed as raw or comp.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Tahoe 26.1
  • Python version 3.11.13
  • FlowKit version 1.2.3

Additional context
Add any other context about the problem here. Include traceback here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions