Skip to main content

Sankey diagram for Microbial Enrichment cultures.

Project description

Sankey diagram for microbial enrichment culture

Python package to make Sankey diagram for Microbial Enrichment cultures.

Installation

This package requires:

  • plotly and kaleido (with google chrome installed).
  • pandas and numpy.

It can be installed by cloning this repository and with pip:

pip isntall -e .

Usage

It can be used as a command line:

sankeymien -a abundance_table.tsv -j experiments.json -o testoutput -t taxon

-a abundance_table.tsv is a tabulated file containing as a first column organism ID, several columns corresponding to samples anda column containing taxon name (and given with -t taxon).

-j experiments.json is a json file indicating the experiments and the association between time steps and samples.

-o testoutput is the output folder.

Input

The abundance sample should look like this:

organism s1 s2 k1 Ec1_1 Ec1_2 Ec1_3 kec1 taxon
org_a 1 2 5 0 0 0 0 Bos
org_b 2000 3000 10 100 120 130 1 Escherichia
org_c 500 600 5 100 200 300 0 Parcubacteria
org_d 20 30 0 25 35 40 0 Methanobacterium

The json should correspond to this:

{
    "experiment_2": {
        "initial": ["s1", "s2"],
        "kit_control": ["k1"],
        "enrichment_T01": ["Ec1_1", "Ec1_2", "Ec1_3"],
        "kit_control_T01": ["kec1"]
    }
}

Output

It generates a Sankey diagram showing the flow of relative abundance of organisms according to the different time steps of the enrichment cultures. The final enrichment is linked to taxon name to show the composition of the final communities.

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

sankeymien-0.0.2.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

sankeymien-0.0.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file sankeymien-0.0.2.tar.gz.

File metadata

  • Download URL: sankeymien-0.0.2.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sankeymien-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f8b4e7ef9e60df00aff0d078c26fb69bec46762f4321f13bef94c6d4c8297e3c
MD5 46775698bd2d0f6ed48daf3b25b0e341
BLAKE2b-256 defc0e0218c28a03858b5738b6106f6be7c36b77e681a5854f105baf4a941b55

See more details on using hashes here.

Provenance

The following attestation bundles were made for sankeymien-0.0.2.tar.gz:

Publisher: python-publish.yml on ArnaudBelcour/sankeymien

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sankeymien-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sankeymien-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sankeymien-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf190e8544ac093b9eb3baba65e5848c38b00fbec44a2a9d048015f228345983
MD5 acda3dd9ef4780dd7b6a2d4316c75c60
BLAKE2b-256 d92c7188dc088af9fb74da4ca3eea2cdfb2dc1999b3c84104675b218043ea0bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sankeymien-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on ArnaudBelcour/sankeymien

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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