Skip to main content

Sequence and Annotation Toolkit for Python

The sugar project aims to provide a lightweight framework to facilitate rapid application development for bioinformatics.

It thus provides classes and functions for working with DNA and RNA sequences, as well as related annotations, and it provides parsers and writers for various file formats using a plugin interface.

Installation

Sugar requires a Python version >=3.11. Use pip to install the package, e.g.

pip install rnajena-sugar

Other installation options are described in the documentation.

Run tests with the sugar test command. Note that tests that require an Internet connection are skipped by default, this behavior can be turned off with the --web option. Also, depending on the installation and platform, some tests may be skipped or have an expected failure, to see details about the reasons please use the --verbose flag.

Getting started

Read about how to get started in the tutorial section of the documentation.

from sugar import read
seqs = read()  # load example GenBank file
print(seqs)
print(seqs[1].fts)  # show features attached to second sequence
seqs.plot_ftsviewer(show=True)  # plot attached features
aas = seqs['cds'].translate()
print(aas)
aas.write('translated_cds.fasta')

Documentation and Changelog

Documentation can be found at Read the Docs. The detailed changelog is available here.

Contributions

Contributions are welcome! -- e.g. report or fix bugs, discuss or add features, improve the documentation. See the CONTRIBUTING.md file for details.

Citation

If you found this package useful, please consider citing it.

Eulenfeld T (2025), Sugar: A Python framework for bioinformatics, Journal of Open Source Software, 10(111), 8122, doi:10.21105/joss.08122

Metadata

Release files for rnajena-sugar 1.2.2

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

Source distribution (sdist)

Source distribution for rnajena-sugar 1.2.2
File Size Uploaded Provenance Actions
rnajena_sugar-1.2.2.tar.gz 336.2 kB Without provenance Details for rnajena_sugar-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rnajena-sugar 1.2.2
File Interpreter ABI Platform Actions
rnajena_sugar-1.2.2-py3-none-any.whl Python 3 none any Details for rnajena_sugar-1.2.2-py3-none-any.whl

Total release size: 775.0 kB

Release files / rnajena_sugar-1.2.2.tar.gz

Download URL rnajena_sugar-1.2.2.tar.gz
Size 336.2 kB
Tags Source
SHA-256 checksum
How to use checksums
04cc92ccdc76b24f4e7287b53dc66f97ce914034ef4a0acc2806576a52a9caf0
BLAKE2b-256 checksum
How to use checksums
d48832e7bac892b8fc69e8585a65269f956f3210e1135339ae09067c21d45af9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / rnajena_sugar-1.2.2-py3-none-any.whl

Download URL rnajena_sugar-1.2.2-py3-none-any.whl
Size 438.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1608a07155efb3396e25f2b8c60bc2f5d971330f993ff77b23a48521912e4e5
BLAKE2b-256 checksum
How to use checksums
901f6d3cb72ce7c031986bca79a921dd3810723c82b49c0bf81dfb6203d2b3f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for rnajena-sugar 1.2.2

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.

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