Skip to main content

Automated deconvolution and analysis of Bruker mass spectra datasets using UniDec

Project description

BafPipe

Automated deconvolution of mass spectra datasets using UniDec.

Cite Marty et al. Anal. Chem. 2015. DOI: 10.1021/acs.analchem.5b00140

Automates the UniDec deconvolution algorithms for large Bruker mass spectra datasets and quantifies relative peak intensity. Converts Bruker .baf to numpy arrays using baf2sql and then automates unidec to deconvolute protein mass spectra and quantify species.

pip install BafPipe

The software uses an input excel file containing deconvolution parameters, species identities/masses and data plotting parameters.

Setting up the input file

Sheet 1 of input file contains the directory folder of your mass spectra and the unidec configuration parameters.

You can also add masses to detect and a corresponding colour. These are done by stipulating Species + name and Color + name in the Parameter column, followed by the desired mass or colour in the Input column.

Example input directory

Parameter Input Comments
Directory D:\mass spec\protein labelling
Species Protein 48127
Color Protein orange
Start Scan 490
End Scan 540
Tolerance (Da) 10 Peak matching tolerance
Config masslb 15000 Deconvolution window low mass
Config massub 50000 Deconvolution window high mass
Config massbins 1 Mass bins for deconvolution - sample mass every
Config peakwindow 10
Config minmz 700 m/z lower bounds (defaults to 0)
Config maxmz m/z upper bounds (defaults to 10e12)
Config startz 1
Config endz 100
Config numz 100
Config numit 60 number of iterations of deconvolution algorithm

Each file within the directory can be linked to custom variables defined in a second sheet of the input directory. This comes in handy if wanting to filter data or perform analyses/comparison on subsets of your experiment.

Any column names can be defined aside from 'Name' in column 0. Name corresponds to your filename (can be partial match).

Make sure var_ids=True load_input_file(var_ids = True)

Example variables table

Name var1 var2 var3
Nexp 1 1 1 1
Nexp 2 2 13 3
Nexp 3 1 25 3
Nexp 4 3 25 1
Nexp 5 2 13 5

Running the code


from bafpipe.meta_processing import pipe

path = r"C:\users\input_file.xlsx

bafpipe = pipe(path)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bafpipe-1.0.3.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bafpipe-1.0.3-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file bafpipe-1.0.3.tar.gz.

File metadata

  • Download URL: bafpipe-1.0.3.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for bafpipe-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fa2a8ade6893cf2987415240492312bba9cf6756715572e6b42017f79cffa3b7
MD5 2e86f36174b8612e551517e8cbe5fc2c
BLAKE2b-256 427a14a0e00d8d427dd3402e15f85b1ffe0cec500946c96a1bbd81217e79f716

See more details on using hashes here.

File details

Details for the file bafpipe-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: bafpipe-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for bafpipe-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e51e3ef24f58aa5a36092daf891e2344f2f70a670aa6e180924fddd7003d1271
MD5 57bfb8c96c41103f6f48e07d7ffd9c29
BLAKE2b-256 6ca94743e378f341796dafece2d9e2778a8d8707273cce848b2e6b1e1c2d99f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page