Skip to main content

Pepkio Realistic Random Sequence Generator

A Python client and command-line package for programmatically generating biologically constrained synthetic DNA, RNA, and protein sequences with exact GC ratios, capped homopolymer lengths, frameshift-free ORFs, and reproducible seeds.

What It Does

The Pepkio Realistic Random Sequence Generator creates statistically realistic biological sequences for bioinformatics, genomics, and synthetic biology applications. Unlike unconstrained uniform random string generation, this package synthesizes DNA, RNA, and peptide sequences under explicit biological rules—such as host-specific GC ratios, homopolymer repeat limits, open reading frames (ORFs) free of premature stop codons, custom motif placements, and UniProtKB amino acid distributions.

Features

  • Multi-Molecule Generation: Synthesize DNA, RNA, or protein sequences from 10 to 50,000 residues.
  • GC Content Control: Specify exact target GC percentages (0.0% to 100.0%) for DNA and RNA.
  • Homopolymer Suppression: Cap consecutive identical base or amino acid repeats to avoid sequencing artifacts.
  • ORF Framing: Enforce canonical start codons (ATG/AUG), eliminate premature stop codons, and terminate with valid stops.
  • Motif & Tail Embedding: Insert custom nucleotide or peptide motifs (5', 3', or internal) and append customizable RNA poly(A) tails.
  • Empirical Proteomics Models: Select between uniform amino acid frequencies or empirical UniProtKB average distributions.
  • Deterministic PRNG Seeding: Pass integer seeds for bit-for-bit reproducible sequence generation.
  • FASTA Export: Format headers and line-wrapping options (60-char, 80-char, or unwrapped).

Installation

Install the package via pip:

pip install pepkio-realistic-random-seq-generator

Or using uv:

uv add pepkio-realistic-random-seq-generator

Quick Example

Set your environment variable (if using API endpoints) and generate GC-matched synthetic DNA:

from pepkio_realistic_random_seq_generator import PepkioClient, SequenceInput

# Initialize client
client = PepkioClient()

# Generate 3 synthetic DNA sequences matching a 42% target GC content
params = SequenceInput(
    sequence_type="dna",
    length=300,
    count=3,
    gc_percent=42.0,
    homopolymer_max=3,
    seed=12345,
    header_prefix="ctrl_dna"
)

response = client.run(params)
result = response.get_parsed_result()

print(f"Generated {result.count} sequences (actual average GC: {result.gc_actual_percent:.1f}%)")
print(result.fasta)

For command-line usage:

pepkio-realistic-random-seq-generator run --sequence-type dna --length 300 --count 3 --gc-percent 42.0 --seed 12345

Typical Use Cases

  • qPCR & PCR Controls: Synthesize complex, non-reactive background DNA to test primer cross-reactivity and probe specificity.
  • Motif Discovery Null Models: Produce GC-matched background sequence sets for HOMER and MEME motif enrichment evaluation.
  • Mass Spectrometry Decoy Databases: Generate decoy peptide libraries reflecting UniProtKB frequencies to calculate false discovery rates (FDR) in proteomics.
  • Synthetic mRNA Design: Build in vitro transcription (IVT) construct templates with defined start/stop codons and 3' poly(A) tails.
  • NGS Benchmarking: Create synthetic reference FASTA sets with controlled GC gradients and homopolymer limits to benchmark mappers and variant callers.

Scientific Background

  • Nucleotide Thermodynamics & GC Content: GC pairs contribute 3 hydrogen bonds versus 2 for AT pairs. GC fraction directly influences duplex melting temperature ((T_m)) and secondary structure stability: [ \text{GC%} = \frac{N_G + N_C}{N_A + N_T + N_G + N_C} \times 100 ]
  • ORF Stop Codon Probability: In uniform random DNA ((P(A)=P(C)=P(G)=P(T)=0.25)), any triplet has a stop codon probability of (P(\text{Stop}) = 3/64 \approx 4.69%), yielding an expected random ORF length of only ~21 codons. Enforcing ORF constraints removes internal premature stops (TAA, TAG, TGA).
  • Proteomic Residue Frequencies: Natural proteins deviate significantly from uniform 5.0% amino acid frequencies (e.g., Leucine ~9.65% vs. Tryptophan ~1.08%). Using empirical UniProtKB frequencies produces realistic mass-to-charge ((m/z)) distributions for decoy databases.

