Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing configuration #145

Closed
hbckleikamp opened this issue Dec 6, 2023 · 1 comment
Closed

changing configuration #145

hbckleikamp opened this issue Dec 6, 2023 · 1 comment

Comments

@hbckleikamp
Copy link

Dear developers,

This is not really a bug, but I was wondering if you could help me.

I am using Sirius for molecular formuala prediction, and I want to be quite stringent with isotopic envelopes and enforce only [M+H]+ adducts. Each feature has a compound file: compound.config

Which lists certain parameters that I would like to edit globally before running formula prediction (for example):
AdductSettings.detectable = [M+H]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+H-H4O2]+,[M+NH4]+,[M-H]-,[M+Cl]-,[M-H2O-H]-,[M+Br]-
ms1.relativeIntensityError = 0.08

Should I add these in the sirius.bat file by adding a line that specifies these arguments in SIRIUS_OPTS?
@Rem Execute sirius
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %SIRIUS_OPTS% -classpath "%CLASSPATH%" "%MAIN_CLASS%" %*

Thanks,
Hugo.

mfleisch pushed a commit that referenced this issue Apr 15, 2024
Resolve "New project space for REST API"

Closes #161, #145, #149, #162, #160, #151, #34, #33, #32, #165, and #150

See merge request bright-giant/sirius/sirius-frontend!41
@mfleisch
Copy link
Contributor

mfleisch commented Sep 4, 2024

Hey Hugo,
i know it has been a while since this was asked.

There are two scenarios we have to deal with here:

  1. If your input data e.g. a mgf file already contains a specific adduct different from [M+H]+ for some features you would need to replace them in the input. But the question would be why would you do this since if the preprocessing assigned an adduct it is very likely that it is more reasonable than just guessing [M+H]+.

  2. the adduct in the input is unknown ( [M+?]+). In that case you need to change the detectable and fallback adduct parameter when calling the cli. This can be achieved by using the --adducts-considered parameter of the formula subtool.

I am closing this since it is likely already stale. Feel free to reopen if this does not answer the question.

@mfleisch mfleisch closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants