Skip to main content

DrawGly

DrawGly is a Python library for drawing Symbol Nomenclature for Glycans (SNFG), using GlyConnect API.

Requirements

python >= 3.9

Installation

python -m pip install drawgly

Usage

Using get_cartoon() to get the cartoon and saving the image. More information can be found in the docstring.

Note: This function uses GlyConnect API to get the cartoons, please make sure you have an internet connection.

from drawgly import get_cartoon

struct_format = "gws"
structure = "freeEnd--?a1D-GalNAc,p(--3b1D-Gal,p--??2D-NeuAc,p)--6b1D-GlcNAc," \
            "p--??1D-Gal,p--??2D-NeuAc,p}--??1Ac$MONO,Und,0,0,freeEnd"
output_path = "output.png"

get_cartoon(struct_format, structure, output_path)

Example output: test

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Metadata

Release files for drawgly 0.1.0

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

Source distribution (sdist)

Source distribution for drawgly 0.1.0
File Size Uploaded
drawgly-0.1.0.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / drawgly-0.1.0.tar.gz

Download URL drawgly-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
984a389dc6f57724424f8e9bf342dd0b2f2e6084d1cd3b4a7e50de625b021795
BLAKE2b-256 checksum
How to use checksums
a7e107d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.9 Darwin/22.3.0

Release files / drawgly-0.1.0-py3-none-any.whl

Download URL drawgly-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a3c11c6f4d11e87743c4da244f72c570250e811445e3e9bd4934b2417d66dc4
BLAKE2b-256 checksum
How to use checksums
f4dfc1d58df942ef12c4d348d7350d1006c1aa3090b31a5dc9f3c0747409ad0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.9 Darwin/22.3.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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