metaGE.lscore: Compute the local score from a set of pvalues.

View source: R/metaGEscore.R

metaGE.lscoreR 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. \Sexpr[results=rd]{tools:::Rd_expr_doi("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 with the following elements:

Data The dataset Data with the local score as supplementary column.
SigZones A dataset containing information about the significant regions.
SigMarker A dataset containing the significant markers.
ChrThreshold A dataset containing the chromosome-wide significance thresholds.

Examples

require(dplyr)
# 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

metaGE documentation built on April 3, 2025, 8:48 p.m.