Python 3 implementation of Pylmm
Project description
pylmm3 - A lightweight linear mixed-model solver (Python 3)
pylmm is a fast and lightweight linear mixed-model (LMM) solver for use in genome-wide association studies (GWAS). This repository refactors the code to work with Python 3.
pylmm has a standalone program for running association studies called pylmmGWAS. It can also be used as a python module to build your own custom programs. If you want to create your own code, look at example.py for some basic usage patterns. If you want to run basic GWAS analysis, the command below, which uses example data might be a helpful guide.
An Example Command (GWAS):
python -m pylmm3.scripts.pylmmGWAS -v --bfile data/snps.132k.clean.noX --kfile data/snps.132k.clean.noX.pylmm.kin --phenofile data/snps.132k.clean.noX.fake.phenos out.foo
The GWAS program pylmmGWAS.py reads PLINK formated input files (BED or TPED only). There is also an option to use "EMMA" formatted files. We included this in order to make it easier for people using EMMA currently to try pylmm.
An Example Command (Kinship):
python -m pylmm3.scripts.pylmmKinship --bfile data/snps.132k.clean.noX kinship_matrix_output.txt
The kinship matrix file can be calculated using pylmmKinship.py which also takes PLINK or EMMA files as input. The kinship matrix output is just a plain text file and follows the same format as that used by EMMA, so that you can use pre-computed kinship matrices from EMMA as well, or any other program for that matter.
Installation
Prerequisites
Ensure you have Python 3 installed on your system. pylmm is compatible with Python 3 and requires numpy and scipy. Additionally, pylmm3 is available on Pypi.
Steps
-
Clone the Repository: Start by cloning the pylmm repository to your local machine using git:
git clone git@bitbucket.org:jacksonlaboratory/pylmm3.git cd pylmm3
-
Install Poetry If you haven't already, install Poetry, a dependency management tool for Python:
curl -sSL https://install.python-poetry.org | python3 -
-
Create a Virtual Environment: Create a Python virtual environment and install the dependencies using Poetry:
poetry install -
Activate the virtual environment
poetry shell
pylmm is offered under the GNU Affero GPL (https://www.gnu.org/licenses/why-affero-gpl.html).
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylmm3-0.1.1.tar.gz.
File metadata
- Download URL: pylmm3-0.1.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e410213456b60bfca47acd51dd90faf440b394a49ef8c21ac147a540468e9be
|
|
| MD5 |
dc9a434bcc1b93995a73866ba7bfea4b
|
|
| BLAKE2b-256 |
df347d08ef761be48308430f63728ce05995530709d8261d7911f4f6bbc84d80
|
File details
Details for the file pylmm3-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pylmm3-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
396427078a815071d650a35e6cd70181c4385e3dce68e8aea85403d1cc6cd11f
|
|
| MD5 |
25873e528b0d4a6276ce5545683acdc0
|
|
| BLAKE2b-256 |
2ede69bb77202b3661692dee62d723826aa6688cdf4c45506fe902b0354c9375
|