Skip to main content

Computase

Verified local bioinformatics computation.

Computase provides five sequence operations through equally supported Python and MCP interfaces:

  • sequence composition, GC bounds, and GC skew
  • DNA/RNA reverse complements
  • translation with selectable NCBI genetic codes
  • six-frame candidate ORF enumeration
  • IUPAC motif scanning on either strand

Computase is sequence-only in 0.1.0. It does not predict genes, fetch remote records, run alignments, or provide generic statistics.

Install

pip install computase

Python 3.11 or newer is required. Computation is local; input sequences are not sent to a service.

Python

from computase.seq import reverse_complement, summarize_sequence

summary = summarize_sequence(">example\nAAGCSWN\n")
print(summary.gc_min_percent, summary.gc_max_percent)

result = reverse_complement("AUGC")
print(result.reverse_complement)

All operations accept raw sequences or one FASTA record. Results include the Computase version and effective parameters but never echo the full input sequence.

MCP over stdio

{
  "mcpServers": {
    "computase": {
      "command": "computase"
    }
  }
}

The five tools are computase_summarize_sequence, computase_reverse_complement, computase_translate_sequence, computase_enumerate_orfs, and computase_scan_motif.

MCP over streamable HTTP

computase --transport streamable-http --host 127.0.0.1 --port 8000

Connect an MCP client to http://127.0.0.1:8000/mcp. HTTP binds to localhost by default.

Scientific conventions

  • Coordinates are 0-based and end-exclusive on the forward reference.
  • Coordinates index the normalized sequence after FASTA headers and whitespace are removed.
  • Strand is reported separately; normalized_sequence[start:end] reproduces each forward span.
  • ORFs are candidates, not gene predictions.
  • IUPAC GC bounds preserve uncertainty rather than assigning probabilities.
  • Sequence length is capped at 5,000,000 nucleotides; motif and result limits are enforced.

Companion Skill

skills/computase/SKILL.md teaches agents when and how to choose the five MCP tools. Longer examples are in skills/computase/references/usage-examples.md.

Development

Use uv sync --locked --extra dev, then run:

uv run ruff format --check src tests evaluations
uv run ruff check src tests evaluations
uv run mypy src tests evaluations
uv run pytest -q
uv run python -m evaluations.runner

See CONTRIBUTING.md for reference-vector requirements.

License

MIT. See LICENSE.

Download files

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

Source Distribution

computase-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

computase-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file computase-0.1.0.tar.gz.

File metadata

  • Download URL: computase-0.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for computase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1367dd37dd8bb40cdb6637dfd840f800aa8db2e8e7a7b192b0948b81445daee
MD5 ab4c35c36890dbf698d8b35c7b61535a
BLAKE2b-256 4691163dd863b31ec6af6825567e9c90b588469325f9b420ff5a3c80629bb2f2

See more details on using hashes here.

File details

Details for the file computase-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: computase-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for computase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00325fdcdab2b21e6390f6239f0ab7e304f19a981df48e154132c5d11fb88c7f
MD5 787d31aa9194bc1b2a2ffd2ceab30d26
BLAKE2b-256 83cf95c0c4159b53c9eb7082cc58fd6813103d346ea1dca01ab0b087275c484d

See more details on using hashes here.

Supported by

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