API Reference¶
Table of Contents
msp2lib.core
¶
Convert an MSP file representing one or more Mass Spectra to a NIST MS Search user library.
Docker must be installed to use this program.
The first time this script is run it will download the latest version of the docker image automatically.
This can also be done manually, such as to upgrade to the latest version,
by running with the --get-docker-image
flag.
Functions:
|
Entry point for running from the command line. |
|
Convert the provided MSP file to a NIST User Library, and store the newly created library in the given output directory. |
-
msp2lib
(msp_file, output_dir, lib_name=None)[source]¶ Convert the provided MSP file to a NIST User Library, and store the newly created library in the given output directory.
- Parameters
msp_file (
Union
[str
,Path
,PathLike
]) – The MSP file to convert to a NIST User Libraryoutput_dir (
Union
[str
,Path
,PathLike
]) – The directory to store the NIST User Library inlib_name (
Optional
[str
]) – The name of the NIST User Library. IfNone
this will be the filename of the MSP file without the extension. DefaultNone
.
msp2lib.utils
¶
utilities for msp2lib
.
Functions:
|
Prints information about |
Build the lib2nist-wine docker image from the Dockerfile. |
|
Pull the lib2nist-wine docker image from dockerhub. |
|
|
The |
Returns whether Docker is installed on the system. |
|
|
Prints the version number of |
-
build_docker_image
()[source]¶ Build the lib2nist-wine docker image from the Dockerfile.
- Return type
- Returns
The return code of the
docker build
command
-
download_docker_image
()[source]¶ Pull the lib2nist-wine docker image from dockerhub.
- Return type
- Returns
The return code of the
docker pull
command
-
subprocess_with_log
(command)[source]¶ The
command
withsubprocess.Popen
, printing any stdout from the command.