Package: rehh 3.2.2

Alexander Klassmann

rehh: Searching for Footprints of Selection using 'Extended Haplotype Homozygosity' Based Tests

Population genetic data such as 'Single Nucleotide Polymorphisms' (SNPs) is often used to identify genomic regions that have been under recent natural or artificial selection and might provide clues about the molecular mechanisms of adaptation. One approach, the concept of an 'Extended Haplotype Homozygosity' (EHH), introduced by (Sabeti 2002) <doi:10.1038/nature01140>, has given rise to several statistics designed for whole genome scans. The package provides functions to compute three of these, namely: 'iHS' (Voight 2006) <doi:10.1371/journal.pbio.0040072> for detecting positive or 'Darwinian' selection within a single population as well as 'Rsb' (Tang 2007) <doi:10.1371/journal.pbio.0050171> and 'XP-EHH' (Sabeti 2007) <doi:10.1038/nature06250>, targeted at differential selection between two populations. Various plotting functions are included to facilitate visualization and interpretation of these statistics.

Authors:Alexander Klassmann [aut, cre], Mathieu Gautier [aut], Renaud Vitalis [aut]

rehh_3.2.2.tar.gz
rehh_3.2.2.tar.gz(r-4.5-noble)rehh_3.2.2.tar.gz(r-4.4-noble)
rehh_3.2.2.tgz(r-4.4-emscripten)rehh_3.2.2.tgz(r-4.3-emscripten)
rehh.pdf |rehh.html
rehh/json (API)
NEWS

# Install 'rehh' in R:
install.packages('rehh', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://gitlab.com/oneoverx/rehh

Uses libs:
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

openmp

6.03 score 8 stars 1 packages 222 scripts 676 downloads 57 mentions 30 exports 1 dependencies

Last updated 3 years agofrom:8352ae4f74. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 02 2024
R-4.5-linux-x86_64NOTEDec 02 2024

Exports:as.newickcalc_candidate_regionscalc_ehhcalc_ehhscalc_furcationcalc_haplencalc_pairwise_haplencalc_region_statscalc_sfs_testschr.namedata2haplohhdistribplotextract_regionsfreqbinplothap.nameshaplohaplohh2sweepfinderies2xpehhihh2ihsines2rsbmake.example.filesmanhattanplotmrk.namesnhapnmrkpositionsremove.example.filesscan_hhscan_hh_fullupdate_haplohh

Dependencies:rehh.data

Examples in detail

Rendered fromexamples.Rmdusingknitr::rmarkdownon Dec 02 2024.

Last update: 2020-11-01
Started: 2019-07-09

Vignette for package rehh

Rendered fromrehh.Rmdusingknitr::rmarkdownon Dec 02 2024.

Last update: 2020-11-01
Started: 2016-08-01

Readme and manuals

Help Manual

Help pageTopics
rehh: Searching for Footprints of Selection using 'Extended Haplotype Homozygosity' Based Testsrehh-package rehh
An S4 class containing furcation trees for one allele of a focal markerallelefurcation allelefurcation-class
Convert a furcation tree into Newick formatas.newick
Determine candidate regions of selectioncalc_candidate_regions
EHH and iHH computation for a given focal markercalc_ehh ehh ehh-class
EHHS and iES computation for a given focal markercalc_ehhs ehhs ehhs-class
calculate furcation trees around a focal markercalc_furcation
Calculate length of longest shared haplotypes around a focal markercalc_haplen
Calculate pairwise shared haplotype length between all chromosomescalc_pairwise_haplen
Calculate score statistics for given regionscalc_region_stats
Calculate site frequency spectrum test statisticscalc_sfs_tests
Convert data from input file to an object of class haplohhdata2haplohh
Plot distribution of standardized iHS, Rsb or XP-EHH valuesdistribplot
Extract regions from a scanextract_regions
Plot of unstandardized iHS within frequency binsfreqbinplot
An S4 class to represent a furcation tree on one side of one allele of a focal markerftree ftree-class
An S4 class representing the complete furcation pattern around a focal marker.furcation furcation-class
class for haplotype lengthhaplen haplen-class
Example of an 'haplohh' objecthaplohh_cgu_bta12
Class "haplohh"chr.name chr.name, chr.name,haplohh-method hap.names hap.names, hap.names,haplohh-method haplo haplo, haplo,haplohh-method haplohh-class mrk.names mrk.names, mrk.names,haplohh-method nhap nhap, nhap,haplohh-method nmrk nmrk, nmrk,haplohh-method positions positions, positions,haplohh-method
Translate object of 'haplohh-class' into SweepFinder formathaplohh2sweepfinder
Compute XP-EHHies2xpehh
Compute iHSihh2ihs
Compute Rsbines2rsb
Copy example input files into current working directorymake.example.files
Manhattan plot of iHS, XP-EHH or Rsb over a genome.manhattanplot
Plot EHH around a focal markerplot.ehh
Plot EHHS around a focal markerplot.ehhs
Plots furcation trees around a focal markerplot.furcation
Plot the length of extended haplotypes around a focal markerplot.haplen
Plot the variants of a haplohh objectplot.haplohh
Remove example files from current working directory.remove.example.files
Compute iHH, iES and inES over a whole chromosomescan_hh
Compute iHH, iES and inES over a whole chromosome without cut-offsscan_hh_full
Subsets object of 'haplohh-class'subset.haplohh
Update object of class haplohhupdate_haplohh