The preferred method to run this application is via docker. Bruker has allowed us to include the lib and python API (SDK version 2.8.7) in this repo for the purpose of building the docker image. To run the Python script outside of docker you will need to obtain the SDK directly from Bruker.
pip install git+https://github.com/mafreitas/tdf2mzml
Download the source and see usage below
usage: tdf2mzml.py [-h] -i input_file -o output_file
[-s value] [-e value]
[--ms1_type value] [--compression value]
optional arguments:
-h, --help show this help message and exit
-i input_file, --input input_file
-o output_file, --output output_file
-s value, --start_frame value
-e value, --end_frame value
--ms1_type value "raw:profile:centroid"
--compression value "zlib:none"
A Dockerfile is also provided to assist with building and running the utility inside a docker container. The docker image is also hosted on docker_hub
docker run --rm -it -v $PWD:/data mfreitas/tdf2mzml tdf2mzml.py -i /data/your_folder.d
This command will create a new MzML file in the same folder as the tdf directory.
docker build -t tdf2mzml .
docker run --rm -it -v $PWD:/data tdf2mzml tdf2mzml.py -i /data/your_folder.d