Tagged: scripting automating
2015/10/08 at 19:01 #1455
Is there a way to use a bash or matlab script to automate processing in jMRUI? I want to do some simple processing (zero-fill, hard-phase, apodize, and then save) numerous spectra, which can get seriously time consuming in the GUI. Is this possible and, if so, do you have any suggestions for getting started?
Thanks!2015/10/15 at 11:44 #1456
Do it once, save batch file (bottom right side of the screen).
Later run batch processing. (In Wizard bottom left ). Choose files to process, output directory and your batch file. Run it.
We are working on an improved version of batch processing, should be available quite soon.
Best regards2015/10/15 at 19:41 #1457
Hello! Thank you, that was very helpful. Doing batch processing the wizard completes, but I’m getting some where errors.
My process is : select .rda file, batch file, and output directory.
My batch file is:
HARDPHASESIGNAL 4.1 0.0
APODIZE Gaussian 4.0
The script says zerofilling and hard phasing failed, but apodized worked.
I saved the batch file directly from the GUI, so I’m not sure why it isn’t processing correctly. Any help would be appreciated!2015/10/22 at 16:15 #1459
There was a small bug there. Already fixed.
Please find two jar files with plugins that were causing troubles. Replace the jar files directly in your jMRUI installation.2015/10/23 at 01:15 #1464
Apodize and Zerofilling worked! However, hardphase is still failing. Could this be the same problem with the jar file?
Thanks!2015/10/23 at 09:50 #1466
Which version of jMRUI are you using?
Please try this Download. It seems that nothing was changed recently in hardphase. If the problem persists please inform me.
MJ2015/10/23 at 18:57 #1467
I’m using version 5.2. Hardphase is working now, thanks!
The batch automatically outputs a file into the output directly as a .mrui file. I’ve been saving my files as .txt files so I can copy certain parts of the spectra into another template. Is there a way to save the output as a .txt file or convert the .mrui files to .txt files?
Thank you so much!2015/10/23 at 19:00 #1468
Just to clarify, the text file contains points on the spectra. I’m extracting one of the peaks from the spectra (just copy/pasting ~600 rows from column C in the .txt file that is generated). So, accessing these values from the .mrui file would also work. Any help would be appreciated!2016/04/08 at 18:07 #1585
I am having the same problem with HardPhaseAll and Zerofilling failing when running a batch script. I replaced the two plugins provided above and I am still having this problem. I am running jmrui v5.2 in Linux. I included the error message below. Additionally, the batch script doesn’t end properly so after each iteration, I need to manually quit the batch jmrui processing for the script to continue.
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory > HARDPHASEALL -77.9 2.386…
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory Failed!
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory > APODIZE Lorentzian 2.0…
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory Done!
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory > ZEROFILLING 1024…
08-Apr-2016 12:04:21 WARNING mrui.MruiLogger warning Plugin cannot be initialised for this command
at mrui.preprocessing.zerofilling.ZeroFillingPrepro.beginPreprocessing(Unknown Source)
at mrui.plugin.preprocessing.PreprocessingPlugin.defaultBatch(Unknown Source)
at mrui.preprocessing.zerofilling.ZeroFillingPrepro.batchPerform(Unknown Source)
at mrui.plugin.PluginManager.executeBatch(Unknown Source)
at mrui.history.Batch.executeLine(Unknown Source)
at mrui.history.Batch.runABatch(Unknown Source)
at mrui.history.Batch.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
08-Apr-2016 12:04:21 INFO mrui.history.BatchDialog appendTextToHistory Failed!2016/04/08 at 19:15 #1586
You’re using slightly different options for apodize and hardphase than I was. The plugins worked for me, but I selected Gaussian for apodize and I selected hardphase > signal individually. I would say that the new plug-ins may not work for those options. Otherwise, I would suggest deleting the two old plugs and pasting in the new ones again.
Also, are you using this in windows or in linux? I believe the new plugins didn’t work for me in linux, so I’ve been using JMRUI on my windows terminal where they do work.
For when the batch doesn’t stop, the way I planned on getting around this is to write in a wait command directly into the terminal, find the process id, and then kill that process after wait it done. This has been the only way I could figure out how to get around the batch freezing at the end.2016/04/11 at 16:59 #1587
Thanks for your reply, Amber. I am using Linux for the batch analysis. I had to make a new .sh file to run the jmruicl command, which does work, but it doesn’t do the preprocessing correctly.
Are there plugins that will enable batch pre/processing in Linux?2017/09/06 at 12:53 #2093
Has there been any further developments with on closing the cmd after the quantitation is it still done by introducing a pause with a wait and killing the process once it’s done?
You must be logged in to reply to this topic.