Giter VIP home page Giter VIP logo

amountain's Introduction

platform Build Status

Bioconductor page http://bioconductor.org/packages/AMOUNTAIN

Installation

Install the stable version from Bioconductor

## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("AMOUNTAIN")

Install the development version from Github

library(devtools)
install_github("fairmiracle/AMOUNTAIN")

Compile on Linux

Make sure GSL in installed, type gsl-config in terminal.

To compile C code:

git clone https://github.com/fairmiracle/AMOUNTAIN.git
cd AMOUNTAIN
gcc -c src/AMOUNTAIN.c -fPIC -std=c99
gcc -shared -o src/AMOUNTAIN.so AMOUNTAIN.o -lgsl -lgslcblas
rm AMOUNTAIN.o

To use C version functions in R:

source('R/AMOUNTAIN.R')
dyn.load(paste("src/AMOUNTAIN", .Platform$dynlib.ext, sep = ""))
source('R/AMOUNTAINC.R')

Here is a table of C-version functions and pure R functions:

C-version Pure R Brief description
CGPFixSS moduleIdentificationGPFixSS Module identification on single network
CGPFixSSTwolayer moduleIdentificationGPFixSSTwolayer Module identification on two-layer network
CGPFixSSMultiLayer moduleIdentificationGPFixSSMultilayer Module identification on multi-layer network

Compile on Windows

It is not that straightforward to compile with GSL under Windows. Someone has created GSL Windows DLL and headers for both 32 and 64-bit in https://code.google.com/archive/p/oscats/downloads. Extract gsl-1.15-dev-win32.zip and gsl-1.15-dev-win64.zip into two directories:

  • C:\GSL\i386
  • C:\GSL\x64

and set the environment variable LIB_GSL as C:/GSL instead of C:\GSL. Finally add C:\GSL\x64\bin to the Path in case missing the DLLs. Then the source can be compiled.

Refererence

Dong Li, Shan He, Zhisong Pan, Guyu Hu. Active modules for multilayer weighted gene co-expression networks: a convex optimization approach. biorxiv 2016. http://www.biorxiv.org/content/early/2016/06/03/056952

amountain's People

Contributors

fairmiracle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.