compute_snpQ1: compute_snpQ1

compute_snpQ1R Documentation

compute_snpQ1

Description

Compute SNP-specific Q1 by averaging over all samples

Usage

.compute_snpQ1(refcount, totcount, weight, verbose)

Arguments

refcount

Matrix of nsnpxnpop with counts (genotype or reads) for the reference allele

totcount

Matrix of nsnpxnpop with total counts or read coverages

weight

Vector of length npop giving the weighting scheme (w=1 for allele count data and w=poolsize/(poolsize-1) for PoolSeq data)

verbose

Logical (if TRUE progression bar is printed on the terminal)

Details

Compute all the SNP-specific Q1 over all pop. samples (useful for Fst computation with method Identity).

Value

Return a vector of length nsnps with SNP-specific Q1

Examples

#

poolfstat documentation built on April 4, 2025, 1:49 a.m.