Comments (2)
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.
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)
- mzIdentML Usage Patterns HOT 5
- Binary string in IndexedMzML? HOT 5
- Recommended usage pattern for extracting & saving just header info from mzML HOT 2
- Error on exit from mzML HOT 10
- Specify version of CV to use? HOT 3
- Problem with writing precursor information HOT 2
- Compatibility with other tools HOT 7
- Multiple unit options are possible for parameter 'base peak intensity' but none were specified HOT 7
- NameError: name 'err' is not defined HOT 6
- Conda package HOT 3
- Update package metadata on PyPI? HOT 9
- Files not closing (was: Truncated files) HOT 8
- [Maintainance] Deprecation warnings for sqlalchemy 2.0 HOT 5
- (MzIdentMLWriter) register AttributeError HOT 3
- (MzIdentMLWriter) SpectrumIdentification.write TypeError missing positional argument xml_file HOT 3
- Import issues on Python 3.12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psims.