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.1.tar.gz (19.2 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.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sankeymien-0.0.1.tar.gz
  • Upload date:
  • Size: 19.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e4413a2a3b6acccdc58281621547d00975bc620b5399bb92210a869ab7258b17
MD5 9ac5283b71a34c41f81ac612c3279d18
BLAKE2b-256 44c65482766f49285c8427c2ae3e213537a7f35ec59287df9bdbb6f50682a588

See more details on using hashes here.

Provenance

The following attestation bundles were made for sankeymien-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: sankeymien-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa92279fe93c1b736a0881747b62e31facb52438d358b1ff7b3c403feb5fdcc
MD5 0ee244d6b67bba6422e604f9d54f4f5e
BLAKE2b-256 dff50f426660a39dc5eac12d717760b60c13fc234ebf681cdbf2c5cb2ad6bbf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sankeymien-0.0.1-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