Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vamb_abundance_profile-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vamb_abundance_profile-0.0.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for vamb_abundance_profile-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0da20fbf01a091f07d0542af0362cdf7ad22cafec32c185bf86f0c324b85cc82
MD5 44d9441b4da15c81c258cfc500d5530b
BLAKE2b-256 3eaa1007cde7537b03db2f77421b9f9b8488a53334b479d5d6c5d0ea380dcd9d

See more details on using hashes here.

File details

Details for the file vamb_abundance_profile-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vamb_abundance_profile-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ad415b7d5b1adaac08d2aaca99d3624dac43f8a3ccbd1efd57438eb793a1d1
MD5 29428f2648b1f6014c6c839360d6763d
BLAKE2b-256 b2c8700c6c8e5d9770e84a1a6642e6b30b101cc63862f47c889e04ead49197f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page