Git Product home page Git Product logo

dreams's Introduction

DreaMS (Deep Representations Empowering the Annotation of Mass Spectra)

Source code for the paper "Emergence of molecular structures from repository-scale self-supervised learning on tandem mass spectra".

This GitHub repository is a work in progress. We are planning to transform it into a user-friendly Python package during July-August 2024.

How to install

Run the following code from the command line.

git clone https://github.com/pluskal-lab/DreaMS.git; cd DreaMS
. scripts/install.sh
. scripts/download_models.sh

git clone command will download this GitHub repository and install.sh will install it. download_models.sh script will download pre-trained DreaMS models from Zenodo. The installation script will create a conda environment named dreams. If you are not familiar with conda or do not have it installed, please refer to the official documentation.

How to use

To compute DreaMS representations for MS/MS spectra from .mgf file, run the following Python code.

from dreams.api import compute_dreams_embeddings
dreams_embeddings = compute_dreams_embeddings('data/examples/example_5_spectra.mgf')

The resulting dreams_embeddings object is a matrix with 5 rows and 1024 columns, representing 5 1024-dimensional DreaMS representations for 5 input spectra stored in the .mgf file.

Work in progress

  • Wrap the repository into a pip package.
  • Import utilities to matchms.
  • DreaMS Atlas exploration demo.
  • Upload weights of all models.
  • Provide scripts to collect/download GeMS datasets.
  • Extend dreams.api with more functionality (e.g. attention heads analysis).
  • Add tutorial notebooks.
  • Upload Murcko splits and detailed tutorial notebook.

dreams's People

Contributors

roman-bushuiev avatar anton-bushuiev avatar tornikeo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.