pair_test | R Documentation |
Pairwise post hoc test. Should only be used if haplotype based test have shown to be significant.
pair_test(freq, Ne, repli, tdelta)
freq |
Numeric matrix, with each i,j element being the frequency of haplotype i at sequenced time point j. |
Ne |
Numeric vector with length as number of replicates, containing information of Ne (effective population size) at each replicated population. If Ne changes over time, take as input a numeric matrix, with the column being the replicate position, row being the Ne at each sequenced time points. |
repli |
Numeric, specifying the number of replicated populations. |
tdelta |
Numeric, number of generations between each pair of time points of interests |
A numeric vector of p-values from all the pairwise test after B&H corrections. The pairwise test is sorted such that its between haplotypes :1-2, 1-3, 1-4,...,2-3,2-4,...,3-4,...
haplotest()
#We show here an example for the pairwise test for fitness differences #Suppose we have the haplotype frequency matrix hap_freq, sequenced at every 10 generations, with effective population size 1000 and 3 replicate populations, the number of selected haplotypes is computed by: pair_pval = pair_test(hap_freq, Ne = rep(1000,3), repli = 3, deltat = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.