metaGE.lscore {metaGE}R Documentation

Compute the local score from a set of pvalues.

Description

The function metaGE.lscore computes the local score and the significant regions from a set of pvalues.

Usage

metaGE.lscore(Data, PvalName, xi)

Arguments

Data

A dataset containing the following columns: CHR, POS, MARKER and PvalName.

PvalName

The name of the column containing the p-value.

xi

The threshold of the score, xi = 1,2,3 or 4.

Details

This function is directly inherited from the scorelocalfunctions.R R code file of Fariello MI, Boitard S, Mercier S, et al., as available on the https://forge-dga.jouy.inra.fr/projects/local-score website. The technical details of the computation can be found in Fariello MI, Boitard S, Mercier S, et al. Accounting for linkage disequilibrium in genome scans for selection without individual genotypes: The local score approach. https://doi.org/10.1111/mec.14141. The function computes a local score for the detection of significant regions based on the hypothesis that the H0 distribution of the pvalues is uniform. Under this hypothesis the local score follows a Gumbel distribution (under H0) whose parameters depend on the threshold xi and on the autocorrelation between pvalues within each chromosome. The threshold has to be selected in 1,2,3,4 and the autocorrelation is computed internally.

Value

A list of:

Examples

require(dplyr)
## Not run: 
# Import the data
data("metaData")

# Compute the inter-environment correlation matrix
matCorr <- metaGE.cor(metaData, Threshold = 0.8)

# Fit the Fixed Effect model
FeDF <- metaGE.fit(metaData, matCorr, Method = "Fe")

# Compute the score local
xi <- 2
FeScore <- metaGE.lscore(FeDF,"PVALUE", xi)
#FeScore$SigZones
## End(Not run)

[Package metaGE version 1.0.3 Index]