Converts genotype data stored in plink's PED+MAP format from one genome build to another, using liftOver
Project description
PLINKLiftOver
PLINKLiftOver is a utility enabling liftOver to work on genomics files from PLINK, allowing one to update the coordinates from one genome reference version to another.
PLINKLiftOver requires
- Python 3.8
- The command line version of liftOver, installed and on the system path
- An appropriate chain file
- The MAP file from a PLINK dataset
pip install -U plinkliftover
or install with the development version with
pip install -U git+https://github.com/milescsmith/plinkliftover.git
Usage
Usage: plinkliftover [OPTIONS] MAPFILE CHAINFILE
Converts genotype data stored in plink's PED+MAP format from one genome
build to another, using liftOver.
Arguments:
MAPFILE The plink MAP file to `liftOver`. [required]
CHAINFILE The location of the chain files to provide to `liftOver`.
[required]
Options:
--pedfile TEXT Optionally remove "unlifted SNPs" from the plink
PED file after running `liftOver`.
--datfile TEXT Optionally remove 'unlifted SNPs' from a data
file containing a list of SNPs (e.g. for
--exclude or --include in `plink`)
--prefix TEXT The prefix to give to the output files.
--liftoverexecutable TEXT The location of the `liftOver` executable.
-v, --version Prints the version of the plinkliftover package.
--help Show this message and exit.
For example
plinkliftover updating.map hg19ToHg38.over.chain.gz
Note!
By default, PLINK 2.0 does not use/create the required MAP file. It can be generated using PLINK 1.9 by
plink --bfile original --recode --out to_update
where original
is the prefix for the bed/bim/fam files and to_update
is the prefix to give the new files.
🛡 License
This project is licensed under the terms of the GNU GPL v3.0
license. See LICENSE for more details.
📃 Citation
@misc{plinkliftover,
author = {Miles Smith <miles-smith@omrf.org>},
title = {Awesome `plinkliftover` is a Python cli/package created with https://github.com/TezRomacH/python-package-template},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/milescsmith/plinkliftover}}
}
Credits
This project was generated with python-package-template
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plinkliftover-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6492efa12524773338f56221d5fd965515f000924117742d4f43dd51821552eb |
|
MD5 | 484abd848adacd03b9594f21f458298c |
|
BLAKE2b-256 | 56f4ca11863964a71637348ced775f3dcbe3a0c47ca0a9cafa3423c468142c28 |