mascope-opentfraw 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. mascope_opentfraw-1.2.0/CHANGELOG.md +177 -0
  2. mascope_opentfraw-1.2.0/Cargo.lock +307 -0
  3. mascope_opentfraw-1.2.0/Cargo.toml +24 -0
  4. mascope_opentfraw-1.2.0/LICENSE +173 -0
  5. mascope_opentfraw-1.2.0/NOTICE +26 -0
  6. mascope_opentfraw-1.2.0/PKG-INFO +102 -0
  7. mascope_opentfraw-1.2.0/README.md +79 -0
  8. mascope_opentfraw-1.2.0/crates/opentfraw/Cargo.toml +22 -0
  9. mascope_opentfraw-1.2.0/crates/opentfraw/README.md +79 -0
  10. mascope_opentfraw-1.2.0/crates/opentfraw/examples/dump.rs +336 -0
  11. mascope_opentfraw-1.2.0/crates/opentfraw/examples/to_mzml.rs +108 -0
  12. mascope_opentfraw-1.2.0/crates/opentfraw/src/audit_tag.rs +32 -0
  13. mascope_opentfraw-1.2.0/crates/opentfraw/src/bytes.rs +29 -0
  14. mascope_opentfraw-1.2.0/crates/opentfraw/src/device.rs +408 -0
  15. mascope_opentfraw-1.2.0/crates/opentfraw/src/error.rs +30 -0
  16. mascope_opentfraw-1.2.0/crates/opentfraw/src/error_log.rs +18 -0
  17. mascope_opentfraw-1.2.0/crates/opentfraw/src/generic_data.rs +290 -0
  18. mascope_opentfraw-1.2.0/crates/opentfraw/src/header.rs +64 -0
  19. mascope_opentfraw-1.2.0/crates/opentfraw/src/lib.rs +31 -0
  20. mascope_opentfraw-1.2.0/crates/opentfraw/src/mzml.rs +595 -0
  21. mascope_opentfraw-1.2.0/crates/opentfraw/src/raw_file_info.rs +167 -0
  22. mascope_opentfraw-1.2.0/crates/opentfraw/src/reader.rs +1590 -0
  23. mascope_opentfraw-1.2.0/crates/opentfraw/src/run_header.rs +134 -0
  24. mascope_opentfraw-1.2.0/crates/opentfraw/src/sample_info.rs +82 -0
  25. mascope_opentfraw-1.2.0/crates/opentfraw/src/scan_data.rs +539 -0
  26. mascope_opentfraw-1.2.0/crates/opentfraw/src/scan_event.rs +425 -0
  27. mascope_opentfraw-1.2.0/crates/opentfraw/src/scan_filter.rs +425 -0
  28. mascope_opentfraw-1.2.0/crates/opentfraw/src/scan_format.rs +70 -0
  29. mascope_opentfraw-1.2.0/crates/opentfraw/src/scan_index.rs +64 -0
  30. mascope_opentfraw-1.2.0/crates/opentfraw/src/seq_row.rs +95 -0
  31. mascope_opentfraw-1.2.0/crates/opentfraw/src/types.rs +330 -0
  32. mascope_opentfraw-1.2.0/crates/opentfraw/tests/conformance.rs +39 -0
  33. mascope_opentfraw-1.2.0/crates/opentfraw-py/Cargo.toml +31 -0
  34. mascope_opentfraw-1.2.0/crates/opentfraw-py/README.md +79 -0
  35. mascope_opentfraw-1.2.0/crates/opentfraw-py/src/lib.rs +451 -0
  36. mascope_opentfraw-1.2.0/pyproject.toml +37 -0
