Auto MS mass checker
Project description
MScheck for locating target compound masses in mass spectra
MScheck is a python package that hunts for a target compound mass + given ion mass (eg. H+, Na+). MScheck was created to assist with the automated mass spectrum analysis of target compounds synthesised using a high throughput approach.
MScheck installation
MScheck relies on rdkit for generating molecule SVG images and for calculating molecular weights
Installing rdkit using conda works best followed by a pip install of MScheck
-
Create a conda environment with rdkit
conda create -c conda-forge -n MScheck rdkit
-
Activate the MScheck conda environment created
conda activate MScheck
-
Pip install MScheck
pip install mscheck
MScheck use
MScheck has been tested on using Agilent LCMS files (.D) as the starting file format
- Convert .D Agilent folder to a .d MassHunter format using Agilent's ChemStation to MassHunter Translator (B.04.00)
MScheck is installed via pip,
MScheck is a python package that hunts for a target compound mass + given ion mass (eg. H+, Na+),
If you wish to use XChem-CAR you are advised to use the webapp:
[URL ONCE LIVE]
Continue with this guide if you wish to download as setup XChem-CAR
for development purpouses
Visual Studio Code
these instructions are designed for Visual Studio Code which can be istalled for free from: https://code.visualstudio.com/
Git-Crypt Key
Secrets required for running CAR are encypted, to unencrpyt and run you will need the key from the XChem-CAR softwear maintainer
Clone the "xchem-car" repository from GitHub
XChem-CAR uses GitHub for version control
to get started with working on CAR clone the "xchem-CAR" Repository from github to your device.
Useful GitHub branches
Branch | Descripton | URL |
---|---|---|
Main | Most recent, stable, release | https://github.com/Waztom/xchem-CAR |
Develop | new features will be added here before being released |
https://github.com/Waztom/xchem-CAR/tree/Develop |
all branches can be found: https://github.com/Waztom/xchem-CAR/branches
Docker
Install Docker
First you'll need Docker Desktop (or the relevent Docker Engine on Linux) you can find the apprpriate download like this on https://www.docker.com/get-started
Install Docker Compose
once Docker is installed alos install docker compose, instructions for Mac, Windows, Linux and other options are avalible: https://docs.docker.com/compose/install/
Install VS Code Extention
Docker and Docker Compose should now be installed
(If on Windows/Mac, start docker desktop)
Open Visual Studio Code
to check docker is running correctly open the terminal and run:
docker --version
you should get a response similar to:
Docker version 18.09.2, build 6247962
In Visual Studio Code open the extiensions panel (left-hand pannle or using Ctrl+Shift+X ) and search for "Remote - Containers extension" and click Install.
Once installed a box with two arrows pointing in oposit direcitons should appere in the bottom left corner of Visual studio code
git-crypt
git-crypt (https://github.com/AGWA/git-crypt) is used for encypting secrets required to run CAR you need the appropriate crypt-key file from the softwear maintainer.
Install Git-Crypt
download the compressed git-crypt package (https://www.agwa.name/projects/git-crypt/downloads/git-crypt-0.6.0.tar.gz)
Extract the package to create the directory git-crypt-0.6.0
in terminal:
$ cd git-crypt-0.6.0
>$ make
># make install
Unlocking Secrets
once Git-Crypt is installed unlock the secrets using:
cd [file path to XChem-CARS on your device]
>git-crypt unlock [path to git-crypt crypt-key]
Start system
Locate Reopsitory
-
in terminal change directory to your coppy of the repo :
cd
[local file path to xchem-CAR repoistory]
Start Remote Container
- start Visual Studio remote container with Ctrl + Shift + P and type "Remote-containers: Open folder in container" then click on that option.
ensure you have the repsoitory folder [your file path/xchem-CAR] selected and choose "Ok"/"Open" - Your container should start to build, click on the popup notificaiton at the bottom right of visual studio to view the log/progress
Time to Launch
-
Open a new terminal that you can interact with. if the terminal is visible at the bottom of the screen click on the plus "create new intergreated terminal" or use the keybord shortcut "Ctrl+Shift+`" button or use the ajacent "split terminal" (or "Ctrl+Shift+5") button to see the new teminal ajacent to the current teminal
-
you should now be in the container running Debian Linux
-
in the new teminal type:
cd CAR
>python3 manage.py makemigrations backend
>python3 manage.py migrate backend
>python3 manage.py runserver
before you open the application you must compleate the next step, starting Celery
Starting Celery
- open a new teminal the same way as last time (see Time to Launch)
- in the new teminal type:
celery -A CAR worker -l info
Opening the application
at the end of the step "Time to Launch" a address to use the visual interface should have been displayed ("http://127.0.0.1:8000/"), Ctrl+Click on the link in teminal or coppy and paste the link into your web browser to use the CAR interface
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mscheck-0.1.4b0.tar.gz
.
File metadata
- Download URL: mscheck-0.1.4b0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431080eadafdbabfb2718038cc41e0af55587b2b79ad14b2aa8b38b256dbfc73 |
|
MD5 | 1d0033431a1b54f8391c51fdc1542716 |
|
BLAKE2b-256 | ccdc573fceb52ddef8992ab64159ea94ecbb6d4d41d800671e19fb7872fc358c |