Skip to main content

anospp-analysis

Python package for ANOSPP data analysis

ANOSPP is the multiplexed amplicon sequencing assay for Anopheles mosquito species identification and Plasmodium detection. This repository contains the code for analysis of the sequencing results pre-processed with nf-core ampliseq pipeline.

Installation

For latest released version

conda install -c bioconda anospp-analysis

For development setup, see instructions below

Usage

Key analysis steps are implemented as standalone scripts:

  • anospp-prep takes DADA2 output files and targets primer sequences, demultiplexes the amplicons and yields haplotypes table
  • anospp-qc takes haplotypes table, DADA2 stats table and samples manifest and produces QC plots
  • anospp-plasm blasts Plasmodium sequences against reference dataset to determine species and infer sample infection status
  • anospp-nn compares k-mer profiles of mosquito targets against a reference dataset and provides probabilistic species calls
  • anospp-vae provides finer scale species prediction for An. gambiae complex with VAE projection
  • anospp-agg combines all results into a single table

Development

Setup

Installation is hybrid with conda + poetry:

git clone git@github.com:malariagen/anospp-analysis.git
cd anospp-analysis
git checkout dev
conda env create -f environment.yml
conda activate anospp_analysis_dev
poetry install

Usage & testing

The code in this repository can be accessed via wrapper scripts:

anospp-qc \
    --haplotypes test_data/haplotypes.tsv \
    --samples test_data/samples.csv \
    --stats test_data/stats.tsv \
    --outdir test_data/qc

Besides, individual components are available as a python API:

$ python
>>> from anospp_analysis.util import *
>>> PLASM_TARGETS
['P1', 'P2']

Adding Python deps

Introducing python dependencies should be done via poetry:

poetry add package_name

This should update both pyproject.toml and poetry.lock files

If the package should be used in development environment only, use

poetry add package_name --dev

To update environment after changes made to pyproject.toml and/or poetry.lock

poetry install

Adding non-Python deps

Introducing non-python dependencies should be done via conda: edit environment.yml, then re-create the conda environment and poetry deps:

conda env create -f environment.yml
conda activate anospp_analysis
poetry install

If changes in conda environment introduce changes to the python installation, one should update poetry lock file

poetry lock

Metadata

Release files for anospp-analysis 0.5.0

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

Source distribution (sdist)

Source distribution for anospp-analysis 0.5.0
File Size Uploaded
anospp_analysis-0.5.0.tar.gz 43.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anospp-analysis 0.5.0
File Interpreter ABI Platform
anospp_analysis-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 92.3 kB

Release files / anospp_analysis-0.5.0.tar.gz

Download URL anospp_analysis-0.5.0.tar.gz
Size 43.7 kB
Tags Source
SHA-256 checksum
How to use checksums
259529d9ea49d2bbe1bdb465705601181fc93956903b7dd4fc33c6de61582da8
BLAKE2b-256 checksum
How to use checksums
2a00a980f663d7bb18df8a30597e015679fa794fa3eb16bcf2658718f723e639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.20 Darwin/25.4.0

Release files / anospp_analysis-0.5.0-py3-none-any.whl

Download URL anospp_analysis-0.5.0-py3-none-any.whl
Size 48.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85a938b693d8dfd00bb266a4d56b165d2583c9a0d040e2049e183e2d8e9b8d59
BLAKE2b-256 checksum
How to use checksums
74e61f7afcd44686e519535bc03974a54f9ecab64667a6868e0162f67bd6c3bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.10.20 Darwin/25.4.0

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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