jlc-christie / plink2merlin Goto Github PK
View Code? Open in Web Editor NEWCommand Line Python Utility to convert from plink format to Abecasis Lab's QTDT format (used by Merlin).
License: Apache License 2.0
Command Line Python Utility to convert from plink format to Abecasis Lab's QTDT format (used by Merlin).
License: Apache License 2.0
Currently, as explained in the how it works section of the readme, plink is used to prune SNPs in LD and also remove low minor allele frequency variants. However, to read the genotypes for these variants, plink is called again to include only the required SNPs, and then recode used to output in the plaintext (.ped/.map) format, which the genotypes are then read from.
It would likely be a lot faster to instead use --make-bed and read the genotypes directly, since producing and parsing the text file takes up the vast majority of computing time on the script. I chose not to do this, however, as doing this requires testing it well to ensure reading directly from the binary works as expected, and that you're not determining incorrect genotypes.
I may implement this in the future, or in a more generic python module which can perform arbitrary operations on plink binary files, but for now this is quick enough (~10 mins).
PRs referencing this welcome.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.