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
| Option | Description | Default |
|---|---|---|
--primers-dir | Directory with primer JSON files | - |
--parallel | Number of threads | 4 |
--no-cache | Disable SQLite caching | False |
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-cacheflag
Output
CSV Report
BatchSpeciesResult
Performance Tips
- Use caching for repeated analyses
- Match threads to CPU cores
- Organize primers by project/experiment
- Pre-filter primers before batch processing