pyMultiOmics
pyMultiOmics is a Python package for multi-omics data integration and analysis. It uses the Reactome database to map entities (genes, transcripts, proteins, compounds) to their reactions and pathways. The results is then shown as a network graph. Various analyses such as differential analysis, pathway activity analysis can be performed on this network graph, with the results overlaid on the graph.
Installation
Simply run:
pip install pyMultiOmics
Usage
Example basic usage is shown below:
from pyWebOmics.mapping import Mapper
species_name = DANIO_RERIO
m = Mapper(species_name) \
.set_gene(gene_data, gene_design) \
.set_protein(protein_data, protein_design) \
.set_compound(compound_data, compound_design) \
.build()
m contains a mapper object, which can be interogated to obtain the data integration results.
Please refer to this notebook for a demo.
Once mapping is completed, further analysis can be done. For example, finding DE entities:
from pyMultiOmics.analysis import AnalysisPipeline
ap = AnalysisPipeline(m)
method = INFERENCE_DESEQ
ap.run_de(method, GENES, 'Distal', 'Proximal')
ap.run_de(method, GENES, 'Distal', 'Middle')
ap.run_de(method, GENES, 'Proximal', 'Middle')
method = INFERENCE_LIMMA
ap.run_de(method, PROTEINS, 'Distal', 'Proximal')
ap.run_de(method, PROTEINS, 'Distal', 'Middle')
ap.run_de(method, PROTEINS, 'Proximal', 'Middle')
method = INFERENCE_T_TEST
ap.run_de(method, COMPOUNDS, 'Distal', 'Proximal')
ap.run_de(method, COMPOUNDS, 'Distal', 'Middle')
ap.run_de(method, COMPOUNDS, 'Proximal', 'Middle')
Various queries can now be performed on the pipeline:
- Retrieve a single node
from pyMultiOmics.query import QueryBuilder
node_id = '15366'
res = QueryBuilder(ap) \
.add(Entity(node_id)) \
.run()
res
- Retrieve multiple nodes
node_id = ['15366', 'ENSDARG00000037781', 'F1QAA7']
res = QueryBuilder(ap) \
.add(Entity(node_id)) \
.run()
res
- Retrieve nodes connected to a single node
query_id = 'F1QAA7'
res = QueryBuilder(ap) \
.add(Entity(query_id)) \
.add(Connected()) \
.run()
res
- Retrieve top-10 significantly changing genes
case = 'Distal'
control = 'Proximal'
pval = 0.05
fc_lte = -2
fc_gte = 2
N = 20
res = QueryBuilder(ap) \
.add(Select(GENES)) \
.add(SignificantDE(case, control, pval, fc_lte=fc_lte, fc_gte=fc_gte, N=N)) \
.run()
res
- Find the compounds that are connected to the DE genes above
res = QueryBuilder(ap) \
.add(Select(GENES)) \
.add(SignificantDE(case, control, pval, fc_lte=fc_lte, fc_gte=fc_gte, N=N)) \
.add(Connected(data_type=COMPOUNDS)) \
.run()
res
- Retrieve entity info
res = QueryBuilder(ap) \
.add(Select(GENES)) \
.add(SignificantDE(case, control, pval, fc_lte=fc_lte, fc_gte=fc_gte, N=N)) \
.add(Connected()) \
.add(Info()) \
.run()
res
Metadata
Release files for pyMultiOmics 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyMultiOmics-1.0.4.tar.gz | 39.5 MB | Without provenance | Details for pyMultiOmics-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyMultiOmics-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for pyMultiOmics-1.0.4-py3-none-any.whl |
Total release size: 79.1 MB
Release files / pyMultiOmics-1.0.4.tar.gz
| Download URL | pyMultiOmics-1.0.4.tar.gz |
|---|---|
| Size | 39.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9b2dd98b132a61bef6fcfeacd5594745ffa5ecf03d8fe37f6d0c5ba92e95500
|
|
BLAKE2b-256 checksum How to use checksums |
751cf5f55a092043aae68ea0dab01492fc4604d323477b634d4145f6fb0a7e51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
|
Release files / pyMultiOmics-1.0.4-py3-none-any.whl
| Download URL | pyMultiOmics-1.0.4-py3-none-any.whl |
|---|---|
| Size | 39.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
240b6f5dfc1c1d3b67c07f6503f2e99c7fe09b4fde2bf3ca26a3c8e11491034e
|
|
BLAKE2b-256 checksum How to use checksums |
83e68df09ea1ac078cc8f3614d459703a55db90c75e0c10160004a5030aa50bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
|
Security for pyMultiOmics 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.