ANOSPP data analysis
Project description
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.
Usage
Key analysis steps are implemented as standalone scripts:
anospp-preptakes DADA2 output files and targets primer sequences, demultiplexes the amplicons and yields haplotypes tableanospp-qctakes haplotypes table, DADA2 stats table and samples manifest and produces QC plots
Development
Setup
Installation is hybrid with conda + poetry:
git clone git@github.com:malariagen/anospp-analysis.git
cd anospp-analysis
mamba env create -f environment.yml
conda activate anospp_analysis
poetry install
Activate development environment:
poetry shell
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']
Automated testing & CI
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
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:
mamba env create -f environment.yml
conda activate anospp_analysis
poetry install
Changes in conda environment might also introduce changes to the python installation, in which case one should update poetry lock file
poetry lock
Release checklist
While in dev branch
- test functionality (TODO CI)
- bump version in
pyproject.toml
Then
- merge into master
- github release
- pypi release
Conda recipe update conda.recipe/meta.yaml:
- check deps vs
environment.yamlandpyproject.toml - bump version
- update sha256 from pypi project (download files > tar.gz > view hashes)
- test conda recipe with
bioconda-utils build --git-range mastervs bioconda-recipes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anospp_analysis-0.1.3.tar.gz.
File metadata
- Download URL: anospp_analysis-0.1.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.10 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
667ba1e22bd3db79ef5d0a72bfc9a132017c65c22f5247e05f85e80210766c67
|
|
| MD5 |
2142b5c29815ae2d5556ac17718f65e2
|
|
| BLAKE2b-256 |
b751eb61a99a878a8062f54fcbda02ce5543240d32e7a52a85ee3e1c51fb6368
|
File details
Details for the file anospp_analysis-0.1.3-py3-none-any.whl.
File metadata
- Download URL: anospp_analysis-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.10 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c267cc36c096a3955f1fd7a8fbceee1535854176096d73ea4d4b7da84e37cc59
|
|
| MD5 |
5d9966c42cda40489b40c3f201b2033f
|
|
| BLAKE2b-256 |
459e96c32d97da2704472017b31e8776e190a4401c86b8d6f83feb411c6a3a39
|