Skip to content

import FJ .wsp files with 'CurlyQuad' gates #251

@phbradley

Description

@phbradley

Hi there, thank you for this great package, to which I am confess I am very new. Feel free to close this issue if it is not a prioriry-- I see that the README clearly states "limited support for FJ workspace files"!

Anyhow, I have been able to read almost all of the FlowJo workspace files I've tried, except for two, which both failed with this error:

File ~/envs/flowkit/lib/python3.11/site-packages/flowkit/_utils/wsp_utils.py:259, in _parse_population_node(pop_el, parent_id, gating_ns, data_type_ns)
256 # determine gate type
257 # TODO: this string parsing seems fragile, may need to be shored up
258 gate_type = gate_child_el.tag.partition('}')[-1]
--> 259 gate_class = wsp_gate_constructor_lut[gate_type]
261 # Lookup 'eventsInside' attribute value, determines whether gate results
262 # should within the gate area or outside (i.e. the gate's complement).
263 # The value is a text string of an integer: '1' for events inside,
264 # '0' for events outside.
265 try:

KeyError: 'CurlyQuad'

It looks like this is some particular kind of gate type which is not recognized, hence this issue. Again, thought, I totally understand if this is not a priority. Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions