Code Monkey home page Code Monkey logo

liftoverplink's Introduction

liftOverPlink

This repository is forked from sritchie73/liftOverPlink.

Important changes

  1. An option -b is added to allow using BIM file as input for liftOver.

  2. A companion Perl script updateLiftOverBim.pl is provided to update BIM file following liftOver.


Usage

liftOverPlink.py

usage: liftOverPlink.py [-h] -m MAPFILE [-p PEDFILE] [-d DATFILE] -o PREFIX -c
                        CHAINFILE [-e LIFTOVEREXECUTABLE]

liftOverPlink.py converts genotype data stored in plink's PED+MAP format from
one genome build to another, using liftOver.

optional arguments:
  -h, --help            show this help message and exit
  -m MAPFILE, --map MAPFILE
                        The plink MAP file to `liftOver`.
  -b                    If specified, MAP file is in BIM format.
  -p PEDFILE, --ped PEDFILE
                        Optionally remove "unlifted SNPs" from the plink PED
                        file after running `liftOver`.
  -d DATFILE, --dat DATFILE
                        Optionally remove "unlifted SNPs" from a data file
                        containing a list of SNPs (e.g. for --exclude or
                        --include in `plink`)
  -o PREFIX, --out PREFIX
                        The prefix to give to the output files.
  -c CHAINFILE, --chain CHAINFILE
                        The location of the chain file to provide to
                        `liftOver`.
  -e LIFTOVEREXECUTABLE, --bin LIFTOVEREXECUTABLE
                        The location of the `liftOver` executable.

Companion Tools

rmBadLifts.py

usage: rmBadLifts.py [-h] -m MAPFILE -o OUTFILE -l LOGFILE

rmBadLifts.py goes through a plink MAP file, identifies and removes SNPs not
on chromosomes 1 to 22

optional arguments:
  -h, --help            show this help message and exit
  -m MAPFILE, --map MAPFILE
                        MAP file to process.
  -o OUTFILE, --out OUTFILE
                        New MAP file to output.
  -l LOGFILE, --log LOGFILE
                        File to output the bad rsIDs to.

updateLiftOverBim.pl

usage: updateLiftOverBim.pl --bim|-b <old_bim_file> --map|-m <liftOver_new_map_file> --out|-o <output_bim_file>

updateLiftOverBim.pl removes variants that are on contig scaffolds (similar to rmBadLifts.py) following liftOver and then updates variants information in BIM file.

Arguments:
  --bim|-b              old BIM file to be updated.
  --map|-m              MAP file after liftOver as produced by liftOverPlink.py.
  --out|-o              output new BIM file.

updateBimChrPos.pl

usage: updateBimChrPos.pl --bim|-b <input_bim_file> --ref|-r <reference_bim_file> --out|-o <output_bim_file>

updateBimChrPos.pl updates chromosome and pos in a BIM file based on a reference BIM..

Arguments:
  --bim|-b              input BIM file to be updated.
  --ref|-r              referene BIM file containing the new chromosome and position information.
  --out|-o              output new BIM file.

liftoverplink's People

Contributors

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