CDAPS Python Utilities
Library that enables invocation of Community Detection APplication and Service algorithms via Python
Dependencies
Compatibility
Python 3.4+
Installation
pip install cdapsutil
or directly via:
git clone https://github.com/idekerlab/cdapsutil
cd cdapsutil
python setup.py install
Usage
Run Community Detection
import json
import cdapsutil
import ndex2
# Download BioGRID: Protein-Protein Interactions (SARS-CoV) from NDEx
client = ndex2.client.Ndex2()
client_resp = client.get_network_as_cx_stream('669f30a3-cee6-11ea-aaef-0ac135e8bacf')
net_cx = ndex2.create_nice_cx_from_raw_cx(json.loads(client_resp.content))
# Create CommunityDetection object
cd = cdapsutil.CommunityDetection()
# Run HiDeF on CDAPS REST service
hier_net = cd.run_community_detection(net_cx, algorithm='hidef')
Run Functional Enrichment
Coming soon…
Cite CDAPS
If you find this utility and service useful, please cite:
Singhal A, Cao S, Churas C, Pratt D, Fortunato S, Zheng F, et al. (2020) Multiscale community detection in Cytoscape. PLoS Comput Biol 16(10): e1008239. https://doi.org/10.1371/journal.pcbi.1008239
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.3.0 (2024-10-14)
Added support to run community detection on CX2 networks and generate HCX hierarchy
0.2.2 (2024-02-09)
Removed the “DISCLAIMER: cdapsutil is experimental…” warning level log message
0.2.1 (2023-10-04)
Removed scale, x, y, and z coordinates from visual properties aspect of default style stored in this tool. Done so UI tools will just fit content
0.2.0 (2022-10-04)
Fixed bug where not setting a name on a network would cause CommunityDetection.run_community_detection() to raise a TypeError. When encountered code now sets network name to unknown Issue #1
0.2.0a1 (2021-03-30)
First release on PyPI.
Metadata
Release files for cdapsutil 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdapsutil-0.3.0.tar.gz | 412.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdapsutil-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 439.5 kB
Release files / cdapsutil-0.3.0.tar.gz
| Download URL | cdapsutil-0.3.0.tar.gz |
|---|---|
| Size | 412.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3878157f1ba7282600ed0a68c0964c34905f23da4e0f965dae490236e6f9bf87
|
|
BLAKE2b-256 checksum How to use checksums |
448e6bcd29ca167e77cd2125dd44aa5922bce2bfb9045d87d1ce511a9f11a7c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / cdapsutil-0.3.0-py2.py3-none-any.whl
| Download URL | cdapsutil-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
387322f48b7238d4539da7c2c525b14df89307d3b2e71a54ed0c8d0f10e53e96
|
|
BLAKE2b-256 checksum How to use checksums |
ab7c644bb2ce255713423788640f4c3dd6d367caf0ab2ad979f88fbb01d4332e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|