Skip to main content

You can use this package to parse SigmaBAM files in openBIS. There are two resources used for automating the parsing of such files:

  1. Using the Python script in tutorials/parser_tutorial.py. This script uses the parser class defined in src/sigmabam2openbis/parser.py and the bam-masterdata parser infrastructure. We recommend using this tutorial. To run it, after setting up your environment (see below), run in the terminal python tutorials/parser_script.py.
  2. Using the Jupyter notebook from tutorials/chemical_data_inventory_openbis_mapper_1_0.ipynb. This tutorial uses PyBIS.

Development

If you want to develop locally this package, clone the project and enter in the workspace folder:

git clone https://github.com/BAMresearch/sigmabam2openbis.git
cd sigmabam2openbis

Create a virtual environment (you can use Python>=3.10) in your workspace:

  • Using venv:
    python3 -m venv .venv
    source .venv/bin/activate  # in Windows (cmd): source .venv\Scripts\activate
    
  • Using conda:
    conda create --name .venv pip
    conda activate .venv
    

Install the package in editable mode (with the flag -e):

pip install --upgrade pip
pip install -e '.[dev]'

Note: In order to install faster the package, you can use uv for pip installing Python packages:

pip install --upgrade pip
pip install uv
uv pip install -e '.[dev]'

Run the tests

You can locally run the tests by doing:

python -m pytest -sv tests

where the -s and -v options toggle the output verbosity.

You can also generate a local coverage report:

python -m pytest --cov=src tests

Run auto-formatting and linting

We use Ruff for formatting and linting the code following the rules specified in the pyproject.toml. You can run locally:

ruff check .

This will produce an output with the specific issues found. In order to auto-fix them, run:

ruff format .

If some issues are not possible to fix automatically, you will need to visit the file and fix them by hand.

Metadata

Release files for sigmabam2openbis 1.0.0

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

Source distribution (sdist)

Source distribution for sigmabam2openbis 1.0.0
File Size Uploaded Provenance
sigmabam2openbis-1.0.0.tar.gz 392.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sigmabam2openbis 1.0.0
File Interpreter ABI Platform
sigmabam2openbis-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 402.9 kB

Release files / sigmabam2openbis-1.0.0.tar.gz

Download URL sigmabam2openbis-1.0.0.tar.gz
Size 392.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91783628e4ceb53650d65554b3aaab568e4e603218c40d800eb6096e6639fc57
BLAKE2b-256 checksum
How to use checksums
7ba1da2443f683104a6ac5bd750b69ea8a115e974a706f82f153b36e0670ecce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / sigmabam2openbis-1.0.0-py3-none-any.whl

Download URL sigmabam2openbis-1.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a31be4904de10ace9e9a291ee6bd65ef98d5c152cf93ef552ab44dd2e99174f
BLAKE2b-256 checksum
How to use checksums
217e1f6a2a72a37e1de292fb5c78a1c4330eb3cee9637c9575924659e48eff6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for sigmabam2openbis 1.0.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sigmabam2openbis-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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