Skip to main content

Primavera

Primavera is a Python library to plan and analyze primer-based verification of DNA assemblies, using Sanger sequencing or verification PCR. It implements methods to design and select primers to ensure that the relevant assembly segments will be covered, and can generate simple (but approximative) plots summarizing the results of a batch of Sanger sequencing.

Primer selection example

The following code assumes that a file available_primers.fa contains the labels and sequences of all available primers in the lab, and that the assemblies to be sequence-verified have annotations indicating the zones that the sequencing should cover and zones where primer annealing should be avoided.

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Primavera/master/docs/_static/images/annotated_genbank.png
from primavera import PrimerSelector, Primer, load_record
import os

# LOAD ASSEMBLIES RECORDS AND AVAILABLE PRIMERS
records = [load_record(file_path, linear=False)
           for file_path in ['my_record_1.gb', 'my_record_2.gb']]
available_primers = Primer.list_from_fasta("example_primers.fa")

# SELECT THE BEST PRIMERS
selector = PrimerSelector(tm_range=(55, 70), size_range=(16, 25))
selected_primers = selector.select_primers(records, available_primers)

# PLOT THE COVERAGE AND WRITE THE PRIMERS IN A SPREADSHEET
selector.plot_coverage(records, selected_primers, 'coverage.pdf')
selector.write_primers_table(selected_primers, 'selected_primers.csv')

The returned selected_primers contains a list of lists of primers (one list for each construct). The PDF report returned looks like this:

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Primavera/master/docs/_static/images/annotated_primer_selection.png

Infos

PIP installation:

pip install primavera

Web documentation: https://edinburgh-genome-foundry.github.io/Primavera/

Github page: https://github.com/Edinburgh-Genome-Foundry/Primavera

Live demo: http://cuba.genomefoundry.org/select_primers

License: MIT

Copyright 2017 Edinburgh Genome Foundry, University of Edinburgh

More biology software

https://raw.githubusercontent.com/Edinburgh-Genome-Foundry/Edinburgh-Genome-Foundry.github.io/master/static/imgs/logos/egf-codon-horizontal.png

Primavera is part of the EGF Codons synthetic biology software suite for DNA design, manufacturing and validation.

Metadata

Release files for primavera 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for primavera 0.1.14
File Size Uploaded
primavera-0.1.14.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for primavera 0.1.14
File Interpreter ABI Platform
primavera-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 kB

Release files / primavera-0.1.14.tar.gz

Download URL primavera-0.1.14.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ac3be9144a4e61206f154e597811f3a4ef831e7c19809137168df1bab9163984
BLAKE2b-256 checksum
How to use checksums
6d84b608f520a8f36e2a9d808e842e159bbddb1b9d66266508019fb6b2511a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2025.

Transparency log

Release files / primavera-0.1.14-py3-none-any.whl

Download URL primavera-0.1.14-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92e5c60091bb735ab459f03a121de13ca7d5da47f0a416a30f5f66205c8b90f6
BLAKE2b-256 checksum
How to use checksums
bdcf840304bf277d253629d793b7d40f3c34aac54485e60f9d6ce166da319704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.11

2 release files

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

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