pyahmed / PyCORN

A script to extract data from ÄKTA/UNICORN result-files (.res)
46 stars 25 forks source link

Support UNICORN 7 Result Files #13

Closed kvr2007 closed 7 years ago

kvr2007 commented 7 years ago

.res files supported by the script are generated by UNICORN 5, however, starting from UNICORN 7 the native format for result export is a .zip archive with some *.xml files and data containers. Would it be possible to support these, too? I would be happy to provide a sample file :)

pyahmed commented 7 years ago

I added support for the zip archives in v0.17 - try to update to that version. It should just work. I had only zip files from UNICORN 6 to test. If files from v7 are much different - then yes samples will be helpful :-)

kvr2007 commented 7 years ago

Cool, thanks for the information! I'll check the newest version with my data and report back.

kvr2007 commented 7 years ago

Ok, I checked the basic functionality, plotting, export to .csv and .xlsx and editing various plot parameters work as expected. I had an error for parameters -u, -n and -t, and the output in all cases looked approximately like this:

Chromatogram {'FormatVersion': '6', 'UNICORNVersion': '6.4.1.345'} added - orig data added - orig data added - orig data Traceback (most recent call last): File "./pycorn/pycorn-bin.py", line 390, in main2() File "./pycorn/pycorn-bin.py", line 381, in main2 fdata.showheader() AttributeError: 'pc_uni6' object has no attribute 'showheader'

Apparently, these just have not been implemented yet, which is not a big deal anyway :-) I guess I can close the issue now?

Thank you for this great script, i was looking for something like this for a quite a while!

pyahmed commented 7 years ago

Yeah.. support for zip-bundles is a bit of a hack. One day I might get around to fix the remaining things - until then, closed :-)