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:
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984a389dc6f57724424f8e9bf342dd0b2f2e6084d1cd3b4a7e50de625b021795 |
|
MD5 | 51ae845127b579107fd29c42956d193a |
|
BLAKE2b-256 | a7e107d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3c11c6f4d11e87743c4da244f72c570250e811445e3e9bd4934b2417d66dc4 |
|
MD5 | 64cef26929eab52be06a94e5168ec0d0 |
|
BLAKE2b-256 | f4dfc1d58df942ef12c4d348d7350d1006c1aa3090b31a5dc9f3c0747409ad0d |