@@ -0,0 +1,177 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [1.2.0] - 2026-06-17
11
+
12
+ Karsa fork release, published to PyPI as `mascope-opentfraw` (imported as
13
+ `opentfraw`). Bundles the additions and fixes below; each is also opened upstream
14
+ as a pull request (see `NOTICE`). This release exists to make the features
15
+ available ahead of an upstream release and will be retired once they land
16
+ upstream.
17
+
18
+ ### Added
19
+
20
+ - Per-peak FT label data decoding for PacketHeader scans. The previously
21
+ skipped descriptor / unknown / triplet streams are now decoded:
22
+ `ScanDataPacket` gains `resolutions` (per-peak resolution) and
23
+ `noise_nodes` (the noise-vs-m/z function), plus `noise_at(mz)` to
24
+ interpolate per-peak noise/baseline. New `RawFileReader::read_scan_labels`
25
+ reads peaks + labels while skipping the profile signal, and the Python
26
+ binding exposes `RawFile.centroid_labels(scan_number)` returning
27
+ `mz`/`intensity`/`resolution`/`noise`/`baseline`/`signal_to_noise` arrays.
28
+ - `RawFile.profile(scan_number)` (Python): returns the raw profile spectrum as
29
+ `(mz, intensity)` NumPy arrays, converting the frequency-domain bins via the
30
+ scan event's calibration coefficients. The Rust core already decoded profile
31
+ data (`ScanDataPacket.profile`, `Profile::to_mz_intensity`); this exposes it to
32
+ Python, which previously surfaced centroids only.
33
+ - `RawFile.scan_parameters(scan_number)` (Python): returns the per-scan generic
34
+ ("trailer") parameters as a `{label: value}` dict (or `None`), mirroring the
35
+ vendor reader's trailer-extra information. Keys are the instrument's own
36
+ labels (e.g. `"HCD Energy V:"`, `"MS2 Isolation Width:"`); values keep their
37
+ stored type. The Rust core already decoded these (`scan_parameters` /
38
+ `GenericRecord`); this surfaces them to Python.
39
+
40
+ ### Fixed
41
+
42
+ - Orbitrap Exploris scan events: the frequency->m/z calibration coefficients
43
+ and the MS2 precursor m/z are now decoded. The nparam/coefficients block is
44
+ read immediately after the scan-window FractionCollector (offset 80 for the
45
+ offset-64 FC family) instead of a fixed `body_size - 64`, which missed it on
46
+ Exploris (body_size 136) and left the profile m/z mis-converted. Dependent
47
+ MS2 scans whose reaction record starts at body offset 4 (Exploris) now have
48
+ their precursor m/z and activation energy recovered. Q Exactive / Fusion
49
+ decoding is unchanged.
50
+
51
+ ## [1.1.0] - 2026-05-31
52
+
53
+ ### Added
54
+
55
+ - `CITATION.cff`: author identity (Nathan Riley + ORCID) and a
56
+ scaffolded `identifiers:` block ready for the Zenodo concept DOI.
57
+ - `CONTRIBUTING.md`.
58
+ - Docusaurus build job in CI.
59
+
60
+ ### Changed
61
+
62
+ - **Panic surface eliminated (WP17).** Parsers no longer call
63
+ `unwrap()` in production code: a new `bytes` helper module
64
+ (`read_u32/f64_le`) returns `Error::UnexpectedEof { offset,
65
+ needed }`, and a `find_map` closure now uses `.ok()?` to preserve
66
+ `Option`. Library crate carries
67
+ `#![cfg_attr(not(test), warn(clippy::unwrap_used,
68
+ clippy::expect_used))]`.
69
+ - Manifest hygiene (WP13): `homepage` set to <https://sigilweaver.app>
70
+ and `documentation` link added.
71
+ - README badge block unified across the Sigilweaver portfolio.
72
+
73
+ ## [1.0.6] - 2026-05-21
74
+
75
+ ### Changed
76
+
77
+ - Depend on `openproteo-core = "1.0.0"` (was `0.1.0`, yanked).
78
+ - MSRV bumped from 1.75 to 1.85 (tracks `openproteo-core 1.0.0`).
79
+
80
+ ## [1.0.5] - 2026-05-18
81
+
82
+ ### Changed
83
+
84
+ - Depend on `openproteo-core = "0.1.0"` from crates.io (no source change;
85
+ workspace dependency now carries an explicit registry version so the
86
+ crate can be published).
87
+ - `SECURITY.md` added; coordinated-disclosure contact documented.
88
+
89
+ ## [1.0.4] - 2026-05-17
90
+
91
+ ### Changed
92
+
93
+ - Restructured to a Cargo workspace layout. The library crate is now at
94
+ `crates/opentfraw/` and the Python bindings crate at
95
+ `crates/opentfraw-py/`. The `pyproject.toml` is now at the repository
96
+ root. No public API changes.
97
+
98
+ ## [1.0.3] - 2026-05-17
99
+
100
+ ### Fixed
101
+
102
+ - `python/pyproject.toml`: revert `readme` to `"README.md"` and restore
103
+ `python/README.md` stub. Maturin sdist packaging prohibits `..` in
104
+ archive paths, causing the 1.0.2 sdist build to fail on CI.
105
+
106
+ ## [1.0.2] - 2026-05-17
107
+
108
+ ### Changed
109
+
110
+ - Docs and source comments: replace em-dashes, en-dashes, smart quotes,
111
+ and ellipsis characters with ASCII equivalents.
112
+
113
+ ## [1.0.1] - 2026-05-17
114
+
115
+ ### Changed
116
+
117
+ - README: standardize structure and docs link format (consistent with
118
+ OpenTimsTDF and OpenWRaw).
119
+
120
+ ## [1.0.0] - 2026-05-17
121
+
122
+ First stable release. The public API of `opentfraw` is now considered
123
+ stable and will follow semantic versioning. Format coverage is unchanged
124
+ from 0.1.0 (LTQ FT, Q Exactive HF, Orbitrap Fusion Lumos, Orbitrap
125
+ Exploris 480, TSQ Vantage, TSQ Quantiva, TSQ Altis).
126
+
127
+ ### Added
128
+
129
+ - `ATTRIBUTION.md` (replaces `CREDITS.md`): tracks third-party notices for
130
+ bundled data and vendored code.
131
+ - `publish.yml` GitHub Actions workflow: publishes the `opentfraw` crate
132
+ to crates.io and the Python wheel to PyPI via OIDC Trusted Publishing
133
+ on every `v*` tag push.
134
+
135
+ ### Changed
136
+
137
+ - CI migrated from WarpBuild runners to standard GitHub-hosted
138
+ (`ubuntu-latest`, `macos-latest`, `windows-latest`).
139
+ - Removed the `tools/` vendor SDK tree and `corpus/mzml/` binary corpus
140
+ from repository history (git history rewritten; total size reduced from
141
+ ~1.5 GB to ~660 KB).
142
+ - Removed "Pure-Rust" marketing language from `README.md` and related
143
+ documentation (Python bindings use PyO3/maturin which pulls in a C
144
+ compiler at build time).
145
+ - Renamed `CREDITS.md` to `ATTRIBUTION.md`.
146
+
147
+ ## [0.1.0] - 2026-05-16
148
+
149
+ ### Added
150
+
151
+ - Rust parser for the Thermo Fisher RAW mass spectrometry file
152
+ format, no native or system dependencies.
153
+ - Reader API for top-level structures: `FileHeader`, `AuditTag`,
154
+ `SeqRow`, `InjectionData`, `ASInfo`, `RawFileInfo`, `InstID`,
155
+ `RunHeader`, `SampleInfo`.
156
+ - Per-scan API: scan-index entries, packet headers, profile chunks,
157
+ centroid peaks, scan events, scan parameters (generic records).
158
+ - Error log and instrument log decoders.
159
+ - Robust instrument-model detection via byte scan.
160
+ - Frequency-to-m/z conversion using the per-segment calibration table.
161
+ - `examples/dump.rs`: dump the contents of a RAW file as plain text.
162
+ - `examples/to_mzml.rs`: convert a RAW file to mzML (centroid or
163
+ profile; optionally indexed).
164
+ - Validated against ProteoWizard `msconvert` mzML output for a
165
+ multi-instrument PRIDE corpus (LTQ FT, Q Exactive HF, Orbitrap
166
+ Fusion Lumos, Orbitrap Exploris 480, TSQ Vantage, TSQ Quantiva,
167
+ TSQ Altis).
168
+ - Optional Python bindings (`opentfraw-py`, not published to crates.io).
169
+ - Format specification under `docs/docs/format/`.
170
+
171
+ ### Out of scope
172
+
173
+ - Methods file (`MethodFile`) deep parse beyond byte-level layout.
174
+
175
+ [1.0.1]: https://github.com/Sigilweaver/OpenTFRaw/releases/tag/v1.0.1
176
+ [1.0.0]: https://github.com/Sigilweaver/OpenTFRaw/releases/tag/v1.0.0
177
+ [0.1.0]: https://github.com/Sigilweaver/OpenTFRaw/releases/tag/v0.1.0
@@ -0,0 +1,307 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
10
+
11
+ [[package]]
12
+ name = "cfg-if"
13
+ version = "1.0.4"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
16
+
17
+ [[package]]
18
+ name = "heck"
19
+ version = "0.5.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
22
+
23
+ [[package]]
24
+ name = "indoc"
25
+ version = "2.0.7"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
28
+ dependencies = [
29
+ "rustversion",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "libc"
34
+ version = "0.2.186"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
37
+
38
+ [[package]]
39
+ name = "matrixmultiply"
40
+ version = "0.3.10"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
43
+ dependencies = [
44
+ "autocfg",
45
+ "rawpointer",
46
+ ]
47
+
48
+ [[package]]
49
+ name = "memoffset"
50
+ version = "0.9.1"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
53
+ dependencies = [
54
+ "autocfg",
55
+ ]
56
+
57
+ [[package]]
58
+ name = "ndarray"
59
+ version = "0.16.1"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
62
+ dependencies = [
63
+ "matrixmultiply",
64
+ "num-complex",
65
+ "num-integer",
66
+ "num-traits",
67
+ "portable-atomic",
68
+ "portable-atomic-util",
69
+ "rawpointer",
70
+ ]
71
+
72
+ [[package]]
73
+ name = "num-complex"
74
+ version = "0.4.6"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
77
+ dependencies = [
78
+ "num-traits",
79
+ ]
80
+
81
+ [[package]]
82
+ name = "num-integer"
83
+ version = "0.1.46"
84
+ source = "registry+https://github.com/rust-lang/crates.io-index"
85
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
86
+ dependencies = [
87
+ "num-traits",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "num-traits"
92
+ version = "0.2.19"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
95
+ dependencies = [
96
+ "autocfg",
97
+ ]
98
+
99
+ [[package]]
100
+ name = "numpy"
101
+ version = "0.22.1"
102
+ source = "registry+https://github.com/rust-lang/crates.io-index"
103
+ checksum = "edb929bc0da91a4d85ed6c0a84deaa53d411abfb387fc271124f91bf6b89f14e"
104
+ dependencies = [
105
+ "libc",
106
+ "ndarray",
107
+ "num-complex",
108
+ "num-integer",
109
+ "num-traits",
110
+ "pyo3",
111
+ "rustc-hash",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "once_cell"
116
+ version = "1.21.4"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
119
+
120
+ [[package]]
121
+ name = "openproteo-core"
122
+ version = "1.0.0"
123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
124
+ checksum = "146dc3bf28847e5595ec445d324adaabee034da88936ee4409432542f418ba76"
125
+ dependencies = [
126
+ "thiserror",
127
+ ]
128
+
129
+ [[package]]
130
+ name = "opentfraw"
131
+ version = "1.2.0"
132
+ dependencies = [
133
+ "openproteo-core",
134
+ "thiserror",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "opentfraw-py"
139
+ version = "1.2.0"
140
+ dependencies = [
141
+ "numpy",
142
+ "opentfraw",
143
+ "pyo3",
144
+ ]
145
+
146
+ [[package]]
147
+ name = "portable-atomic"
148
+ version = "1.13.1"
149
+ source = "registry+https://github.com/rust-lang/crates.io-index"
150
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
151
+
152
+ [[package]]
153
+ name = "portable-atomic-util"
154
+ version = "0.2.7"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
157
+ dependencies = [
158
+ "portable-atomic",
159
+ ]
160
+
161
+ [[package]]
162
+ name = "proc-macro2"
163
+ version = "1.0.106"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
166
+ dependencies = [
167
+ "unicode-ident",
168
+ ]
169
+
170
+ [[package]]
171
+ name = "pyo3"
172
+ version = "0.22.6"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
175
+ dependencies = [
176
+ "cfg-if",
177
+ "indoc",
178
+ "libc",
179
+ "memoffset",
180
+ "once_cell",
181
+ "portable-atomic",
182
+ "pyo3-build-config",
183
+ "pyo3-ffi",
184
+ "pyo3-macros",
185
+ "unindent",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "pyo3-build-config"
190
+ version = "0.22.6"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
193
+ dependencies = [
194
+ "once_cell",
195
+ "target-lexicon",
196
+ ]
197
+
198
+ [[package]]
199
+ name = "pyo3-ffi"
200
+ version = "0.22.6"
201
+ source = "registry+https://github.com/rust-lang/crates.io-index"
202
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
203
+ dependencies = [
204
+ "libc",
205
+ "pyo3-build-config",
206
+ ]
207
+
208
+ [[package]]
209
+ name = "pyo3-macros"
210
+ version = "0.22.6"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
213
+ dependencies = [
214
+ "proc-macro2",
215
+ "pyo3-macros-backend",
216
+ "quote",
217
+ "syn",
218
+ ]
219
+
220
+ [[package]]
221
+ name = "pyo3-macros-backend"
222
+ version = "0.22.6"
223
+ source = "registry+https://github.com/rust-lang/crates.io-index"
224
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
225
+ dependencies = [
226
+ "heck",
227
+ "proc-macro2",
228
+ "pyo3-build-config",
229
+ "quote",
230
+ "syn",
231
+ ]
232
+
233
+ [[package]]
234
+ name = "quote"
235
+ version = "1.0.45"
236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
237
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
238
+ dependencies = [
239
+ "proc-macro2",
240
+ ]
241
+
242
+ [[package]]
243
+ name = "rawpointer"
244
+ version = "0.2.1"
245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
246
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
247
+
248
+ [[package]]
249
+ name = "rustc-hash"
250
+ version = "1.1.0"
251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
252
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
253
+
254
+ [[package]]
255
+ name = "rustversion"
256
+ version = "1.0.22"
257
+ source = "registry+https://github.com/rust-lang/crates.io-index"
258
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
259
+
260
+ [[package]]
261
+ name = "syn"
262
+ version = "2.0.117"
263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
264
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
265
+ dependencies = [
266
+ "proc-macro2",
267
+ "quote",
268
+ "unicode-ident",
269
+ ]
270
+
271
+ [[package]]
272
+ name = "target-lexicon"
273
+ version = "0.12.16"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
276
+
277
+ [[package]]
278
+ name = "thiserror"
279
+ version = "2.0.18"
280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
281
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
282
+ dependencies = [
283
+ "thiserror-impl",
284
+ ]
285
+
286
+ [[package]]
287
+ name = "thiserror-impl"
288
+ version = "2.0.18"
289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
290
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
291
+ dependencies = [
292
+ "proc-macro2",
293
+ "quote",
294
+ "syn",
295
+ ]
296
+
297
+ [[package]]
298
+ name = "unicode-ident"
299
+ version = "1.0.24"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
302
+
303
+ [[package]]
304
+ name = "unindent"
305
+ version = "0.2.4"
306
+ source = "registry+https://github.com/rust-lang/crates.io-index"
307
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
@@ -0,0 +1,24 @@
1
+ [workspace]
2
+ resolver = "2"
3
+ members = ["crates/opentfraw", "crates/opentfraw-py"]
4
+
5
+ [workspace.package]
6
+ version = "1.2.0"
7
+ edition = "2021"
8
+ rust-version = "1.85"
9
+ authors = ["Nathan Riley <git@nathanriley.com>"]
10
+ license = "Apache-2.0"
11
+ repository = "https://github.com/Sigilweaver/OpenTFRaw"
12
+ homepage = "https://sigilweaver.app/opentfraw/"
13
+ documentation = "https://sigilweaver.app/opentfraw/docs/"
14
+ keywords = ["mass-spectrometry", "thermo", "raw", "proteomics", "orbitrap"]
15
+ categories = ["parser-implementations", "science"]
16
+
17
+ [workspace.dependencies]
18
+ opentfraw = { path = "crates/opentfraw" }
19
+ openproteo-core = "1.0.0"
20
+ pyo3 = { version = "0.22", features = ["extension-module", "abi3-py38"] }
21
+ numpy = "0.22"
22
+
23
+ [workspace.lints.rust]
24
+ unsafe_code = "forbid"
@@ -0,0 +1,173 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright 2026 Sigilweaver Holdings LLC
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but not
34
+ limited to compiled object code, generated documentation, and
35
+ conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship made available under the
38
+ License, as indicated by a copyright notice that is included in or
39
+ attached to the work (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other
44
+ modifications represent, as a whole, an original work of authorship.
45
+ For the purposes of this License, Derivative Works shall not include
46
+ works that remain separable from, or merely link (or bind by name)
47
+ to the interfaces of, the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
50
+ in the Work by the copyright owner or by an individual or Legal Entity
51
+ authorized to submit on behalf of the copyright owner, any original
52
+ work of authorship, including the original version of the Work and any
53
+ modifications or additions to that Work or Derivative Works of the
54
+ Work.
55
+
56
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
57
+ whom a Contribution has been received by the Licensor and included
58
+ within the Work.
59
+
60
+ 2. Grant of Copyright License. Subject to the terms and conditions of
61
+ this License, each Contributor hereby grants to You a perpetual,
62
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
63
+ copyright license to reproduce, prepare Derivative Works of,
64
+ publicly display, publicly perform, sublicense, and distribute the
65
+ Work and such Derivative Works in Source or Object form.
66
+
67
+ 3. Grant of Patent License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ (except as stated in this section) patent license to make, have made,
71
+ use, offer to sell, sell, import, and otherwise transfer the Work,
72
+ where such license applies only to those patent contributions
73
+ Licensable by such Contributor that are necessarily infringed by
74
+ their Contribution(s) alone or by the combined work (in which their
75
+ Contribution(s) has been submitted. If You institute patent litigation
76
+ against any entity (including a cross-claim or counterclaim in a
77
+ lawsuit) alleging that the Work or any Work incorporated within the
78
+ Work constitutes direct or contributory patent infringement, then any
79
+ patent licenses granted to You under this License for that Work shall
80
+ terminate as of the date such litigation is filed.
81
+
82
+ 4. Redistribution. You may reproduce and distribute copies of the Work
83
+ or Derivative Works thereof in any medium, with or without
84
+ modifications, and in Source or Object form, provided that You meet
85
+ the following conditions:
86
+
87
+ (a) You must give any other recipients of the Work or Derivative
88
+ Works a copy of this License; and
89
+
90
+ (b) You must cause any modified files to carry prominent notices
91
+ stating that You changed the files; and
92
+
93
+ (c) You must retain, in the Source form of any Derivative Works that
94
+ You distribute, all copyright, patent, trademark, and attribution
95
+ notices from the Source form of the Work, excluding those notices
96
+ that do not pertain to any part of the Derivative Works; and
97
+
98
+ (d) If the Work includes a "NOTICE" text file as part of its
99
+ distribution, You must include a readable copy of the attribution
100
+ notices contained within such NOTICE file, in at least one of
101
+ the following places: within a NOTICE text given as part of the
102
+ Derivative Works; within the Source form or documentation, if
103
+ provided along with the Derivative Works; or, within a display
104
+ generated by the Derivative Works, if and wherever such
105
+ third-party notices normally appear. The contents of the NOTICE
106
+ file are for informational purposes only and do not modify the
107
+ License. You may add Your own attribution notices within
108
+ Derivative Works that You distribute, alongside or in addition to
109
+ the NOTICE text from the Work, provided that such additional
110
+ attribution notices cannot be construed as modifying the License.
111
+
112
+ You may add Your own license statement for Your modifications and may
113
+ provide additional grant of rights to use, copy, modify, merge,
114
+ publish, distribute, sublicense, and/or sell copies of the Software.
115
+
116
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
117
+ any Contribution intentionally submitted for inclusion in the Work by
118
+ You to the Licensor shall be under the terms and conditions of this
119
+ License, without any additional terms or conditions. Notwithstanding
120
+ the above, nothing herein shall supersede or modify the terms of any
121
+ separate license agreement you may have executed with Licensor
122
+ regarding such Contributions.
123
+
124
+ 6. Trademarks. This License does not grant permission to use the trade
125
+ names, trademarks, service marks, or product names of the Licensor,
126
+ except as required for reasonable and customary use in describing the
127
+ origin of the Work and reproducing the content of the NOTICE file.
128
+
129
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed
130
+ to in writing, Licensor provides the Work (and each Contributor
131
+ provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
132
+ OR CONDITIONS OF ANY KIND, either express or implied, including,
133
+ without limitation, any warranties or conditions of TITLE, NON-
134
+ INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
135
+ You are solely responsible for determining the appropriateness of
136
+ using or reproducing the Work and assume any risks associated with
137
+ Your exercise of permissions under this License.
138
+
139
+ 8. Limitation of Liability. In no event and under no legal theory,
140
+ whether in tort (including negligence), contract, or otherwise, unless
141
+ required by applicable law (such as deliberate and grossly negligent
142
+ acts) or agreed to in writing, shall any Contributor be liable to You
143
+ for damages, including any direct, indirect, special, incidental, or
144
+ exemplary damages of any character arising as a result of this License
145
+ or out of the use or inability to use the Work (even if such
146
+ Contributor has been advised of the possibility of such damages).
147
+
148
+ 9. Accepting Warranty or Additional Liability. While redistributing the
149
+ Work or Derivative Works thereof, You may wish to offer, and charge a
150
+ fee for, acceptance of support, warranty, indemnity, or other
151
+ liability obligations and/or rights consistent with this License.
152
+ However, in accepting such obligations, You may offer such obligations
153
+ only on Your own behalf and on Your sole responsibility, not on behalf
154
+ of any other Contributor, and only if You agree to indemnify, defend,
155
+ and hold each Contributor harmless for any liability incurred by, or
156
+ claims asserted against, such Contributor by reason of your accepting
157
+ any such warranty or additional liability.
158
+
159
+ END OF TERMS AND CONDITIONS
160
+
161
+ Copyright 2026 Sigilweaver Holdings LLC
162
+
163
+ Licensed under the Apache License, Version 2.0 (the "License");
164
+ you may not use this file except in compliance with the License.
165
+ You may obtain a copy of the License at
166
+
167
+ http://www.apache.org/licenses/LICENSE-2.0
168
+
169
+ Unless required by applicable law or agreed to in writing, software
170
+ distributed under the License is distributed on an "AS IS" BASIS,
171
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
172
+ See the License for the specific language governing permissions and
173
+ limitations under the License.