Skip to content

Commit 0e651da

Browse files
committed
Update FAIMS splitter. Update Changelog
1 parent f016c44 commit 0e651da

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,28 @@ The format is based on [Keep a Changelog][Keep a Changelog] and this project adh
1818
### Security
1919

2020

21+
## [v0.0.33] - 2021-12-05
22+
23+
### Added
24+
1. Added an example script for splitting a FAIMS file into separate mzML files.
25+
2. Added an example script for ion mobility and charge state deconvolving Waters HDMSe data.
26+
3. Added Waters MassLynx SDK bindings for reading Waters .RAW folders directly on Windows
27+
when the SDK C library is present.
28+
4. Added a new command `ms-index maintenance register-waters-masslynx` to register the location
29+
of the Waters MassLynx SDK if it is not installed in the expected location.
30+
5. Improved documentation of `mzMLb` reading and writing.
31+
32+
### Changed
33+
34+
### Deprecated
35+
36+
### Removed
37+
38+
### Fixed
39+
40+
### Security
41+
42+
2143
## [v0.0.32]
2244

2345
### Added
@@ -332,8 +354,9 @@ The format is based on [Keep a Changelog][Keep a Changelog] and this project adh
332354
[Semantic Versioning]: https://semver.org/
333355

334356
<!-- Versions -->
335-
[Unreleased]: https://github.com/mobiusklein/ms_deisotope/compare/v0.0.32...HEAD
357+
[Unreleased]: https://github.com/mobiusklein/ms_deisotope/compare/v0.0.33...HEAD
336358
[Released]: https://github.com/mobiusklein/ms_deisotope/releases
359+
[v0.0.33]: https://github.com/mobiusklein/ms_deisotope/releases/v0.0.33
337360
[v0.0.32]: https://github.com/mobiusklein/ms_deisotope/releases/v0.0.32
338361
[v0.0.31]: https://github.com/mobiusklein/ms_deisotope/releases/v0.0.31
339362
[v0.0.30]: https://github.com/mobiusklein/ms_deisotope/releases/v0.0.30

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM python:3.8-slim-buster
22
LABEL description="A container for the ms_deisotope Python package, ms-deisotope CLI tool, and ms-index CLI tool"
33

44
# Build requirements
5-
RUN apt-get update && apt-get install -y --no-install-recommends gcc build-essential procps sudo git
5+
RUN apt-get update && apt-get install -y --no-install-recommends gcc build-essential procps sudo git \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/*
68

79
WORKDIR /app
810

examples/faims_split.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
#!/usr/bin/env python
12
import click
23
import ms_deisotope
3-
from ms_deisotope import output
44

55
from ms_deisotope.output import MzMLSerializer
66
from ms_deisotope.data_source import query
77

8-
from ms_deisotope.tools.utils import register_debug_hook
9-
108

119
@click.command('faims-split')
1210
@click.argument("source_file", type=click.Path(exists=True, readable=True))
1311
@click.argument("output_prefix")
1412
def main(source_file, output_prefix):
13+
'''Read in `source_file` and split it based upon FAIMS compensation voltage into separate
14+
mzML files whose path prefix matches `output_prefix` and ends with the compensation voltage
15+
dedicated to that stream.
16+
'''
1517
reader = ms_deisotope.MSFileLoader(source_file)
1618

1719
sinks = {}
@@ -34,6 +36,8 @@ def main(source_file, output_prefix):
3436
method = writer.build_processing_method(1, False, False, False, ["ion mobility seperation"])
3537
writer.add_data_processing(method)
3638
sinks[channel] = writer
39+
else:
40+
writer = sinks[channel]
3741
writer.save_scan(value)
3842
i += 1
3943
else:
@@ -47,7 +51,7 @@ def main(source_file, output_prefix):
4751

4852
click.echo("Closing buffers.")
4953
for sink in sinks.values():
50-
click.echo("Closing %r" % (sink, ))
54+
click.echo("Closing %r" % (sink.handle.name, ))
5155
sink.close()
5256

5357
if __name__ == "__main__":

0 commit comments

Comments
 (0)