Skip to main content
Process multiple primer files efficiently with parallel execution and caching.

Overview

PrimerLab supports batch processing for species-check operations:
  • Directory Loading: Load all primer JSON files from a directory
  • Parallel Processing: Multi-threaded execution with ThreadPoolExecutor
  • SQLite Caching: Cache alignment results to avoid redundant calculations
  • Consolidated Reports: Summary CSV with all results

CLI Usage

Batch Species-Check

Options

Python API

batch_species_check_api

Using File List

Batch Loader Module

load_primers_from_directory

load_multi_fasta_templates

Caching

SQLite Cache

Alignment results are cached in SQLite for performance:

Cache Configuration

  • Location: ~/.primerlab/cache.db
  • TTL: 7 days (default)
  • Disable: Use --no-cache flag

Output

CSV Report

BatchSpeciesResult

Performance Tips

  1. Use caching for repeated analyses
  2. Match threads to CPU cores
  3. Organize primers by project/experiment
  4. Pre-filter primers before batch processing

See Also