Coder Social home page Coder Social logo

jia-jannink_genetics_2012's Introduction

This directory contains the C code used by Jia and Jannink (Genetics, 2012) and was sent by Yi Jia to Timothée Flutre on 14/11/2015: http://dx.doi.org/10.1534/genetics.112.144246

As the code uses the GNU Scientific Library (GSL), it is under the GNU Public License (GPL): http://www.gnu.org/software/gsl/ http://www.gnu.org/licenses/licenses.html#GPL

It is hosted online, https://github.com/timflutre/jia-jannink_genetics_2012, where you can report issues. The tag v0.1.0 corresponds to the exact files sent initially. All modifications were performed by T. Flutre since then. Please contact me if interested.

Compilation (for Ubuntu):

sudo apt install libgsl-dev
gcc -o BayesA_multivariate BayesA_multivariate.c `gsl-config --cflags --libs`
gcc -o BayesCPi_multivariate BayesCPi_multivariate.c `gsl-config --cflags --libs`

Usage:

./BayesA_multivariate filename nind nmarkers ntraits numiter nfold cycle thin
./BayesCPi_multivariate filename nind nmarkers ntraits numiter nfold cycle thin

Retrieve the simulated data:

mkdir data; cd data
wget https://www.genetics.org/highwire/filestream/412909/field_highwire_adjunct_files/0/FileS1.zip
unzip FileS1.zip

Estimate the parameters:

mkdir results; cd results
ln -s ../data/FileS1/Barley_Data_Simulation/Default_simulation/QTL20_standard_rep1.txt .
../BayesA_multivariate QTL20_standard_rep1.txt 500 2000 2 110000 1 1 1
cat QTL20_standard_rep1.txt_MTBA1
# the accuracy of trait1 prediction is:-nan
# the accuracy of trait2 prediction is:-nan
# the nu mean is: 3.102967
# 0.100000 0.000000 
# 0.000000 0.100000 

jia-jannink_genetics_2012's People

Contributors

timflutre avatar

Watchers

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