Skip to main content

Python package for fragmenting colored graphs

Project description

SGR-Py (SubGraph Regularization)

This is a Python module which performs molecule encoding, linear feature regression, and subgraph regularization.

About the project

This project provides various information-based graph routines (including the titular subgraph regularization algorithm, implemented in Rust), linear algebra routines, and an RDKit-based shim which translates molecules and SMILES strings into labeled graphs via several possible methods.

Getting started

Installation

Installation from PyPI

  1. Enter a virtual environment, if you want to use one.

  2. Run pip install sgrpy, or pip install sgrpy[rdkit] if you want to include the optional RDKit shim.

Installation from Wheel

  1. Navigate to relevant Tag or Release (right sidebar).

  2. Download relevant .whl file for your system.

  3. Enter a virtual environment, if you want to use one.

  4. Run pip install rdkit to install RDKit if you want to use the optional RDKit shim.

  5. Run pip install sgrpy-*.whl on the wheel file you downloaded to install the main package.

Installation from Source

Windows
  1. Install Visual Studio 2017 or later (or Build Tools for Visual Studio with Visual C++ option)

  2. Install Rust toolchain

  3. Install Python and RDKit if you want to use the RDKit shim.

  4. Enter a virtual environment, if you want to use one.

  5. Clone this repo, then install using pip install . in the top-level directory.

MacOS/Linux
  1. Install Rust toolchain

  2. Install Python and RDKit if you want to use the RDKit shim.

  3. Enter a virtual environment, if you want to use one.

  4. Clone this repo, then install using pip install . in the top-level directory.

Tutorials

Contact

William Sprague (main developer) - wsprague@u.northwestern.edu

Project Link: https://github.com/wsprague-nu/sgrpy

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

sgrpy-0.1.9.tar.gz (187.2 kB view details)

Uploaded Source

Built Distributions

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

sgrpy-0.1.9-cp313-cp313t-win_amd64.whl (354.8 kB view details)

Uploaded CPython 3.13tWindows x86-64

sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (453.9 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl (471.0 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ i686

sgrpy-0.1.9-cp313-cp313t-macosx_11_0_arm64.whl (419.1 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

sgrpy-0.1.9-cp313-cp313t-macosx_10_12_x86_64.whl (433.4 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

sgrpy-0.1.9-cp312-abi3-win_amd64.whl (354.8 kB view details)

Uploaded CPython 3.12+Windows x86-64

sgrpy-0.1.9-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (454.1 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

sgrpy-0.1.9-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (471.5 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ i686

sgrpy-0.1.9-cp312-abi3-macosx_11_0_arm64.whl (419.2 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

sgrpy-0.1.9-cp312-abi3-macosx_10_12_x86_64.whl (433.7 kB view details)

Uploaded CPython 3.12+macOS 10.12+ x86-64

File details

Details for the file sgrpy-0.1.9.tar.gz.

File metadata

  • Download URL: sgrpy-0.1.9.tar.gz
  • Upload date:
  • Size: 187.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sgrpy-0.1.9.tar.gz
Algorithm Hash digest
SHA256 8b66d47bf06cd8db32982af1a5b2945e79e6507decdd15257b6ebc90627f3871
MD5 37639beadb059e4e386bd23cedc7a964
BLAKE2b-256 a67109886534ad53236f8e2944eae175a3ce2ef6d5f337c67aeab1e2cd9ab113

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp313-cp313t-win_amd64.whl.

File metadata

  • Download URL: sgrpy-0.1.9-cp313-cp313t-win_amd64.whl
  • Upload date:
  • Size: 354.8 kB
  • Tags: CPython 3.13t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sgrpy-0.1.9-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 572de2ccdd1605c48ceebe778efbab55cfc64e91ecb78ce5bf14e4744988611d
MD5 afaa1ce92aa3f5738269a15e9dfb5c0e
BLAKE2b-256 2a36a8fa9147ffd8ceab11333ce78ef4c2a7fd8d818e63fea7a99f66654e799a

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a09e524199ec0b40a6b7db1a05247c1caddc21ef3151b95d063218769afa76b
MD5 41bb6b391de0c0f21a358f0541690ef1
BLAKE2b-256 183585bfe163ee8fa515350c547cc577f30d492c1cf8d1e879bc3ca8688efc35

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c21b3d3cd6c1b75ea285fe75bff5929ed904e7de0b972e1b50a0e50c7148c673
MD5 ced28ac5f8109c1b81276d60cca9ecb6
BLAKE2b-256 19227b4cb017f4c4597b7ac2e9e9d67009aa9d62839dd492a156385057742d38

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19c5fd4e5e7b85708322ec2cc89c55e2c4dbaa770a824f2ef16c8e21550006ab
MD5 e6619595882ff42f9fdf212a9cf8617a
BLAKE2b-256 84c87f2bfd856c0856ffc36c237a210377210e5ddb51e7e1590aaa3e4bb3d253

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c30c81296e9ccb406408dd6ec8d5c86d5e7e6eaeb04c1e6bab48ead370612ede
MD5 5bcf1553c22005ccf5d87dfb8d66da44
BLAKE2b-256 e62e73e6b0df7450b32f2f382e62c7510b5f3567f07598bd4b83b7aa6ab8a281

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: sgrpy-0.1.9-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 354.8 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sgrpy-0.1.9-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 431de791684d889a9ce5d2de30deb5168b47a50e3b973fc82e50497d46b95b87
MD5 aeb2399abc6be649170659f9efe08085
BLAKE2b-256 d3138cd57b0b346d0dde68b55903c00afd45c4bca7e48d619eeefa906b13544f

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e7942b49db57f255d6c0e24d42656e74c3eb0c622f256cde031078c7a7977de1
MD5 e2d0bc948d072f5972e2a804f32fff3d
BLAKE2b-256 8b20032bf1cc20568914747cd9b7bbdeeff4df8b244fb6246411e401989291ef

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp312-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 edbc76c6ef44d411b220b60435537b590ab8fbf9445a06014fe8b9a2ecd17c85
MD5 639fb65d5e41a5a4de3cf8b42d86cb0d
BLAKE2b-256 af9fc832e6725c348665266c89765cff08361b645997ecedf08b48b3e56de395

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sgrpy-0.1.9-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 419.2 kB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for sgrpy-0.1.9-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f84fad4eb5ffc5e6634932714e29e481b1dd71f2618ecfbf0533b0d53b1064b
MD5 48c87484a97c3e6af2ce685758547688
BLAKE2b-256 ff76e0851e4abff27e7f68fa9a2ea383a4f256c8ec56788627efd5881e784263

See more details on using hashes here.

File details

Details for the file sgrpy-0.1.9-cp312-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for sgrpy-0.1.9-cp312-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea89f7111272546c1e6ca3201e2a810850c8737a4e9cbcbd766e0df235675722
MD5 1ec4132aec45ad07162d1e03dfb93561
BLAKE2b-256 271c3ae2a5b42d5ff1dc92d911b42920c8fe18d9c110723a29da7240c16ae87e

See more details on using hashes here.

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