Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write fcs function #50

Open
mbuttner opened this issue Sep 6, 2023 · 3 comments
Open

Write fcs function #50

mbuttner opened this issue Sep 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@mbuttner
Copy link
Collaborator

mbuttner commented Sep 6, 2023

Pytometry should include a function to export an anndata file to fcs using the Gating ML 2.0 version and FCS standard 3.*

@mbuttner mbuttner added the enhancement New feature or request label Sep 6, 2023
@quentinblampey
Copy link
Contributor

quentinblampey commented May 7, 2024

In scyan, there is this write_fcs function that we could move to pytometry
But it uses fcswrite internally, and it seems this repository is not actively maintained, what do you think?

EDIT: we can also add this write_csv function, since FlowJO supports reading from CSV files

@grst
Copy link
Collaborator

grst commented May 7, 2024

A couple points from the discussion in scverse/governance#64:

  • There was some agreement that it makes sense to keep IO separate from the rest in readfcs. I'm sure they would be happy to include functions for writing FCS filese
  • Here it could make sense to either switch to @whitews's FlowIO package or use it as another backend in readfcs.
adata = readfcs.read("sample.fcs", backend="fcsparser")
adata = readfcs.read("sample.fcs", backend="flowio")
readfcs.write(adata, "sample.fcs", backend="flowio")
  • Or maybe to add support for AnnData directly in FlowIO?
pip install flowio[anndata]
adata = flowio.FlowData('sample.fcs').to_anndata()

@Zethson
Copy link
Member

Zethson commented Oct 18, 2024

Please let me know if someone wants write access to readfcs. I think that eventually renaming it to fcs-io would be even better then but one step after another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants