/rEnrich

R code to preform enrichment of network clusters given node annotation data

Primary LanguageC++GNU General Public License v3.0GPL-3.0

rEnrich

Test enrichment of network clusters given node annotation data

Compile & GSL environment variables setup

  1. Install GSL:

1.1) Using mac can run: > brew install gsl

  1. Set environment variables (replacing your GSL path in GSL_HOME):

2.1) in .bashrc:

  export GSL_HOME="/opt/homebrew/Cellar/gsl/2.7.1"
  
  export GSL_CFLAGS="${GSL_HOME}/include"
  
  export GSL_LIBS="${GSL_HOME}/lib"
  
  export GSL_CONFIG="${GSL_HOME}/bin/gsl-config"
  
  export PATH="${GSL_HOME}/bin:${PATH}"
  
  export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GSL_HOME}/lib"
  1. Run autoconfig.ac:

3.1) > autoconf

  1. Build and install:

4.1) > R CMD build rEnrich

4.2) > R CMD INSTALL rEnrich_1.0.tar.gz

  1. Run example:

5.1) > cd rEnrich/example/

5.2) > R

5.3) > source('example.R')