8000 GitHub - deanmalmgren/msp-boxes
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

deanmalmgren/msp-boxes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msp-boxes

This package implements the functions needed to order a matrix and identify it's "communities" using a combination of simulated annealing and BIC (Sales-Pardo et al. 2007) in C++. As input, it takes a non-negative adjacency or similarity matrix. Full details of the algorithm are available at:

Marta Sales-Pardo, Roger Guimerà, André A. Moreira, and Luís A. Nunes Amaral (2007) "Extracting the hierarchical organization of complex systems." PNAS 104(39): 15224-15229 doi:10.1073/pnas.0703740104.

Build instructions

After cloning the repository, you can build the executables by running:

sudo apt-get install autoconf libtool
autoreconf --install
./configure
make

This produces:

  • src/ordering/ordering-kernal.This is the main script you should use. It uses simulated annealing to identify the ordering of rows/columns that optimizes the BIC of the box model.

  • src/ordering/ordering-exhaustive. This exhaustively searches the ordering of rows/columns that optimizes the BIC of the box model.

  • src/boxes/main_boxes_greedy_nbox_ic_wdiag_kernel. Starting from an initial row ordering, this optimizes the row ordering using a steepest decent approach. This is effectively a zero temperature quenching of the simulating annealing procedure.

You can view the options of any of these scripts with the --help flag.

Usage

The primary way to use this package is to run the ordering-kernel executable with something like this:

./src/ordering/ordering-kernel -f path/to/matrix.dat

where path/to/matrix.dat is a text file that stores the information in the matrix. By default, ordering-kernel assumes that the matrix will be in a format similar to [data/test-matrix.dat]. Using the -d flag you can optionally specify that the data is stored in a sparse format.

After this program is run, it outputs several files in the working directory, the most important of which are:

  • transtable-final.dat which lists how each input index is mapped to the output index

  • coclas-final.dat which prints the final reordering of the matrix.

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%
0