This program designs PCR primers for a multiplex of given target regions of a DNA sequence in a FASTA file.
The script takes several arguments:
| Parameter | Description |
|---|---|
| region_file (required) | The path to the primer design region file. This file should have three columns: name, start position, and end position (1-based). It can be in either tsv or xlxs format. |
| input_file (required) | The path to the input FASTA file. |
| target_tm | The desired melting temperature (Tm) for the primers. Default is 60. |
| primer_len | The desired length of the primers. Default is 20. |
| product_size_min | The desired min size for the PCR product. Default is 400. |
| product_size_max | The desired max size for the PCR product. Default is 800. |
| ret | The maximum number of primer pairs to return. Default is 100. |
| Q5 | A boolean indicating whether to use NEB Q5 hotstart polymerase settings for primer3. Default is True. |
| background | The path to the mispriming library FASTA file. Default is an empty string. |
| output | The name of the output file. Default is 'MultiPlexPrimerSet'. |
| eval | The maximum number of primer sets to evaluate. Default is 10000. |
The main function of the script is 'design_primers', which takes the input FASTA file, start and end positions of a target region, and the arguments specified using argparse, and returns the best primer set for that region as a list of dictionaries containing information about the primer pairs.
The 'design_primers' function performs the following steps:
- Parses the input FASTA file and extracts the target region sequence.
- Sets up the primer3 input parameters based on the specified arguments.
- Runs primer3 to design the primers.
- Extracts information about the primer pairs.
- Determines the best set of multiplex primers.
Installation
pip install getMultiPrimerSet
Example usage
getMultiPrimerSet --region_file "./example/primer_regions.tsv" --input_file "./example/ref.fasta" --target_tm 65 --primer_len 20 --product_size_min 400 --product_size_max 800 --ret 100 --eval 1000 --Q5 --background "" --output "example"
Metadata
Release files for getMultiPrimerSet 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getMultiPrimerSet-1.0.2.tar.gz | 6.3 kB | Without provenance | Details for getMultiPrimerSet-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getMultiPrimerSet-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for getMultiPrimerSet-1.0.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / getMultiPrimerSet-1.0.2.tar.gz
| Download URL | getMultiPrimerSet-1.0.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d5f95ad0e35fd0edd6f5fae77bfdcb287b15c860503799a6a3093a4c61c7ddc
|
|
BLAKE2b-256 checksum How to use checksums |
0566286405aef25509839c1719d5cd3290645f1cb66222ec9a9d3ae396a193dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / getMultiPrimerSet-1.0.2-py3-none-any.whl
| Download URL | getMultiPrimerSet-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6262a5c4e9b722b747c27ed6f02152cc9a51858143cdecc742375a87dddcc814
|
|
BLAKE2b-256 checksum How to use checksums |
bda84d43a69af34b324ae6e952bc1c931c45fbda354891b3328852f29823c831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for getMultiPrimerSet 1.0.2
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.