Skip to main content

No project description provided

Project description

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.

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

drawgly-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

drawgly-0.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

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