Gap sampling: Difference between revisions

From Powers Wiki
(Created page with "The DGS package provides a few small command-line utilities for generating deterministic Poisson-gap, stochastic Poisson-gap, and deterministic burst-augmented gap sampling sc...")
 
No edit summary
Line 3: Line 3:
= Introduction =
= Introduction =


== Obtaining ''dgs'' ==
== Obtaining ''gaputil'' ==
You can download the ''dgs'' source code by clicking [http://bionmr.unl.edu/dgs.php here].
You can download the ''gaputil'' source code on its [http://github.com/geekysuavo/gaputil GitHub page].


== Installing ''dgs'' ==
== Installing ''gaputil'' ==
The utilities in ''dgs'' are a set of command-line open-source C programs. The software will run basically anywhere. Once you have the source code, run these commands to install it:
The ''gaputil'' binary is a command-line open-source C program. The software will run basically anywhere. Once you have the source code, run these commands to install it:


  cd /path/to/source/tarball
  git clone git://github.com/geekysuavo/gaputil.git
tar xf dgs-YYYYMMDD.tar.gz
  cd gaputil
  cd dgs-YYYYMMDD
  make
  make
  sudo install -v -m 755 -o root -g root spg dpg dbag /usr/local/bin/
  sudo make install


== Using a ''dgs'' utility ==
== Using ''gaputil'' ==
Once the programs are compiled and installed, you can run them from anywhere, ''e.g.'':
Once the programs are compiled and installed, you can run them from anywhere, ''e.g.'':


  dpg 0.1 512 512
  gaputil 0.1 512 512 'L*x'


All the utilities have the same argument syntax: the first argument is the sampling density, and the remaining arguments specify the size of the sampling grid. The code is currently soft-limited to generating 3D grids, but you can remove this restriction by editing '''dgs.c''' and recompiling/reinstalling.
All the utilities have the same argument syntax: the first argument is the sampling density, and the remaining arguments specify the size of the sampling grid. The final argument is the gap equation string to use when constructing the schedule. The code is currently soft-limited to generating 3D grids, but you can remove this restriction by editing '''term.c''' and recompiling/reinstalling.


[[category:Protocols]]
[[category:Protocols]]

Revision as of 18:46, 13 July 2015

The DGS package provides a few small command-line utilities for generating deterministic Poisson-gap, stochastic Poisson-gap, and deterministic burst-augmented gap sampling schedules over multidimensional grids. This page outlines how to install and use the DGS utilities.

Introduction

Obtaining gaputil

You can download the gaputil source code on its GitHub page.

Installing gaputil

The gaputil binary is a command-line open-source C program. The software will run basically anywhere. Once you have the source code, run these commands to install it:

git clone git://github.com/geekysuavo/gaputil.git
cd gaputil
make
sudo make install

Using gaputil

Once the programs are compiled and installed, you can run them from anywhere, e.g.:

gaputil 0.1 512 512 'L*x'

All the utilities have the same argument syntax: the first argument is the sampling density, and the remaining arguments specify the size of the sampling grid. The final argument is the gap equation string to use when constructing the schedule. The code is currently soft-limited to generating 3D grids, but you can remove this restriction by editing term.c and recompiling/reinstalling.