Skip to main content
   ______      _____ ____
  / ____/___ _/ ___// __ \
 / /   / __ `/\__ \/ / / /
/ /___/ /_/ /___/ / /_/ /
\____/\__,_//____/\___\_\

pipeline status coverage report Code style: black Documentation Status PyPI - License

PyPI PyPI - Python Version PyPI - Wheel PyPI - Downloads Libraries.io dependency status for latest release

Conda-Forge CaSQ version Conda-Forge CaSQ total downloads badge Made by humans

CaSQ converts CellDesigner and SBGN-ML models to Boolean models encoded in SBML-Qual with a rather strict semantics defined in a published article.

Install

CaSQ is provided as a Python3 package, you can install it from the Python package index with pip, conda or your Python package manager of choice:

$ python3 -m pip install casq

Note that we currently recommend that you use the excellent uv tool from Astral, which allows you to run CaSQ without worrying about any installation procedure at all:

$ uvx casq -v
casq v1.4.3

Command-line usage

Just follow the instructions:

$ casq --help
usage: casq [-h] [-v] [-D] [-c] [-s] [-r S] [-f FIXED] [-n]
            [-u [UPSTREAM ...]] [-d [DOWNSTREAM ...]] [-b] [-g GRANULARITY]
            [-i INPUT] [-C]
            [infile] [outfile]

Convert CellDesigner/SBGNML models to SBML-qual with a rather strict
semantics. Copyright (C) 2019, Sylvain.Soliman@inria.fr GPLv3

positional arguments:
  infile                CellDesigner or SBGN-ML File
  outfile               SBML-Qual/BMA json File

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -D, --debug           Display a lot of debug information
  -c, --csv             Additionally store the information in a .bnet and
                        separate CSV files compatible with the Spreadsheet-
                        SBML-qual format
  -s, --sif             Store the influence information in a separate SIF file
  -r S, --remove S      Delete connected components in the resulting model if
                        their size is smaller than S. A negative S leads to
                        keep only the biggest(s) connected component(s)
  -f FIXED, --fixed FIXED
                        A CSV file containing input values or knock-ins/knock-
                        outs, one per line, with name in the first column and
                        the value in the second.
  -n, --names           Use the names as IDs in the SBML file
  -u [UPSTREAM ...], --upstream [UPSTREAM ...]
                        Only species upstream of this/these species will be
                        kept
  -d [DOWNSTREAM ...], --downstream [DOWNSTREAM ...]
                        Only species downstream of this/these species will be
                        kept
  -b, --bma             Output to BMA json format
  -g GRANULARITY, --granularity GRANULARITY
                        When exporting to BMA, use this granularity
  -i INPUT, --input INPUT
                        When exporting to BMA, nodes with no input should be
                        set to this value
  -C, --colourConstant  When exporting to BMA, colour all variables pink
                        (defaults to colour by compartment)

Metadata

Release files for casq 1.5.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 casq 1.5.1
File Size Uploaded Provenance Actions
casq-1.5.1.tar.gz 808.9 kB Without provenance Details for casq-1.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 873.0 kB

Release files / casq-1.5.1.tar.gz

Download URL casq-1.5.1.tar.gz
Size 808.9 kB
Tags Source
SHA-256 checksum
How to use checksums
076a71f600b2a86e1d219047e21daf95439a8c46ca1c40a73a096a24267c2cc4
BLAKE2b-256 checksum
How to use checksums
1409b29c983d520b750306e263cd78eb6a1988f199d15280e67d8515327e29eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.15.0"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.15.0","system":{"name":"Linux","release":"6.12.8-0-virt"}} HTTPX2/2.16.2

Release files / casq-1.5.1-py3-none-any.whl

Download URL casq-1.5.1-py3-none-any.whl
Size 64.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a85af79d6ee590a0fc938573f699a10c87b4c2b5d41c4b3bd507ca3965ffc7bb
BLAKE2b-256 checksum
How to use checksums
18941a98e5c3adc0f397e1df097ee204e25ddbbd7c9fdf7c5029887efed27aae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.15.0"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.7 9 Jun 2026","python":"3.15.0","system":{"name":"Linux","release":"6.12.8-0-virt"}} HTTPX2/2.16.2

Security for casq 1.5.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.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files No 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