whitews / FlowKit

A Python toolkit for flow cytometry analysis supporting GatingML and FlowJo workspaces

Home Page:https://flowkit.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for matrix-inverted-already attribute in GatingML

krcurtis opened this issue · comments

Is your feature request related to a problem? Please describe.
FlowKit does not appear to use the matrix-inverted-already flag in GatingML

Describe the solution you'd like
It would be nice if FlowKit could use an already inverted matrix. For example, the DIVA vendor specific XML files already include a compensation matrix, but it appears to be already inverted. I'd like to use their matrix as-is without going thru a matrix inversion to avoid adding more noise.

Describe alternatives you've considered
I can invert the matrix found in DIVA vendor specific files and not use the matrix-inverted-already flag when generating GatingML files to use with FlowKit

Additional context

Thanks for the feedback. I must have missed this option in the specification. I'll take a look at adding support for this. Any chance you can provide an example GatingML document that uses this?

-Scott

On-hold until I have an example GatingML file using matrix-inverted-already

I'm not sure if my request is useful anymore. I guess I'd suggest closing as "won't fix" until a more compelling use case comes up

I'm definitely open to supporting it, just need an example of a valid example Diva XML file using the matrix-inverted-already attribute, preferably with FCS files. I'll tag this as help wanted.

I'm a bit late to the party, but:

I'd like to use their matrix as-is without going thru a matrix inversion to avoid adding more noise.

Matrix inversions are basically exact up to a negligible numerical error, you'll lose nothing of relevance by inverting your spillover matrix a couple of times.