How to open RAW folder via python script? #60
-
Hi. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Hey! ` import unidec_modules.data_reader as dr im = dr.DataImporter(path) spec1 = im.get_data(scan_range=[0, 0]) The data reader class will detect the file type and import it. It will import the ThermoDataImporter class from unidec_modules.thermo_reader.ThermoImporter.py. You can look at this file to see the various functions that can be called from the im variable above. Let me know how that goes! |
Beta Was this translation helpful? Give feedback.
-
Hi Michael I tried to process a RAW file, but I got an error. Could you check? UniDec Engine v.7.0.3 I checked spec1 data, and it looks OK
|
Beta Was this translation helpful? Give feedback.
-
Finally, I overcome this issue by storing data in the dictionary
|
Beta Was this translation helpful? Give feedback.
-
Hi Alex, One thing to note, we are about to release version 8, which has major changes to the importer. We restructured the whole thing to make it more consistent across file types, faster, and cleaner. For example, some data formats (Waters and Agilent) are indexed such that the first scan is scan 0. Thermo and mzML are indexed with the first scan as 1. In our new importer, we are using the Thermo/mzML model and doing 1 indexing on scans. The function names should also be much easier to understand now. You can preview some of the changes in the v3 branch. The importer will be located with: |
Beta Was this translation helpful? Give feedback.
-
Hi Michale, Best, |
Beta Was this translation helpful? Give feedback.
-
Hello Dr. Marty, Here's my code, based on previous suggestions in this thread: from unidec import engine eng=engine.UniDec() eng.process_data(spec) Error: ModuleNotFoundError: No module named 'unidec_modules' Can you help me locate this module if it has been moved? I'm using version 8.0.0. Thank you! |
Beta Was this translation helpful? Give feedback.
Hey!
Happy to help. Here's some example code:
`
path = "D:\Data\strep.RAW"
import unidec_modules.data_reader as dr
im = dr.DataImporter(path)
spec1 = im.get_data(scan_range=[0, 0])
`
The data reader class will detect the file type and import it. It will import the ThermoDataImporter class from unidec_modules.thermo_reader.ThermoImporter.py. You can look at this file to see the various functions that can be called from the im variable above. Let me know how that goes!
Thanks,
MTM