VAMB abundance profile
This is a small package to create an abundance profile from a VAMB output.
We assume that you have already run VAMB and have the output files, and we read the abundance.npz file and composition.npz files to create a table with the abundance of each contig in each sample.
We append the cluster information from vae_clusters.tsv to the table.
Next, we use the first dimnension of a PCA to reduce the dimensionality of the data so that we end up with a single abundance profile for each cluster.
You can write the final abundance profile to a file using the required --cluster option, and
you can also write the intermediate table to a file using the optional --abundance option.
Installation
You can install the package using pip:
pip install vamb-abundance-profile
Usage
Note that by default the vamb directory is in the output directory you specified when running VAMB.
That directory should contain the abundance.npz, composition.npz, and vae_clusters.tsv files.
vamb_abundance_profile --vamb vamb/vamb/ --cluster vamb/clusters.tsv.gz -v
Output
The output is a tab-separated file with the abundance profile of each cluster in each sample.
Note that by default we use gzip compression. If your file names do not end .gz, we add that for you!
If you don't want compression, then uncompress the file after running the script.
Metadata
Release files for vamb-abundance-profile 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vamb_abundance_profile-0.0.3.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vamb_abundance_profile-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.7 kB
Release files / vamb_abundance_profile-0.0.3.tar.gz
| Download URL | vamb_abundance_profile-0.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0da20fbf01a091f07d0542af0362cdf7ad22cafec32c185bf86f0c324b85cc82
|
|
BLAKE2b-256 checksum How to use checksums |
3eaa1007cde7537b03db2f77421b9f9b8488a53334b479d5d6c5d0ea380dcd9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / vamb_abundance_profile-0.0.3-py3-none-any.whl
| Download URL | vamb_abundance_profile-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5ad415b7d5b1adaac08d2aaca99d3624dac43f8a3ccbd1efd57438eb793a1d1
|
|
BLAKE2b-256 checksum How to use checksums |
b2c8700c6c8e5d9770e84a1a6642e6b30b101cc63862f47c889e04ead49197f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|