GithubHelp home page GithubHelp logo

yupinglin0301 / dosageconvertor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from santy-8128/dosageconvertor

0.0 0.0 0.0 3.33 MB

DosageConvertor is a C++ tool to convert dosage files (in VCF format) from Minimac3/4 to other formats such as MaCH or PLINK.

Home Page: http://genome.sph.umich.edu/wiki/DosageConvertor

CMake 3.31% Shell 0.78% C++ 91.35% Makefile 4.56%

dosageconvertor's Introduction

DosageConvertor is a C++ tool to convert dosage files (in VCF format) from Minimac3/4 to ther formats such as MaCH or PLINK.

Please note that this tool CANNOT handle missing values in the input files and may NOT work for non-Minimac3/4 VCF files.

<<< SEE http://genome.sph.umich.edu/wiki/DosageConvertor FOR DOCUMENTATION >>>

Users should follow the following steps to compile DosageConvertor

Prerequisites

Automatic installation of DosageConvertor requires cget and cmake v3.2. These prerequisites can be installed as follows:

Ubuntu 16.04

sudo apt-get install cmake python-pip python-dev
pip install cget

Ubuntu 14.04

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install cmake python-pip python-dev
pip install cget

MacOS

brew install cmake
sudo easy-install pip
pip install --user cget --ignore-installed six

Installation

The easiest way to install DosageConvertor and its dependencies is to use the install.sh file provided.

cd DosageConvertor
bash install.sh

Alternatively, you can setup a dev environment cmake directly.

cd DosageConvertor
cget install -f ./requirements.txt                      # Install dependencies locally.
mkdir build && cd build                                 # Create out of source build directory.
cmake -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake .. # Configure project with dependency paths.
make                                                    # Build.

Usage

                         --info         TestDataImputedVCF.info
                         --prefix       OutputFilePrefix
                         --type         plink OR mach   // depending on output format
                         --format       DS or GP        // based on if you want to output
                                                        // dosage (DS) or genotype prob (GP)
                         --buffer       10000           // Number of Markers to import and
                                                        // print at a time (valid only for
                                                        // MaCH format)
                         --idDelimiter  _               // Delimiter to Split VCF Sample ID into
                                                        // FID and IID for PLINK format ```


<<< SEE http://genome.sph.umich.edu/wiki/DosageConvertor FOR DOCUMENTATION >>>

dosageconvertor's People

Contributors

santy-8128 avatar yukt 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.