Web Application

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

Web Application: https://www.pepkio.com/tools/realistic-random-seq-generator

The web application allows users to interactively set GC content sliders, configure homopolymer thresholds, visualize sequences in real time, and export FASTA files without writing code.

Documentation and Resources

GitHub Repository: https://github.com/pepkio/pepkio-realistic-random-seq-generator

Web Application: https://www.pepkio.com/tools/realistic-random-seq-generator

Source and issues: https://github.com/pepkio/pepkio-realistic-random-seq-generator

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

  • random DNA sequence generator
  • synthetic RNA generator
  • random protein sequence generator
  • GC content control
  • bioinformatics sequence generator
  • FASTA generator
  • open reading frame generator
  • mock sequence generator
  • null model background sequence
  • decoy peptide generator
  • target decoy database proteomics
  • random peptide generator
  • homopolymer suppression
  • seed based sequence generator
  • qPCR negative control generator
  • motif discovery background sequence
  • NGS aligner benchmark
  • RNA poly A tail generator
  • synthetic mRNA design
  • custom amino acid frequency
  • UniProt amino acid distribution
  • reproducible sequence generation
  • molecular biology sequence simulator
  • nucleotide composition matching
  • biological sequence generator CLI
  • Python sequence generator library
  • Pepkio bioinformatics tool
  • GC matched background generator
  • synthetic sequence FASTA generator
  • how to generate random DNA with specific GC content
  • generate random RNA with poly A tail for IVT controls
  • background sequence model generator for HOMER motif search
  • MEME motif discovery null control sequence generator
  • Proteomics decoy peptide database generator UniProt frequency
  • synthetic DNA background matrix for multiplex qPCR assays
  • prevent premature stop codons in synthetic DNA sequence
  • seed reproducible pseudo random sequence generator Python
  • homopolymer limit nucleotide sequence generator for long reads
  • realistic random peptide generator mass spectrometry decoy
  • command line tool for generating mock FASTA files
  • Python API for realistic synthetic nucleotide generation
  • generate non target control sequences for primer binding assays
  • synthetic ORF generator with start ATG and stop codons
  • calculate actual vs target GC percentage in random DNA

Metadata

Release files for pepkio-realistic-random-seq-generator 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-realistic-random-seq-generator 0.1.0
File Size Uploaded Provenance
pepkio_realistic_random_seq_generator-0.1.0.tar.gz 42.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pepkio-realistic-random-seq-generator 0.1.0
File Interpreter ABI Platform
pepkio_realistic_random_seq_generator-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.4 kB

Release files / pepkio_realistic_random_seq_generator-0.1.0.tar.gz

Download URL pepkio_realistic_random_seq_generator-0.1.0.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d589db0a078a960d17afaa8155e6c571fde6210a114cff0c1d670f898bb92f03
BLAKE2b-256 checksum
How to use checksums
cf9169b81f2f5ebce59abe5d8fa66313b3dc2cd5c33442debd3a9dc54b3ea438
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_realistic_random_seq_generator-0.1.0-py3-none-any.whl

Download URL pepkio_realistic_random_seq_generator-0.1.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9054c2a012a3bac24b5efb287ac93f63f786c6c3bcf6f43780c47b2e277b7ff9
BLAKE2b-256 checksum
How to use checksums
19f5e4eabb54de36b072afbb16c0cdf4b08e600a1a0906b8c86b082c544821ac
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-realistic-random-seq-generator 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