A set of tools in Python for multiscale graph correlation and other statistical tests
Project description
mgcpy
mgcpy
is a Python package containing tools for multiscale graph correlation and other statistical tests, that is capable of dealing with high dimensional and multivariate data.
Documentation: https://mgcpy.readthedocs.io/en/latest/
Installation Guide:
Install from PyPi
pip3 install mgcpy
Install from Github
git clone https://github.com/neurodata/mgcpy
cd mgcpy
python3 setup.py install
sudo
, if requiredpython3 setup.py build_ext --inplace # for cython
, if you want to test in-place, first execute this
Setting up the development environment:
-
To build image and run from scratch:
- Install docker
- Build the docker image,
docker build -t mgcpy:latest .
- This takes 10-15 mins to build
- Launch the container to go into mgcpy's dev env,
docker run -it --rm --name mgcpy-env mgcpy:latest
-
Pull image from Dockerhub and run:
docker pull tpsatish95/mgcpy:latest
ordocker pull tpsatish95/mgcpy:development
docker run -it --rm -p 8888:8888 --name mgcpy-env tpsatish95/mgcpy:latest
-
To run demo notebooks (from within Docker):
cd demos
jupyter notebook --ip 0.0.0.0 --no-browser --allow-root
- Then copy the url it generates, it looks something like this:
http://(0de284ecf0cd or 127.0.0.1):8888/?token=e5a2541812d85e20026b1d04983dc8380055f2d16c28a6ad
- Edit this:
(0de284ecf0cd or 127.0.0.1)
to:127.0.0.1
, in the above link and open it in your browser - Then open
mgc.ipynb
-
To mount/load local files into docker container:
- Do
docker run -it --rm -v <local_dir_path>:/root/workspace/ -p 8888:8888 --name mgcpy-env tpsatish95/mgcpy:latest
, replace<local_dir_path>
with your local dir path. - Do
cd ../workspace
when you are inside the container to view the mounted files. The mgcpy package code will be in/root/code
directory.
- Do
MGC Algorithm's Flow
Power Curves
- Recreated Figure 2 in https://arxiv.org/abs/1609.05148, with the addition of MDMR and Fast MGC
License
This project is covered under the Apache 2.0 License.
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 Distributions
File details
Details for the file mgcpy-0.2.0.tar.gz
.
File metadata
- Download URL: mgcpy-0.2.0.tar.gz
- Upload date:
- Size: 174.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0adc920dcccb03aa1fce2ca55853a95c4bb59794f25e10d9f7f7e252e0edc292 |
|
MD5 | 1af13a4e5e29122937d22150f9db2c6b |
|
BLAKE2b-256 | 5ddb1594dc49f8f7b158d38c2e349ee8a237e6edf3875fc43a92d4dad7805510 |
Provenance
File details
Details for the file mgcpy-0.2.0-py3.6-macosx-10.13-x86_64.egg
.
File metadata
- Download URL: mgcpy-0.2.0-py3.6-macosx-10.13-x86_64.egg
- Upload date:
- Size: 301.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b359297f8e3516236c4fb0b48d65e819575bad77db1239a7e36a8d6b2a669fcd |
|
MD5 | 69abd101aabf6ffeb24676b38ea2dbc3 |
|
BLAKE2b-256 | 6b4462cd7a89956e59a155cb6df3cbfd47a961ea336728d06fbede9d93f16fce |
Provenance
File details
Details for the file mgcpy-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: mgcpy-0.2.0-cp36-cp36m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 220.7 kB
- Tags: CPython 3.6m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d89e2804032e49c79c441c9b32de8e182071fc33c4e4da3326d7c36317cffc |
|
MD5 | 8200ced2946834551233deb30b0971cc |
|
BLAKE2b-256 | 863a073cc65a02e0e8e77cac376ed1913e9a9db41737f50380391ab60bf4a965 |