Skip to main content

Pepkio Instant Restriction Mapper

pepkio-instant-restriction-mapper is a Python client and REST API wrapper for identifying restriction enzyme cleavage sites, screening single-cut cloning vectors, and predicting restriction fragment size distributions in circular and linear DNA sequences.

What It Does

Restriction mapping is essential for plasmid vector design, recombinant DNA cloning, and diagnostic digest verification. Searching DNA sequences manually for restriction sites is prone to errors caused by degenerate IUPAC base codes, non-palindromic recognition motifs, 5'/3' overhang offsets, and circular topology origin wrapping.

This package connects Python scripts, Jupyter notebooks, and automated workflow pipelines to the Pepkio Tools REST API. It scans linear or circular DNA templates against REBASE-curated restriction endonucleases, identifies exact strand cut positions, classifies cleavage geometry (5' sticky, 3' sticky, or blunt end), filters unique cutters, and computes fragment size distributions for single or multi-enzyme digests.

Programmatic runs require a network connection and a Pepkio API key. Manifest and example queries do not require authentication.

Features

  • REBASE-Curated Enzyme Database: Scans sequences against standard Type II, Type IIP, Type IIS, and Type IIT restriction endonucleases (e.g., EcoRI, BamHI, HindIII, BsaI, BsmBI, XhoI).
  • Topology-Aware Fragment Calculation: Accurately computes cut positions and fragment length distributions for circular plasmids (spanning the 1-bp origin) and linear DNA templates.
  • Cut Frequency & Unique Cutter Filtering: Rapidly isolates single cutters (unique restriction sites) for vector linearization and cloning vector selection.
  • Overhang & Geometry Classification: Reports 5' cohesive overhangs, 3' cohesive overhangs, and blunt-end cut sites with exact strand cleavage coordinates.
  • Multi-Enzyme Virtual Digest: Computes predicted restriction fragment lengths resulting from single or double enzyme digestions.
  • Python Client & CLI: Includes typed Pydantic models, synchronous and asynchronous client methods, and command-line execution (pepkio-instant-restriction-mapper).

Installation

Install the package via pip:

pip install pepkio-instant-restriction-mapper

Set your Pepkio API key as an environment variable:

export PEPKIO_API_KEY="your_api_key_here"

Keys can be generated in your Pepkio API Settings.

Quick Example

Python API

from pepkio_instant_restriction_mapper import PepkioClient, RestrictionMapperInput

# Analyze a circular plasmid sequence for unique restriction cutters
with PepkioClient() as client:
    request = RestrictionMapperInput(
        sequence="AGCTTGGCACTGGCCGTCTTTTACAACGTCGTGACTGGGAAAACCCTGGCGTTACCCAACTTAATCGCCTTGCAGCACATCCCCCTTTCGCCAGCTGGCGTAATAGCGAAGAGGCCCGCACCGATCGCCCTTCCCAACAGTTGCGCAGCCTGAATGGCGAATGGCGCTTTGCCTGGTTTCCGGCACCAGAAGCGGTGCCGGAAAGCTGGCTGGAGTGCGATCTTCCTGAGGCCGATACTGTCGTCGTCCCCTCAAACTGGCAGATGCACGGTTACGATGCGCCCATCTACACCAACGTAACCTATCCCATTACGGTCAATCCGCCGTTTGTTCCCACGGAGAATCCGACGGGTTGTTACTCGCTCACATTTAATGTTGATGAAAGCTGGCTACAGGAAGGCCAGACGCGAATTATTTTTGATGGCGTTCCTATTGGTTAAA",
        sequence_name="pUC19_mini_region",
        topology="circular",
        cut_frequency=1,  # Unique single cutters
        hide_short_sites=True,
    )
    result = client.run(request)

    if result.result:
        sites = result.result.get("sites", [])
        print(f"Found {len(sites)} unique restriction cut sites.")
        for site in sites[:5]:
            print(f"- {site['enzyme']}: Cut position {site['cut_positions']}, Pattern: {site['pattern']}")

CLI Command

pepkio-instant-restriction-mapper run \
  --sequence "GAATTCGCGGCCGCGGATCCGAATTC" \
  --topology linear \
  --cut-frequency 1

Typical Use Cases

  • Plasmid Vector MCS Mapping: Identify unique single-cutter restriction sites within multiple cloning sites (MCS) for vector linearization.
  • Diagnostic Restriction Digest Design: Predict expected fragment size distributions to confirm correct recombinant clone insertion and orientation via agarose gel electrophoresis.
  • Golden Gate & Type IIS Assembly: Locate non-palindromic Type IIS cleavage sites (BsaI, BsmBI, SapI) cutting outside their recognition sequences for scarless assembly.
  • Restriction Fragment Length Polymorphism (RFLP): Detect single-nucleotide polymorphisms or indels that introduce or abolish restriction recognition motifs.
  • Gene Synthesis Screening: Screen synthetic gene constructs for unwanted internal restriction sites prior to commercial gene synthesis ordering.

