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.1

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.1
File Size Uploaded Provenance Actions
rnajena_sugar-1.2.1.tar.gz 336.2 kB Without provenance Details for rnajena_sugar-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 775.0 kB

Release files / rnajena_sugar-1.2.1.tar.gz

Download URL rnajena_sugar-1.2.1.tar.gz
Size 336.2 kB
Tags Source
SHA-256 checksum
How to use checksums
648118ac50a4ed7cd258815a5c0cf84fbeecabc733c1872e7adf8e9c21f3e8e4
BLAKE2b-256 checksum
How to use checksums
7ade876463c6b89771e5807fbb2681e111f501b048fae296962f47e5f4164584
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.1-py3-none-any.whl

Download URL rnajena_sugar-1.2.1-py3-none-any.whl
Size 438.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
784a7d5bffc9041065c42c2639a8620b2d508bf4bfefc8a36f20cc4067b39534
BLAKE2b-256 checksum
How to use checksums
dbfcb51b7246b742623b7d4c8a88f4d8496084d26018e770f1df6d9f3b86f6e3
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.1

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