Skip to main content

Minimal Trap Spaces computation using Maximal Siphons

Project description

trappist logo

Trappist is a tool for computing minimal trap spaces of a Boolean model.

Install

You can install trappist with pip directly from the Package Index:

$ python3 -m pip install trappist

or grab the very latest version from the source:

$ python3 -m pip install -e git+https://github.com/soli/trap-spaces-as-siphons.git

You will also need the clingo ASP solver in your PATH for the asp method of computing the trap spaces (default). Instructions are provided directly on the Potassco pages.

Note that Trappist does install the PySAT module so that the sat method is always available even if you do not have clingo.

Run trappist in a Binder image

CMSB 2022 Submitted version: Binder

Latest version, with 2022-12-01 colomoto-docker image: Binder

Read about trappist

You can find articles describing trappist here, here and here (tsconj's improvements have been backported to trappist with conj and conj-c solvers).

Run trappist from the command line

After installing trappist (and maybe clingo), just run

$ trappist -h
usage: trappist [-h] [-d] [-v] [-m MAX] [-p PARALLEL] [-t TIME] [-c {min,max,fix}] [-s {asp,cp,ilp,sat,naive,conj,conj-c}] [infile]

Compute minimal trap-spaces of a Petri-net encoded Boolean model. Copyright (C) Sylvain.Soliman@inria.fr and
giang.trinh91@gmail.com GPLv3

positional arguments:
  infile                Boolnet (.bnet) file of the model or Petri-net (PNML) file of its Petri net encoding. 'naive' and
                        'conj(-c)' solvers only handle .bnet input.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Print debugging information.
  -v, --version         show program's version number and exit
  -m MAX, --max MAX     Maximum number of solutions (0 for all).
  -p PARALLEL, --parallel PARALLEL
                        Maximum number of cores to use [only for naive and conj(-c) method] (0 for no-limit).
  -t TIME, --time TIME  Maximum number of seconds for search (0 for no-limit).
  -c {min,max,fix}, --computation {min,max,fix}
                        Computation option.
  -s {asp,cp,ilp,sat,naive,conj,conj-c}, --solver {asp,cp,ilp,sat,naive,conj,conj-c}
                        Solver to compute the Maximal conflict-free siphons. 'asp', 'naive' and 'conj(-c)' require `clingo`, 'cp'
                        requires `minizinc`.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trappist-1.1.3.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

trappist-1.1.3-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file trappist-1.1.3.tar.gz.

File metadata

  • Download URL: trappist-1.1.3.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for trappist-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6afde7e847015110f63eb9c9b2777fe2968a49209cf317c795e1bafc1ba44145
MD5 f66142d55566fe353c502aa990f4d4d2
BLAKE2b-256 2bea9f3f3cc4f09c4c58c58c935b141c4ec4ea199b5c200adfc6c893737aa397

See more details on using hashes here.

File details

Details for the file trappist-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: trappist-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for trappist-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9fbe171626057c206ca6ddf0544c447e655b9200bea2f71de00a71e8eb9dec4
MD5 6fb15717166290ed9adad227b8721e80
BLAKE2b-256 7d24d6226d4978c558b7463d06306f24f5d5930a89b357cd9a64dc1de908f7c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page