Science Score: 75.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: acs.org
  • Academic email domains
  • Institutional organization owner
    Organization rinikerlab has institutional domain (www.riniker.ethz.ch)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
Statistics
  • Stars: 71
  • Watchers: 7
  • Forks: 14
  • Open Issues: 6
  • Releases: 3
Created about 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

LWReg: a lightweight chemical registration system

Lwreg ReadTheDocs RDKit TOC Image

This provides a basic registration system which can be used either as a python library or via a command-line interface.

Basic operations: - initdb: resets the database. Note that this destroys any information which is already in the database, so be careful with it. - register: standardize the input molecule, calculates a hash for it, and adds them molecule to the database if it's not already there. returns the molregno (registry ID) of the newly registered molecule. - query: takes a molecule as input and checks whether or not a matching molecule is registered. returns molregnos (registry IDs) of the matching molecule(s), if any - retrieve: takes one or more IDs and returns the registered structures for them

Publications

[1] J. Chem. Inf. Model. 2024, 64, 16, 6247–6252 : https://pubs.acs.org/doi/10.1021/acs.jcim.4c01133

Documentation

Our full documentation: https://lightweight-registration.readthedocs.io/en/

Quick-start

Assuming that you have conda (or mamba or something equivalent) installed you can install lwreg directly from this github repo by first creating a conda environment with all the dependencies installed: % conda env create --name py313_lwreg --file=https://raw.githubusercontent.com/rinikerlab/lightweight-registration/main/environment.yml If you have mamba installed, you can run this instead (it will run faster): % mamba env create --name py313_lwreg --file=https://raw.githubusercontent.com/rinikerlab/lightweight-registration/main/environment.yml

You can then activate the new environment and install lwreg: % conda activate py313_lwreg % python -m pip install git+https://github.com/rinikerlab/lightweight-registration

You can then verify that the install worked by doing: % lwreg --help

If you want to use PostgreSQL as the database for lwreg, then you will also need to install the python connector for PostgreSQL: % conda install -c conda-forge psycopg2

For further information, consult the INSTALL.md file.

Very basic usage demo

Command line

% lwreg initdb --confirm=yes % lwreg register --smiles CCOCC % lwreg query --smiles CCOCCC % lwreg retrieve --id 2

Python

```

import lwreg

from lwreg import utils

lwreg.setdefaultconfig(utils.defaultConfig()) # you generally will want to provide more information about the database

lwreg.initdb() This will destroy any existing information in the registration database. are you sure? [yes/no]: yes True

lwreg.register(smiles='CCO') 1

from rdkit import Chem

m = Chem.MolFromSmiles('CCOCC')

lwreg.register(mol=m) 2

lwreg.query(smiles='CCO') [1]

lwreg.retrieve(id=2) {2: ('\n RDKit 2D\n\n 0 0 0 0 0 0 0 0 0 0999 V3000\nM V30 BEGIN CTAB\nM V30 COUNTS 5 4 0 0 0\nM V30 BEGIN ATOM\nM V30 1 C 0.000000 0.000000 0.000000 0\nM V30 2 C 1.299038 0.750000 0.000000 0\nM V30 3 O 2.598076 -0.000000 0.000000 0\nM V30 4 C 3.897114 0.750000 0.000000 0\nM V30 5 C 5.196152 -0.000000 0.000000 0\nM V30 END ATOM\nM V30 BEGIN BOND\nM V30 1 1 1 2\nM V30 2 1 2 3\nM V30 3 1 3 4\nM V30 4 1 4 5\nM V30 END BOND\nM V30 END CTAB\nM END\n', 'mol')}

```

Owner

  • Name: rinikerlab
  • Login: rinikerlab
  • Kind: organization
  • Location: Zurich

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Landrum"
  given-names: "Gregory A."
  orcid: "https://orcid.org/0000-0001-6279-4481"
- family-names: "Braun"
  given-names: "Jessica"
  orcid: "https://orcid.org/0009-0001-0453-7978"
title: "lightweight-registration"
version: v2024.08.1
doi: "https://zenodo.org/records/13341246"
date-released: 2024-08-19
url: "https://github.com/rinikerlab/lightweight-registration"
preferred-citation:
  type: article
  authors:
  - family-names: "Landrum"
    given-names: "Gregory A."
    orcid: "https://orcid.org/0000-0001-6279-4481"
  - family-names: "Braun"
    given-names: "Jessica"
    orcid: "https://orcid.org/0009-0001-0453-7978"
  - family-names: "Katzberger"
    given-names: "Paul"
    orcid: "https://orcid.org/0000-0003-4937-4911"
  - family-names: "Lehner"
    given-names: "Marc T."
    orcid: "https://orcid.org/0000-0003-4963-4824"
  - family-names: "Riniker"
    given-names: "Sereina"
    orcid: "https://orcid.org/0000-0003-1893-4031"
  doi: "https://doi.org/10.1021/acs.jcim.4c01133"
  journal: "Journal of Chemical Information and Modeling"
  title: "lwreg: A Lightweight System for Chemical Registration and Data Storage"
  year: 2024

GitHub Events

Total
  • Create event: 11
  • Release event: 2
  • Issues event: 4
  • Watch event: 14
  • Delete event: 13
  • Issue comment event: 15
  • Push event: 101
  • Pull request review comment event: 38
  • Pull request review event: 43
  • Pull request event: 39
  • Fork event: 1
Last Year
  • Create event: 11
  • Release event: 2
  • Issues event: 4
  • Watch event: 14
  • Delete event: 13
  • Issue comment event: 15
  • Push event: 101
  • Pull request review comment event: 38
  • Pull request review event: 43
  • Pull request event: 39
  • Fork event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 2
  • Total pull requests: 19
  • Average time to close issues: 4 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 4.0
  • Average comments per pull request: 0.58
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 17
  • Average time to close issues: about 19 hours
  • Average time to close pull requests: 1 day
  • Issue authors: 1
  • Pull request authors: 4
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.41
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hmacdope (1)
  • j-a-dietrich (1)
Pull Request Authors
  • greglandrum (21)
  • brje01 (15)
  • nmaeder (3)
  • hmacdope (2)
  • MTLehner (1)
Top Labels
Issue Labels
question (1)
Pull Request Labels
documentation (3) enhancement (2) bug (1)

Dependencies

.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
Dockerfile docker
  • continuumio/miniconda3 latest build
setup.py pypi
  • Click *
environment.yml pypi