Code Monkey home page Code Monkey logo

Comments (7)

mfleisch avatar mfleisch commented on June 3, 2024 2

With the latest release we introduce a command line parameter (--allow-ms1-only) that allows you to import data without MS/MS to run SIRIUS. It handles the TreeScore appropriately and uses only the IsotopeScore for ranking if no MS/MS is available.

from sirius.

wkumler avatar wkumler commented on June 3, 2024 1

I'm jumping in on this thread because I recently figured out this integration and thought I should share. I've been using R with SIRIUS for a while, but only recently updated to the latest version to get decomp. Now my formula decomposition workflow looks something like this:

mzs <- c(60.081324, 76.039854, 76.076239, 88.987485, 90.055504)

sirius_cmd <- paste0('sirius --noCite decomp',
                     ' --mass=', paste(mzs, collapse = ","),
                     ' --ppm=50',
                     ' --elements=CHNOPS')
sirius_output <- system(sirius_cmd, intern = TRUE)
sirius_output <- sirius_output[!grepl(pattern = "INFO", sirius_output)]
read.table(text = sirius_output, header = TRUE)

SIRIUS needs to be added to PATH for this to work, or you can specify the full path to the sirius.exe file. There's a bit of a startup cost to running it this way especially relative to Rdisop, so I'll usually pass it as many masses as possible at once.

Also @jorainer I've had some luck using SIRIUS with MS1 only by giving it the base MS1 peak as a single "MS2" scan. The .mgf files I write out from within R look like this:

BEGIN IONS
PEPMASS=60.0815010220745
MSLEVEL=1
CHARGE=1+
60.0815010220745 1247721.61759463
END IONS

BEGIN IONS
PEPMASS=60.0815010220745
MSLEVEL=2
CHARGE=1+
60.0815010220745 1247721.61759463
END IONS

and you can include additional isotope envelope things in the MS1 and leave the base peak as the only MS2 entry. SIRIUS doesn't seem to complain and I assume this is fine for the purposes of getting a chemical formula from a mass given an isotopic envelope, but someone here is welcome to correct me because I'm unfamiliar with the theory behind the magic.

from sirius.

mfleisch avatar mfleisch commented on June 3, 2024

Hey Johannes,
there is not much SIRIUS can do without MS/MS.

The only thing that would be possible is decomposing the precursor mass and scoring the resulting formula candidates
with the isotope pattern scoring.
All other methods rely on fragmentation trees, which need the MS/MS.

The mass decomposition is already available via the decomp standalone sub-command.
Isotope pattern scoring is currently not available for MS1 only data.

If this is something you would like to use from R we can make this available with the next build.

from sirius.

jorainer avatar jorainer commented on June 3, 2024

Thanks for the feedback!

IMHO it would be great to have this MS1-only formula prediction also available. Less for the real annotation processes, but I'm thinking of eventually improving the alignment and/or correspondence analysis in xcms based on that (or use it for quality assessment of the grouped chromatographic peaks across samples). We could also use Rdisop for that, but would be good to have an alternative - and it would be a first simple use case for the integration of SIRIUS tools into our R workflows.

Is the decomp already available or is this what you would make available next build?

from sirius.

jorainer avatar jorainer commented on June 3, 2024

That sounds great! Thanks for sharing this @wkumler (and sorry for my extremely late reply)!

Please also have a look at this @andreavicini

from sirius.

mfleisch avatar mfleisch commented on June 3, 2024

Nice workaround! Just be aware that the TreeScore which is part of the SiriusScore might be unreliable without MS/MS.
I would suggest to only use the IsotopeScore to rank the candidates.

from sirius.

mfleisch avatar mfleisch commented on June 3, 2024

Fixed with version 4.9.0

Feel free to reopen if this does not solve the issue.

from sirius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.