Skip to main content

Generate PHA4GE-compatible primer scheme descriptions

Project description

Tests PyPI version

Primaschema

Currently under active development and unstable. Generates PHA4GE-compatible tiling amplicon scheme bundles from either 6 or 7 column Primal Scheme-like bed files and metadata contained in a YAML file.

Install (Python 3.10+)

pip install https://github.com/pha4ge/primaschema

Usage

% primaschema --help
usage: primaschema [-h] [--version] {hash-ref,hash-bed,validate,build,6to7} ...

positional arguments:
  {hash-ref,hash-bed,validate,build,6to7}
    hash-ref            Generate reference sequence checksum
    hash-bed            Generate a bed file checksum
    validate            Validate a primer scheme bundle containing info.yaml, primer.bed and reference.fasta
    build               Build a primer scheme bundle containing info.yaml, primer.bed and reference.fasta
    6to7                Convert a 6 column scheme.bed file to a 7 column primer.bed file using a reference sequence

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit


% primaschema build tests/data/primer-schemes/eden/v1
INFO: Scheme bed file has the expected number of columns (6)
INFO: Writing info.yaml with checksums
INFO: Generating primer.bed from scheme.bed and reference.fasta

info.yaml example

schema_version: 1-0-0
name: eden-v1
organism: SARS-CoV-2
organism_aliases:
  - nCoV-2019
aliases:
  - sydney
developers:
  - name: John-Sebastian Eden
    url: https://orcid.org/0000-0003-1374-3551
  - name: Eby Sim
    url: https://orcid.org/0000-0002-3716-7344
vendors: []
amplicon_size: 2500
repository_url: https://github.com/pha4ge/primer-schemes/tree/main/sars-cov-2/eden/v1
citations:
  - https://www.protocols.io/view/sars-cov-2-genome-sequencing-using-long-pooled-amp-kxygxeob4v8j/v1
notes:
  - Protocol includes addendum for ONT sequencing
primer_checksum: "primaschema:9e4c6a3b84cbd76cb3e38b893d0322b5799ecafe28d8cf7bf347ce6dcc5ee8cb"
reference_checksum: "primaschema:7d5621cd3b3e498d0c27fcca9d3d3c5168c7f3d3f9776f3005c7011bd90068ca"

Development

# Inside a clean Python 3.10+ environment
git clone https://github.com/pha4ge/primaschema.git
cd primaschema
pip install --editable ./
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

primaschema-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

primaschema-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file primaschema-0.1.0.tar.gz.

File metadata

  • Download URL: primaschema-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for primaschema-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4ae5e8ac6e4dec803457bcd646ba53ffcf94d535a718d066722dd0ab2f8654b
MD5 299acfa8e18cc6626f445d86534cf11d
BLAKE2b-256 6ad83384854b821605bc82eeb0a99f567eec871dc207c68bcac76be131c66ad9

See more details on using hashes here.

File details

Details for the file primaschema-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: primaschema-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for primaschema-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d83860b5e43dd0a35b55618eca2d931e753ada555c6f561972a0ecea0e8d41
MD5 c87319f30795a0c72c684a8fbd7d0372
BLAKE2b-256 9b0a186c5041e325143b0d18898867e08c7574c150b4329ea6fa26318fd7cadb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page