GithubHelp home page GithubHelp logo

Comments (2)

mobiusklein avatar mobiusklein commented on May 27, 2024

To accomplish this, you need to pass the ion mobility measure as part of the params list that most components take. The following is brain-compiled, so it may need to be adjusted but I don't think I'll have much time to answer in detail tomorrow.

"precursor_information": [ # note the enclosing list
    {
        "activation": [
            "beam-type collisional dissociation",
            {"collision energy": 25},
        ],
        "isolation_window": [quad_low, quad_mid, quad_high],
        "scan_id": last_precursor_scan_id,
        "selected_ion_list": [
            {
                "mz": quad_mid,
                "intensity": sum(intensity),
                "charge": 2,
                "params": [
                    {"inverse reduced ion mobility": mobility_value}
                ]
            }
        ],
    },
]

The ergonomics of building a precursor ion list are still really bad, in part because the way <precursorList> is substantially more complicated than regular DDA-MS2-focused tools need it to be. I added https://github.com/mobiusklein/psims/blob/master/psims/mzml/writer.py#L1124C19-L1124C19 which tries to make this easier, but merely ends up a little more terse, a little more opaque without much better documentation than I've had time to write as yet.

from psims.

jspaezp avatar jspaezp commented on May 27, 2024

Ohhh I see, thanks a lot for the reply! (It is by no means something critical so dont worry too much about it, just wanted to make sure I was not overlooking a part of the docs)

from psims.

Related Issues (17)

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.