chhh / batmass

Mass spectrometry data visualization
https://batmass.org
Apache License 2.0
36 stars 8 forks source link

Spectra export #10

Open JB-MS opened 6 years ago

JB-MS commented 6 years ago

Hi there,

I was wondering if there is any possibility for export of spectra as e.g. svg or pdf? Is this feature planned?

Cheers, Johannes

rsalek commented 6 years ago

Good suggestion. I usually take a snapshot. but having such functionality would be nice.

chhh commented 6 years ago

All the viewers need to be overhauled significantly, I just don't have the time to do that. But it's definitely the plan.

JB-MS commented 6 years ago

I am definitely familiar with the time issue...

A bit unrelated, but i don't want to spam you with more issues: Is it (maybe quickly) possible to implement reading of gzipped files?

Cheers, Johannes

chhh commented 6 years ago

@JB-MS not really, for gzipped files a linear read through the whole file is required every time as you need to open a decompressing stream. The underlying reader library (mdftbx)[https://github.com/chhh/msftbx] doesn't support that as I originally didn't think everything through, it was made for random access. In the next iteration there will be 2 interfaces - for random access and for linear reads, then it will be possible.