Methods for selective sweep inference
Project description
Statistical inference using IBD segments
isweep is a Python package and a series of automated workflows to study natural selection with identity-by-descent (IBD) segments. The Python package simulates IBD segments around a locus and estimates selection coefficients. The automated workflows perform selection scans, selection coefficient estimation, IBD case-control mapping, haplotype phasing, and local ancestry inference. Scripts in the workflows can be run individually in scripts/, with argparse documentation and inputs.
These methods are suitable for analyses for recent genetic/evolution events. For example,
- By recent, we mean within the last 500 generations.
- By strong, we mean selection coefficient s >= 0.015 (1.5%).
- Scan may have moderate power for s >= 0.01 (1%).
Please review the Readthedocs for detailed support, including which relevant publications to cite if you use this software.
Please file an Issue on GitHub for troubleshooting.
Contact sethtem@umich.edu for support specific to your analysis, e.g., analyses of non-human genetic data.
The input data is:
- Whole genome sequences
- Probably at least > 500 diploids
- Phased vcf data 0|1 of recombining chromosomes
- Tab-separated genetic map (bp ---> cM)
- Without headers!
- Columns are chromosome, rsID, cM, bp
- Access to cluster computing
workflow/phasing-ancestry provides support for phasing and selecting an ancestry cohort.
Primary pipelines:
The main workflows, workflow/scan-selection and workflow/model-selection do:
- Scan genome for extreme IBD rates
- Detect anomalously large IBD clusters
- Rank alleles based on evidence for selection
- Compute a cluster agglomeration measure
- Estimate frequency, location of unknown sweeping allele
- Estimate a selection coefficient (w/ CIs)
In general, you run workflows with
nohup snakemake -s Snakefile-*.smk -c1 --cluster "sbatch [options]" [options] --jobs XX --configfile *.yaml &
You modify the relevant YAML files, which define the method parameters. You should run the pipelines in the mamba activate isweep environment.
Step 1 may be standalone, depending on the analysis. (You may not care to model putative sweeps (Steps 2-6), which also requires demographic Ne estimation.)
Installation
To install the dependencies and our package:
- Clone the repository
git clone https://github.com/sdtemple/isweep.git
- Get the Python package
mamba env create -f isweep-environment.yml
- Download some Java software.
bash get-software.sh
You can test the workflows with our small Zenodo repository.
Picture of selection scan
The flow chart below shows the steps ("rules") in the selection scan pipeline.
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 isweep-1.1.2.tar.gz.
File metadata
- Download URL: isweep-1.1.2.tar.gz
- Upload date:
- Size: 647.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916e3dbe4fccae98aad3eb1027ef6cf23b425fc93c7e8470f6d5a6e9bb228cd4
|
|
| MD5 |
6530012218c0ea777b6c301e90c48e02
|
|
| BLAKE2b-256 |
1b692383e0cc9c089182512df0188060402d05e1dfabcd54ce032e6c42b80c99
|
File details
Details for the file isweep-1.1.2-py3-none-any.whl.
File metadata
- Download URL: isweep-1.1.2-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0fee86114eebdb7a2704271b2b604b59f10d4c69e3c397300ebb73610fd7c06
|
|
| MD5 |
418cb187f5961c16b61a0f36fe184e8d
|
|
| BLAKE2b-256 |
bd96c194df731bf71008290e06ab7baafd0ffc8e167aa429158941a6ec73c254
|