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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file drawgly-0.1.0.tar.gz.

File metadata

  • Download URL: drawgly-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/22.3.0

File hashes

Hashes for drawgly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 984a389dc6f57724424f8e9bf342dd0b2f2e6084d1cd3b4a7e50de625b021795
MD5 51ae845127b579107fd29c42956d193a
BLAKE2b-256 a7e107d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7

See more details on using hashes here.

File details

Details for the file drawgly-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: drawgly-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.9 Darwin/22.3.0

File hashes

Hashes for drawgly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a3c11c6f4d11e87743c4da244f72c570250e811445e3e9bd4934b2417d66dc4
MD5 64cef26929eab52be06a94e5168ec0d0
BLAKE2b-256 f4dfc1d58df942ef12c4d348d7350d1006c1aa3090b31a5dc9f3c0747409ad0d

See more details on using hashes here.

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