Learn R Programming

⚠️There's a newer version (3.2.2) of this package.Take me there.

rehh (version 3.1.2)

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

Description

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) , has given rise to several statistics designed for whole genome scans. The package provides functions to compute three of these, namely: 'iHS' (Voight 2006) for detecting positive or 'Darwinian' selection within a single population as well as 'Rsb' (Tang 2007) and 'XP-EHH' (Sabeti 2007) , targeted at differential selection between two populations. Various plotting functions are also included to facilitate visualization and interpretation of these statistics. Due to changes in the API, albeit mostly minor, versions 3.X are not compatible with versions 2.0.X. Note: optionally, vcf files can be imported using package vcfR. That package is currently removed from CRAN, but can still be installed from following instructions there.

Copy Link

Version

Install

install.packages('rehh')

Monthly Downloads

446

Version

3.1.2

License

GPL (>= 2)

Maintainer

Alexander Klassmann

Last Published

July 17th, 2020

Functions in rehh (3.1.2)

as.newick

Convert a furcation tree into Newick format
calc_pairwise_haplen

Calculate pairwise shared haplotype length between all chromosomes
calc_haplen

Calculate length of longest shared haplotypes around a focal marker
allelefurcation-class

An S4 class containing furcation trees for one allele of a focal marker
calc_furcation

calculate furcation trees around a focal marker
calc_ehhs

EHHS and iES computation for a given focal marker
data2haplohh

Convert data from input file to an object of class haplohh
calc_region_stats

Calculate score statistics for given regions
extract_regions

Extract regions from a scan
distribplot

Plot distribution of standardized iHS, Rsb or XP-EHH values
haplohh-class

Class "haplohh"
calc_candidate_regions

Determine candidate regions of selection
plot.ehhs

Plot EHHS around a focal marker
ies2xpehh

Compute XP-EHH
haplohh_cgu_bta12

Example of an haplohh object
freqbinplot

Plot of unstandardized iHS within frequency bins
furcation-class

An S4 class representing the complete furcation pattern around a focal marker.
update_haplohh

Update object of class haplohh
subset.haplohh

ihh2ihs

Compute iHS
ftree-class

An S4 class to represent a furcation tree on one side of one allele of a focal marker
plot.ehh

Plot EHH around a focal marker
scan_hh

Compute iHH, iES and inES over a whole chromosome
scan_hh_full

Compute iHH, iES and inES over a whole chromosome without cut-offs
manhattanplot

Manhattan plot of iHS, XP-EHH or Rsb over a genome.
haplen-class

class for haplotype length
calc_ehh

EHH and iHH computation for a given focal marker
make.example.files

Copy example input files into current working directory
ines2rsb

Compute Rsb
plot.haplen

Plot the length of extended haplotypes around a focal marker
plot.haplohh

Plot the variants of a haplohh object
plot.furcation

Plots furcation trees around a focal marker
rehh-package

rehh: Searching for Footprints of Selection using 'Extended Haplotype Homozygosity' Based Tests
remove.example.files

Remove example files from current working directory.