Skip to main content

A Lipidomics Database Explorer Package

Project description

Lipid Librarian

Build and Installation Instructions

Python Virtual Environment

make install install_optional

Docker Container

docker build -t lipidlibrarian -f Containerfile .

OCI Container for Docker/Podman/Kubernetes

buildah build -t lipidlibrarian -f Containerfile .

Test Lipid Librarian

Run pytest in the git root directory with a venv activated with LipidLibrarian installed. It is highly recommended to run a local ALEX123 SQL Database for performance reasons (see below)

pytest

Run Lipid Librarian

CLI

In case you installed Lipid Librarian into a 'venv' virtual environment, make sure you activate it before with source venv/bin/activate.

lipidlibrarian "PC(18:1_20:0)" "PE 38:1" "816.6477;0.001;+H+" "Cholesterol" "SLM:000487065"
lipidlibrarian path/to/file
cat path/to/file | lipidlibrarian

Docker

docker run lipidlibrarian "PC(18:1_20:0)" "PE 38:1" "816.6477;0.001;+H+" "Cholesterol" "SLM:000487065"

Podman

podman run lipidlibrarian "PC(18:1_20:0)" "PE 38:1" "816.6477;0.001;+H+" "Cholesterol" "SLM:000487065"

Import Python Package

from lipidlibrarian.LipidQuery import *

query1 = LipidQuery("PC(18:1_20:0)").query()
query2 = LipidQuery("PE 38:1").query()
query3 = LipidQuery("816.6477;0.001;+H+").query()
query4 = LipidQuery("Cholesterol").query()
query5 = LipidQuery("SLM:000487065").query()

for lipid in query1:
    print(repr(lipid))

for lipid in query2:
    print(format(lipid, 'json'))

for lipid in query3:
    print(format(lipid, 'html'))

for lipid in query4:
    print(repr(lipid))

for lipid in query5:
    print(repr(lipid))

Run a local ALEX123 SQL Database

podman run --detach --name alex123-sql --env MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 --env MARIADB_USER=alex123 --env MARIADB_PASSWORD=alex123 --env MARIADB_DATABASE=alex123 -p 3306:3306  docker.io/library/mariadb:latest

sync_alex123_sql_database --sql mysql+pymysql://alex123:alex123@127.0.0.1:3306/alex123

lipidlibrarian --sql --sql-host 127.0.0.1 --sql-port 3306 --sql-user alex123 --sql-password alex123 --sql-database alex123 "PC(18:1_20:0)"

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

lipidlibrarian-0.4.2.tar.gz (88.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lipidlibrarian-0.4.2-py3-none-any.whl (89.4 MB view details)

Uploaded Python 3

File details

Details for the file lipidlibrarian-0.4.2.tar.gz.

File metadata

  • Download URL: lipidlibrarian-0.4.2.tar.gz
  • Upload date:
  • Size: 88.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lipidlibrarian-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f5d4f8a040bcd5830e95954b173748983185aacf58bbacc09edb66a1d61756c6
MD5 81eff39715722e1b94f1a10fe764beca
BLAKE2b-256 f537111b0ecea895b2c9f97e32ac0e77ed183dce9e611d1a2e6a397c57c5f82d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipidlibrarian-0.4.2.tar.gz:

Publisher: publish.yaml on LipiTUM/lipidlibrarian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lipidlibrarian-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: lipidlibrarian-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 89.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lipidlibrarian-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27433902e9913e4a34e40d9ff31ce6a914f99289ff809125d3ed60c2a35cffb1
MD5 b1b2152f013fc0be491597d42c5aa004
BLAKE2b-256 b264cdfeb683e3d02250fe67c6d8e3dbf130f224d23c802ca7f8c30dfdac7f23

See more details on using hashes here.

Provenance

The following attestation bundles were made for lipidlibrarian-0.4.2-py3-none-any.whl:

Publisher: publish.yaml on LipiTUM/lipidlibrarian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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