Scientific Background

Type II restriction endonucleases catalyze site-specific double-stranded DNA phosphodiester bond cleavage within or near palindromic recognition motifs.

For a random DNA sequence with equal base frequencies ($25%\text{ A}, \text{T}, \text{G}, \text{C}$), the occurrence probability $P$ of a non-degenerate $n$-base restriction site is:

$$P = \left(\frac{1}{4}\right)^n$$

A hexanucleotide ($n = 6$) recognition motif occurs on average once every $4^6 = 4,096\text{ bp}$.

Topological context dictates fragment yield: a circular DNA molecule cleaved at $N$ restriction sites generates $N$ fragments, whereas a linear DNA molecule cleaved at $N$ sites produces $N + 1$ fragments. In circular plasmids, fragment calculation must correctly account for cleavage events spanning the origin (1-bp junction).

Web Application

For researchers who prefer a graphical interface, an interactive web version is available.

Web Application: https://www.pepkio.com/tools/instant-restriction-mapper

The web application provides interactive restriction map diagrams, a virtual agarose gel electrophoresis band simulator, customizable gel lane comparison, ELN-ready protocol summaries, and permanent shareable result URLs.

Documentation and Resources

GitHub Repository: https://github.com/pepkio/pepkio-instant-restriction-mapper

Web Application: https://www.pepkio.com/tools/instant-restriction-mapper

Source code and issue tracking are maintained on GitHub.

About Pepkio

Pepkio (https://www.pepkio.com/) develops software tools and bioinformatics solutions for life science researchers, including laboratory calculators and analysis services (https://www.pepkio.com/cro).

Keywords

  • restriction mapping
  • restriction enzyme finder
  • restriction site analyzer
  • plasmid restriction map
  • DNA cleavage site finder
  • restriction digest simulator
  • virtual gel electrophoresis
  • REBASE restriction enzyme database
  • unique cutter finder
  • single cutter restriction site
  • isoschizomer finder
  • neoschizomer finder
  • restriction fragment size calculator
  • double digest planner
  • plasmid vector MCS mapper
  • Type IIS restriction site
  • EcoRI cut site mapper
  • BamHI restriction site
  • HindIII restriction mapping
  • BsaI Golden Gate mapping
  • BsmBI assembly planner
  • linear vs circular DNA restriction
  • 5 prime sticky overhang finder
  • 3 prime sticky overhang finder
  • blunt end restriction cleavage
  • RFLP restriction site analysis
  • synthetic gene restriction screening
  • Python restriction mapper
  • pepkio-instant-restriction-mapper
  • molecular cloning restriction planner
  • how to find unique restriction sites in plasmid vector
  • calculate DNA restriction digest fragment lengths Python
  • restriction enzyme cut frequency circular DNA calculator
  • predict agarose gel band sizes from restriction digest
  • screen synthetic gene for internal BsaI restriction sites
  • identify 5 prime cohesive overhang restriction enzymes
  • map multiple cloning site MCS restriction endonucleases
  • restriction digest double cut fragment size calculator
  • automated plasmid vector restriction mapping Python API
  • REST API restriction enzyme recognition site scanner

Metadata

Release files for pepkio-instant-restriction-mapper 0.1.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 pepkio-instant-restriction-mapper 0.1.0
File Size Uploaded Provenance
pepkio_instant_restriction_mapper-0.1.0.tar.gz 37.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pepkio-instant-restriction-mapper 0.1.0
File Interpreter ABI Platform
pepkio_instant_restriction_mapper-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.7 kB

Release files / pepkio_instant_restriction_mapper-0.1.0.tar.gz

Download URL pepkio_instant_restriction_mapper-0.1.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5af607aff7f6cc7fd2b1fd727c1ba08b4d2f73e5d2c351fe703fc90f06f8eee4
BLAKE2b-256 checksum
How to use checksums
6b847a03df435427ceb4cb26be975682252c40b2e1dc1fb6fa232c1d9845a851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pepkio_instant_restriction_mapper-0.1.0-py3-none-any.whl

Download URL pepkio_instant_restriction_mapper-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6fe639dec91fe188915e08a6c0f1cdbcd22a059f5ffc4a9208b5aaf7f18d417
BLAKE2b-256 checksum
How to use checksums
26058a5bdbb84e810adc6a1c94af144eb6eadf0aecf1c00c670d17951621c067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pepkio-instant-restriction-mapper 0.1.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.

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

0.1.0 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