Learn R Programming

poolfstat (version 3.0.0)

compute_snpQ2onepair: compute_snpQ2onepair

Description

Compute SNP-specific Q2 for a single pair of samples

Usage

.compute_snpQ2onepair(refcount1, refcount2, totcount1, totcount2)

Value

Return a vector of length nsnps with SNP-specific Q1

Arguments

refcount1

Vector of count (genotype or reads) for the reference allele in the first sample

refcount2

Vector of count (genotype or reads) for the reference allele in the second sample

totcount1

Vector of total count or read coverages in the first sample

totcount2

Vector of total count or read coverages in the second sample

Details

Compute SNP-specific Q2 for a single pair of samples

Examples

Run this code
#

Run the code above in your browser using DataLab