eyurtsev / fcsparser

A python parser for reading fcs files supporting FCS 2.0, 3.0, 3.1
MIT License
73 stars 43 forks source link

Save to fcs? #13

Open nodice73 opened 6 years ago

nodice73 commented 6 years ago

Hello,

I've been using your module and it is great. I was wondering if you plan to support saving back to fcs format, or if you have any recommendations for how to do this.

eyurtsev commented 6 years ago

I wasn't planning on adding support, but would happily merge any pull requests that add support for exporting fcs files. It's not very difficult to do -- you basically have to "reverse" the reading step

If you're interested in giving it a try I'd recommend reading the FCS 3.0 specification. You can use numpy built-ins to write the numeric data and then pre-pend the relevant header information to the file.

Then if the FCS reader can read the file it'll probably be readable by most other software

nodice73 commented 6 years ago

If you're interested in giving it a try I'd recommend reading the FCS 3.0 specification.

Should it be 3.0 or 3.1?

eyurtsev commented 6 years ago

I think either works -- the specifications are mostly backwards compatible if i remember correctly

julianeweller commented 5 years ago

Has this feature been implemented? I would love to use it!

eyurtsev commented 5 years ago

Nope -- we're open to PRs if you're interested in implementing it :)

paulmueller commented 5 years ago

Note that there is fcswrite (https://github.com/ZELLMECHANIK-DRESDEN/fcswrite/). It isn't feature complete (pull-requests welcome), but it should already be sufficient for most applications.