Closed jonathanstathakis closed 1 year ago
Hi @OctaneOolong, Thanks for posting this issue. Did you download chromConverter from CRAN? I think the first issue might actually be related to a bug that I already fixed. If you are running the CRAN version (v0.2.1), can you please try downloading the latest version of GitHub and let me know if it resolves the issue with the paths? (You will need to refresh your R session after reinstalling the package).
I'm not sure what's going on with the other error message when you try to run the command line OpenChrom directly from the terminal, but I agree that it seems like a bad sign. Does the OpenChrom GUI load correctly on your computer?
Here's what I get when I run the help command:
<<<< EncryptedJarClassLoader created >>>>
----------------------------------------------------------------------------------
Product Initializiation: org.eclipse.chemclipse.logging.support.Settings
Workspace Path: /Users/ethanbass/OpenChrom/1.5.x
System Path: /Users/ethanbass/.openchrom/1.5.x
System Method Path: /Users/ethanbass/.openchrom/1.5.x/methods
System Configuration Path: /Users/ethanbass/.openchrom/1.5.x/configurations
System Plugins Path: /Users/ethanbass/.openchrom/1.5.x/plugins
----------------------------------------------------------------------------------
[Start Level: Equinox Container: f174527d-0fa0-4941-99d5-2f3e0e13fddc] INFO org.eclipse.chemclipse.support.internal.ConfigReader - Reading global plugins from /Users/ethanbass/.openchrom/1.5.x/plugins
[Start Level: Equinox Container: f174527d-0fa0-4941-99d5-2f3e0e13fddc] INFO org.eclipse.chemclipse.support.internal.ConfigReader - Reading static config files from /Users/ethanbass/.openchrom/1.5.x/configurations
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:71) Command Line Processor Options
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -peakidentbatchfile Automate the peak integration and identification.
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -batchfile Automate the processing of batch files.
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -importMSD Add a chromatogram (MSD) to the processing context.
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -importCSD Add a chromatogram (CSD) to the processing context.
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -importWSD Add a chromatogram (WSD) to the processing context.
INFO main support.ApplicationSupportCLI.<init> (ApplicationSupportCLI.java:73) Option: -method Applies the given method to all current chromatograms.
Edit: I did a little more investigating and the logger error you're getting appears to have been introduced in OpenChrom 1.5. It was not present in the previous version (1.4.x), which I was still running on my computer. This error seems to prevent the OpenChrom command line application from printing any output to the console, but it is still able to run and convert files. Most of the output is very hard to interpret anyway, so this probably isn't such a big deal (though it could be useful for debugging).
Hi Ethan, thank you for your response. I did download it from CRAN, and after following your advice, I was able to get it working. Glad you'd already nipped that bug in the bud, and thank you for investigating the openChrom CLI behavior as well. I'll close this issue now, thanks for your great work!
Glad to hear you got it working! One of these days i will get it together to update the package on CRAN. I'm not sure exactly what kind of files you're trying to read, but I also just added a new parsers for agilent .ch (version 130) files to the package, you might be interested in checking out. You can access it with `read_chroms(paths=<>, parser="chemstation_ch").
Apologies in advance, this is my first time posting a issue on GitHub. I am trying to use
read_chroms()
to convert Agilent.ch
WSD files to.csv
, however I cannot getread_chroms()
to find theopenchrom
executable. Alsoopenchrom
CLI is not behaving as expected.OS: MacOS Ventura 13.1
Environment: R interpreter in zsh.
Executing:
Produces the following error dialog:
Then running it again produces a different message:
Manually setting up OpenChrom CLI and running
./openchrom -nosplash -cli --help
results in an error message as below, instead of the help dialog:Which I don't think is a good thing.
Investigating the openchrom path, I found that
../chromConverter/shell/path_to_openchrom_commandline.txt
contained
/Applications/Eclipse.app/contents/MacOS/openchrom
the path I initally inputted, so that's behaving as expected, however I'm not sure why
read_chrom()
is looking in a different path. Any help would be appreciated.