Description Usage Arguments Details Value References See Also Examples
Compute iHS (standardized ratio of iHH values of two alleles).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
scan |
a data frame with chromosome name,
marker position, frequency of ancestral (resp. major) allele, frequency of derived (resp. minor)
allele, and iHH for both alleles, as obtained from function |
freqbin |
size of the bins to standardize log(iHH_A/iHH_D). Markers are binned with
respect to the derived allele frequency at the focal marker. The bins are built from
|
min_maf |
focal markers with a MAF (Minor Allele Frequency) lower than or equal to |
min_nhaplo |
focal markers with least one of the two compared alleles carried by fewer
than |
standardize |
logical. If |
include_freq |
logical. If |
right |
logical. If |
alpha |
calculate quantiles |
p.side |
side to which refers the p-value. Default |
p.adjust.method |
method passed to function |
verbose |
logical. If |
Computes log ratio of iHH of two focal alleles as described in Voight et al. (2006). The standardization is performed within each bins separately because of the frequency-dependence of expected iHS values under neutrality. An implicit assumption of this approach is that each bin is dominated by neutral markers.
Since the standardized iHS values follow, if markers evolve predominantly neutrally, approximately
a standard Gaussian distribution, it is practical to assign to the values a p-value relative
to the null-hypothesis of neutral evolution. The parameter p.side
determines
if the p-value is assigned to both sides of the distribution or to one side of interest.
The returned value is a list containing two elements
a data frame with markers in rows and the columns for chromosome name, marker position, iHS and, if standardized, p-value in a negative log10 scale. Optionally, allele frequencies are included.
a data frame with bins in rows and columns for the number of markers, mean uniHS, standard deviation uniHS, lower quantile uniHS, upper quantile uniHS.
Gautier, M. and Naves, M. (2011). Footprints of selection in the ancestral admixture of a New World Creole cattle breed. Molecular Ecology, 20, 3128-3143.
Voight, B.F. and Kudaravalli, S. and Wen, X. and Pritchard, J.K. (2006). A map of recent positive selection in the human genome. Plos Biology, 4, e72.
scan_hh
, distribplot
, freqbinplot
, manhattanplot
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.