Approximate Cluster Identities (ACI)
A python package to visualise the approximate within and between cluster identities of a large number of short sequences as assigned by e.g. mmseqs2, cd-hit or panaroo.
Installation
pip install approximate-cluster-identities
Usage
aci -h
Create visualisations of approximate between and within cluster nucleotide identities for short sequences.
positional arguments:
input_fasta Input FASTA file of all sequences.
input_json Input JSON file with cluster assignments ({<sequence header>: <cluster assignment>}).
optional arguments:
-h, --help show this help message and exit
--clusterGML CLUSTERGML
Output path of GML clustering file to view with Cytoscape or similar.
--distanceTable DISTANCETABLE
Output path of CSV of distances (may take a long time).
--clusterPlot CLUSTERPLOT
Output path of jointplot to visualise between and within cluster identities.
--kmerSize KMERSIZE Kmer size (default: 9).
--windowSize WINDOWSIZE
Minimiser window size (default: 20).
--threshold THRESHOLD
Jaccard similarity threshold (default: 0.9).
--threads THREADS Threads for sketching and jaccard distance calculations (default: 1).
--shorter Assess identity relative to the shorter sequence.
Methods
We calculate sequence identities by pairwise calculation of jaccard distances using minimizers of size --kmerSize where 1 k-mer is sampled from a window that slides across each sequence, each containing a total of --windowSize k-mers. Increasing --windowSize will decrease the number of minimizers per sequence, decreasing the sensitivity of the identity calculations but increasing the speed of the programme. This tool is designed to give you an idea of how variable a large number of short sequences are within and between clusters to choose an appropriate sequencing clustering tool and its parameters.
Example output
Example cluster plots for data in test/ using --windowSize 1 and --windowSize 100.
Window size = 1
Mean identities
Mode identities
Median identities
Range identities
Window size = 100
Mean identities
Mode identities
Median identities
Range identities
Metadata
Release files for approximate-cluster-identities 0.1.6
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 |
|---|---|---|---|---|
| approximate_cluster_identities-0.1.6.tar.gz | 9.2 kB | Without provenance | Details for approximate_cluster_identities-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| approximate_cluster_identities-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for approximate_cluster_identities-0.1.6-py3-none-any.whl |
Total release size: 19.4 kB
Release files / approximate_cluster_identities-0.1.6.tar.gz
| Download URL | approximate_cluster_identities-0.1.6.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
484110664cfb5983c56c392a1dc060f88dbf5bbd5e082fef639bc597056afdf8
|
|
BLAKE2b-256 checksum How to use checksums |
ba8ef9ffb756d79b4914963434bd9b08a916776ba2f7c1091ebd615ad7999fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / approximate_cluster_identities-0.1.6-py3-none-any.whl
| Download URL | approximate_cluster_identities-0.1.6-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e2717b24cca4f2a59463ab51c7f16e0cca43261e9ecb1a3b8d76d6425970407
|
|
BLAKE2b-256 checksum How to use checksums |
0b5744751b79e374862be3b83ccedf7241311a3b0f598f7718bef001f8191768
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for approximate-cluster-identities 0.1.6
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.