Spectra is a Python library that contains tools to process spectral data.
This repository contains research and implementation of spectral analysis. The first focus will be on preprocessing of LC/MS spectral data; the goal, however, is to include tools for all spectrometry and spectroscopy spectral analysis techniques.
I'm interested in building a tool that automates algorithm selection for spectral analysis. Popular tools such as OpenMS and MZMine2 have put alot of work into building functional code to perform many tasks in, for example, Mass Spectrometry analysis. This effort hopes to stand apart from these works in two respects:
- We hope to enable, inform, and empower users by taking a algorithm-centric approach to analysis. As certain algorithms become commonplace, we place ourselves in danger by using algorithms that are widely adopted, which may not hone our algorithm intuition.
- We hope to automate inference on algorithm selection in order to scale process operations. Most algorithms are evaluated by visual inspection. Some use error models such as RMSE, but these strategies cannot discriminate artifacts from desired signals.
On an aside, I'm a big fan of Python, and can speak to increased productivity with Python development. As these modules mature, the Python implementations should be converted to jit using Python's numba package, and further optimized in C++. This work thus starts the exploration in Python.
Have a look at the documentation for more information on the algorithmic code, and take a look at the web application, spectra, to see performance of various algorithms.
- Python 3.6.4+
-
Clone the
spectra
repository.$ git clone --recursive https://www.github.com/francisglee/spectra
-
Create and activate virtual environment.
$ cd spectra $ python3.6 -m venv .venv $ source .venv/bin/activate
-
Install requirements.
(.venv)$ pip install -r requirements.txt
-
Install environment onto Jupyter.
(.venv)$ python3.6 -m ipykernel install --user --name=venv
-
Run Juypter notebook.
(venv)$ jupyter notebook
We use SemVer for versioning. For the versions available, see the tags on this repository.
2.0.0 - 1.1.0 - 1.0.0 -