A very simple package to convert the output of VAMB to an abundance table
Project description
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.
Project details
Release history Release notifications | RSS feed
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 vamb_abundance_profile-0.0.3.tar.gz.
File metadata
- Download URL: vamb_abundance_profile-0.0.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0da20fbf01a091f07d0542af0362cdf7ad22cafec32c185bf86f0c324b85cc82
|
|
| MD5 |
44d9441b4da15c81c258cfc500d5530b
|
|
| BLAKE2b-256 |
3eaa1007cde7537b03db2f77421b9f9b8488a53334b479d5d6c5d0ea380dcd9d
|
File details
Details for the file vamb_abundance_profile-0.0.3-py3-none-any.whl.
File metadata
- Download URL: vamb_abundance_profile-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ad415b7d5b1adaac08d2aaca99d3624dac43f8a3ccbd1efd57438eb793a1d1
|
|
| MD5 |
29428f2648b1f6014c6c839360d6763d
|
|
| BLAKE2b-256 |
b2c8700c6c8e5d9770e84a1a6642e6b30b101cc63862f47c889e04ead49197f7
|