Topic: Open multiple spectra
Hi mMass and Martin.
Thanks for a great program! You beat the best. :-)
I finally figured out to convert our Bruker fid with CompassXport to mzXML, so I can do analysis other places. And mMass is great. (Big fan)
But:
I miss a feature to open multiple files from a folder, and subfolders.
I miss a feature to group spectra together. :-) (From the same spot on the target plate)
I miss a feature to make a sequence possible for all loaded spectra.
And last, I would be happy for a way to rename the files with "Dirname/../../." instead of "Dirname/."
, since that is how Bruker auto-organize files.
I have tried to make a little script, that opens multiple files.
-------------------------
import subprocess, os, re, time
mMass = r'C:\Program Files (x86)\mMass\mmass.exe'
matches = []
img_re = re.compile(r'.+\.(mzXML|mzML)$', re.IGNORECASE)
for root, dirnames, filenames in os.walk(os.getcwd()):
matches.extend(os.path.join(root, name) for name in filenames if img_re.match(name))
subprocess.Popen("%s %s" % (mMass, matches[0]))
time.sleep(3)
for match in matches[1:7]:
subprocess.Popen("%s %s" % (mMass, match))
time.sleep(1)
print match
-------------------------
Then: python.exe open_files.py
But it is possible to make a makro plugin for the msprogram?
I also read that you could send the file to a port 65456.
Is that possible with some settings of spectre name?
Best
Troels
Thanks!