Skip to main content

Generative Modeling of Multivariate Relationships

Project description

Build Status codecov Documentation Status PyPI - Python Version PyPI

gemmr - Generative Modeling of Multivariate Relationships

gemmr calculates required sample sizes for Canonical Correlation Analysis (CCA) and Partial Least Squares (PLS). In addition, it can generate synthetic datasets for use with CCA and PLS, and provides functionality to run and examine CCA and PLS analyses. It also provides a Python wrapper for PMA, a sparse CCA implementation.

Hardware requirements

GEMMR runs on standard hardware. To thoroughly sweep through parameters of the generative model a high-performance-computing (HPC) environment is recommended.

Dependencies

  • numpy
  • scipy
  • pandas
  • xarray
  • netcdf4
  • scikit-learn
  • statsmodels
  • joblib
  • tqdm

Some functions have additional dependencies that need to be installed separately if they are used:

  • holoviews
  • rpy2

The repository also contains an environment.yml file specifying a conda-environment with specific versions of all dependencies. We have tested the code with this environment. To instantiate the environment run

>>> conda env create -f environment.yml

Installation

The easiest way to install gemmr is with pip:

pip install gemmr

Alternatively, to install and use the most current code:

git clone https://github.com/murraylab/gemmr.git
cd gemmr
python setup.py install

Installation of gemmr itself (without potentially required dependencies) should take only a few seconds.

Documentation

Extensive documentation can be found here.

The documentation contains

  • Demonstration of the gemmr's functionality, including exptected outputs (all of which should execute quickly)
  • Juyter notebooks detailing generation of the figures for the accompanying manuscripts
  • API reference

To generate the documentation from source, install gemmr as described above and make sure you also have the following dependencies installed:

  • ipython
  • matplotlib
  • sphinx
  • nbsphinx
  • sphinx_rtd_theme and run (in the doc subfolder):
make html

and open doc/_build/html/index.html .

Citation

If you're using gemmr in a publication, please cite Helmer et al. (2020)

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

gemmr-0.4.0.tar.gz (100.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemmr-0.4.0-py3-none-any.whl (90.5 kB view details)

Uploaded Python 3

File details

Details for the file gemmr-0.4.0.tar.gz.

File metadata

  • Download URL: gemmr-0.4.0.tar.gz
  • Upload date:
  • Size: 100.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for gemmr-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0f413a528187f653f6699a88d0c347f8dccfc42415b5118f628cfd6d0d3af805
MD5 cb2cf6eb4fb2e4b3696035216f1f8932
BLAKE2b-256 8fb9749cd0e6477d036525802937329754335dee60f44c269e1307db96cd6153

See more details on using hashes here.

File details

Details for the file gemmr-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: gemmr-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 90.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for gemmr-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3525a226457d52f7c504117a008ab2e49982033ea444e77357405f270500a941
MD5 2ed1a77ef29870011d282a647b29f982
BLAKE2b-256 b8c7f8f88a3810ac169083c267a981cbdc082c6391668f4b94c1a2fd456e53b3

See more details on using hashes here.

Supported by

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