GithubHelp home page GithubHelp logo

skyclub3 / akt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from illumina/akt

0.0 1.0 0.0 42.39 MB

Ancestry and Kinship Tools

License: GNU General Public License v3.0

CMake 0.24% C++ 76.98% C 18.21% Makefile 0.59% Shell 0.52% M4 0.36% R 0.05% Python 2.83% Roff 0.22%

akt's Introduction

akt - ancestry and kinship toolkit

Copyright (c) 2018, Illumina, Inc. All rights reserved. This software is not commercially supported.

Ancestry and Kinship Tools (AKT) provides a handful of useful statistical genetics routines using the htslib API for input/output. This means it can seamlessly read BCF/VCF files and play nicely with bcftools.

Please cite the AKT paper if you find this software useful.

License and dependencies

AKT is freely available under the GPL3 license.

AKT relies on HTSlib and Eigen. Eigen is a header-only library for matrix algebra released under the MPL2 license. HTSlib is a library for efficently parsing vcf/bcf files released under the MIT/Expat License. Both libraries are included with AKT.

Installation instructions

git clone https://github.com/Illumina/akt.git
cd akt/
make

If you get a warning about 'omp.h not found' (especially on OSX) you can try

make no_omp

Everything will be run on a single thread, so the -n option does nothing in akt kin and akt ibd.

Quick start

akt uses the syntax

./akt COMMAND <options>

To see a list of available functionality use:

Program:        akt (Ancestry and Kinship Tools)
Version:        v0.3.9-33-g2f4bfea
Copyright (c) 2017, Illumina, Inc. All rights reserved. See LICENSE for further details.

Usage:  akt <command> [options]

        pca                      principal component analysis
        kin                      calculate kinship coefficients
        relatives                discover pedigrees
        unrelated                generate a list of unrelated individuals
        pedphase                 Mendelian transmission phasing for duos/trios

Some useful routine analyses (assumes you are in the akt directory):

#Do a PCA:
./akt pca -R data/wgs.grch37.vcf.gz input.bcf > pca.txt
Rscript scripts/pca.R pca.txt

#Project samples onto 1000G principal components
./akt pca -W data/wgs.grch37.vcf.gz input.bcf > 1000G.pca.txt
Rscript scripts/1000G_pca.R 1000G.pca.txt

#Calculate some (robust) kinship coefficients
./akt kin -R data/wgs.grch37.vcf.gz -M 1 input.bcf > kinship.txt

#give me duplicated sample pairs:
awk '{if($6>.4) print $0}' kinship.txt

#reconstruct pedigrees:
akt relatives kinship.txt -p pedigree

#give me a list of unrelated samples
akt unrelated kinship.txt > unrelated.ids

Full documentation is available at http://illumina.github.io/akt.

akt's People

Contributors

jaredo avatar olest avatar rudyarthur avatar thierrygosselin avatar

Watchers

 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.