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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4413a2a3b6acccdc58281621547d00975bc620b5399bb92210a869ab7258b17
|
|
| MD5 |
9ac5283b71a34c41f81ac612c3279d18
|
|
| BLAKE2b-256 |
44c65482766f49285c8427c2ae3e213537a7f35ec59287df9bdbb6f50682a588
|
Provenance
The following attestation bundles were made for sankeymien-0.0.1.tar.gz:
Publisher:
python-publish.yml on ArnaudBelcour/sankeymien
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sankeymien-0.0.1.tar.gz -
Subject digest:
e4413a2a3b6acccdc58281621547d00975bc620b5399bb92210a869ab7258b17 - Sigstore transparency entry: 1851119193
- Sigstore integration time:
-
Permalink:
ArnaudBelcour/sankeymien@5988f8200cb7e217a9d1f6846ed5421c0f2c5fb6 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/ArnaudBelcour
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5988f8200cb7e217a9d1f6846ed5421c0f2c5fb6 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa92279fe93c1b736a0881747b62e31facb52438d358b1ff7b3c403feb5fdcc
|
|
| MD5 |
0ee244d6b67bba6422e604f9d54f4f5e
|
|
| BLAKE2b-256 |
dff50f426660a39dc5eac12d717760b60c13fc234ebf681cdbf2c5cb2ad6bbf0
|
Provenance
The following attestation bundles were made for sankeymien-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on ArnaudBelcour/sankeymien
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sankeymien-0.0.1-py3-none-any.whl -
Subject digest:
4fa92279fe93c1b736a0881747b62e31facb52438d358b1ff7b3c403feb5fdcc - Sigstore transparency entry: 1851119372
- Sigstore integration time:
-
Permalink:
ArnaudBelcour/sankeymien@5988f8200cb7e217a9d1f6846ed5421c0f2c5fb6 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/ArnaudBelcour
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5988f8200cb7e217a9d1f6846ed5421c0f2c5fb6 -
Trigger Event:
release
-
Statement type: