Skip to main content

Mass spectrometry query language python implementation

Project description

Mass Spec Query Languge

Unit Testing NF Workflow Testing

The Mass Spec Query language is meant to be concise querying of mass spec patterns that can scale from one single scan to a whole repository. Here we include the formal grammar and reference implementation in Python.

Repository Structure

This is the repository to define the language and reference implementation. This contains several parts

  1. Language Grammar
  2. Reference Implementation Python API
  3. Commandline Utility to execute
  4. NextFlow Workflow For Large Scale Analysis
  5. ProteoSAFe workflow
  6. Dash interactive exploration

Developers/Contact

Mingxun Wang is the main creator and developer of MassQL. Contact me for contributing or using it!

Docs

Here

Python API

To install massql

pip install massql

Here is the most basic operation you can do

from massql import msql_engine

results_df = msql_engine.process_query(input_query, input_filename)

If you want to push in a data frame you already have, you can specify it

from massql import msql_engine
from massql import msql_fileloading

# Loading Data
ms1_df, ms2_df = msql_fileloading.load_data(input_filename)

# Executing Query
results_df = msql_engine.process_query(input_query, input_filename, ms1_df=ms1_df, ms2_df=ms2_df)

Command Line Tool

You can use the command line tool massql to query things or put things into a pipeline.

A few examples of what you can do

massql test.mzML "QUERY scaninfo(MS2DATA)" --output_file results.tsv

Web API

API Version

/api

Parsing query into intermediate JSON string

/parse?query=<query string>

Example Link

Visualization of Query

Visualization image of MS1 spectra

/visualize/ms1

Example Link

Visualization image of MS2 spectra

/visualize/ms2

License

MIT License

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

massql-0.0.7.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

massql-0.0.7-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file massql-0.0.7.tar.gz.

File metadata

  • Download URL: massql-0.0.7.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for massql-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7f35cf46f5628494bb5ab6c89308b81822f66516cee27f9f2877f3f9149cc9d2
MD5 2def76474682f0961944fee384b052ab
BLAKE2b-256 3c8ef400b8ee3d04ec3efaa75f302e832e264645b5f1975823e5baba6f2a905f

See more details on using hashes here.

File details

Details for the file massql-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: massql-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for massql-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2f669939b342f491ab9903e04310c9467b68b58262328d2b9f34b4edf23ed194
MD5 e20c48d323d0d9cdcb45ca3c3b66a88d
BLAKE2b-256 6b27b2172c29bf3d9e5037156a85a8d2f2b7d4c722c8130b576ed3de4da3ae4a

See more details on using hashes here.

Supported by

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