Skip to main content

Python utilities for CDAPS

Project description

CDAPS Python Utilities

https://img.shields.io/pypi/v/cdapsutil.svg https://travis-ci.com/idekerlab/cdapsutil.svg?branch=master https://coveralls.io/repos/github/idekerlab/cdapsutil/badge.svg?branch=master Documentation Status

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.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.

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

cdapsutil-0.2.0.tar.gz (405.7 kB view details)

Uploaded Source

Built Distribution

cdapsutil-0.2.0-py2.py3-none-any.whl (22.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cdapsutil-0.2.0.tar.gz.

File metadata

  • Download URL: cdapsutil-0.2.0.tar.gz
  • Upload date:
  • Size: 405.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cdapsutil-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1e0508d410c735d45ce0922ed82871c8b2bb46bb0b11c596f4f3dcdaf9b34ec0
MD5 3551048ad9a237cf0e481692d3d1cd0c
BLAKE2b-256 ec10da4c5537bb2736a2e2cb8b003f6cc5e13f690f1c5c98421ff0ffd5e9d438

See more details on using hashes here.

File details

Details for the file cdapsutil-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: cdapsutil-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cdapsutil-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3373292bad0a02808637658f612a7c53e77cd8297f8f2352f79b73c37ffe0725
MD5 28ed04f40a5a5809300153effe3e41d9
BLAKE2b-256 05ad30dbeb4a0fe5f42f51cfeb779cb5b117ec94794301806fa0ea1b807fa145

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page