Giter Site home page Giter Site logo

climerlab / sync-greedy Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 28 KB

A greedy algorithm to find the combination of features that maximized the Younden J statistic.

License: BSD 3-Clause "New" or "Revised" License

Makefile 5.73% C++ 94.27%
discrete-optimization greedy-algorithms youden-jstatistic cpp

sync-greedy's Introduction

sync-greedy

Greedy implementation of the Sync feature selection algorithm.

To Use

Configure the Makefile with the locaion of open mpi libraries and binary

Compile with the Makefile by navigating to the root directory and entering: make

Update configuration file

Run the program. For an example enter: mpirun -np 4 ./sync <cfg_file>

Configuration File

DATA_FILE - Tab seperated file where the first NUM_CASES columns are cases and the next NUM_CTRLS columns are controls. The row indicate features.

SCRATCH_DIR - Directory where ouputs are recorded.

NUM_CASES - Number of cases in DATA_FILE.

NUM_CTRLS - Numbr of controls in DATA_FILE.

NUM_EXPRS - Number of features in DATA_FILE.

NUM_HEAD_ROWS - Number of header rows in DATA_FILE.

NUM_HEAD_COLS - Number of header columns in DATA_FILE.

RISK - Boolean that indicates if risk patterns (true) or protective patterns should be found.

MAX_PS - Maximum pattern size to search.

MIN_OBJ - Minimum Younden J value that will be kept for PS=1 patterns.

USE_SOL_POOL - Boolean that indicates if a solution pool will be kept.

SOL_POOL_SIZE - Size of solution pool to keep.

MISSING_SYMBOL - String used to indicate missing data in DATA_FILE.

SET_NA_TRUE - Boolean used to indicate if missing data is treated as both high and low.

HIGH_VALUE - Value in DATA_FILE that indicates high expression.

NORM_VALUE - Value in DATA_FILE that indicates normal expression.

LOW_VALUE - Value in DATA_FILE that indicates low expression.

Outputs

PS#.solPool - Files containing a collection of patterns of size #

markerPairs.csv - Contains a count of individuals from G_1 that contain each pair of markers

Notes

Requires Open MPI

DATA_FILE should be tab seperate, the columns represent individuals and the rows represent features

sync-greedy's People

Contributors

kpsmithjr 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.