Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.2.2 instead.
Reason given by maintainers: Buggy

GlyLES

testing docs-image piwheels PyPI - Downloads codecov DOI

A tool to convert IUPAC representation of Glycans into SMILES representation. This repo is still in the development phase; so, feel free to report any errors or issues. The code is available on github and the documentation can be found on ReadTheDocs.

Specification and (current) Limitations

The exact specification we're referring to when talking about "IUPAC representations of glycan", is given in the "Notes" section of this website. But as this package is still in the development phase, not everything of the specification is implemented yet (especially not all side chains you can attach to monomers). The structure of the glycan can be represented as a tree of the monosaccharides with maximal branching factor 4, i.e., each monomer in the glycan has at most 4 children.

Installation

So far, this package can only be downloaded from the python package index. So the installation with pip is very easy. Just type

pip install glyles

and you're ready to use it as described below. Use

pip install --upgrade glyles

to upgrade the glyles package to the most recent version.

Command Line Usage

With IUPAC input

$ glyles -i Man(a1-2)Man -o ./test_output.txt

With IUPAC inputs

$ glyles -i Man(a1-2)Man Fuc(a1-6)Glc -o ./test_output.txt

With file input

$ glyles -i ./input_file.txt -o ./test_output.txt

Basic Usage

Convert the IUPAC into a SMILES representation using the handy convert method

from glyles import convert

convert(glycan="Man(a1-2)Man", output_file="./test.txt")

You can also use the convert_generator method to get a generator for all SMILES:

from glyles import convert_generator

for smiles in convert_generator(glycan_list=["Man(a1-2)Man a", "Man(a1-2)Man b"]):
    print(smiles)

For more examples of how to use this package, please see the notebooks in the examples folder and checkout the documentation on ReadTheDocs.

Notation of glycans

There are multiple different notations for glycans in IUPAC. So, according to the SNGF specification, Man(a1-4)Gal, Mana1-4Gal, and Mana4Gal all describe the same disaccharide. This is also covered in this package as all three notations will be parsed into the same tree of monosaccharides and result in the same SMILES string.

This is also described more detailed in a section on ReadTheDocs.

Poetry

To develop this package, we use the poetry package manager (see here for detailed instruction). It has basically the same functionality as conda but supports the package management better and also supports distinguishing packages into those that are needed to use the package and those that are needed in the development of the package. To enable others to work on this repository, we also publish the exact specifications of our poetry environment.

Metadata

Release files for glyles 0.5.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glyles 0.5.7
File Size Uploaded Provenance Actions
glyles-0.5.7.tar.gz 71.6 kB Without provenance Details for glyles-0.5.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glyles 0.5.7
File Interpreter ABI Platform Actions
glyles-0.5.7-py3-none-any.whl Python 3 none any Details for glyles-0.5.7-py3-none-any.whl

Total release size: 151.3 kB

Release files / glyles-0.5.7.tar.gz

Download URL glyles-0.5.7.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
394190534b7441f36ea6b2baf10eda88a30806935e7f126134a1bba0fd5d593c
BLAKE2b-256 checksum
How to use checksums
765b7c843a0297c0c59cbc8c24b2a324ff684406d0019888043c731eb82267a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.7.15 Windows/10

Release files / glyles-0.5.7-py3-none-any.whl

Download URL glyles-0.5.7-py3-none-any.whl
Size 79.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e08bf4c8dd49db8847c1f04462c5586151f08bd5debeb449f4c829d8dcc0ccd2
BLAKE2b-256 checksum
How to use checksums
79446a815d579d412bc418acdd7a4cad84060818be340955c8cde1ad2190195d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.7.15 Windows/10

Security for glyles 0.5.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page