mixIndependX: Quick pvalue of total number of shared alleles

Description Usage Arguments Details Value Examples

View source: R/mixIndependX.R

Description

Quick pvalue of total number of shared alleles

Usage

1
mixIndependX(x,sep,t,B)

Arguments

x

a dataset of alleles. Each row denotes each individual.One allele in one cell.In the (2r-1)th column, there is the same locus with the 2r-th column; noted: no column for ID, make row.names=1 when importing.

sep

allele separator in the imported genotype data. Note: when using the special character like "|", remember to protect it as "\|".

t

times of simulation in "Simulate_DistK" and "Simulate_DistX".

B

times of bootstrapping in Chi Squares Test.

Details

This function is a summary of pipeline for number of shared alleles(X), and generates the p-value of K for the target dataset.

Value

pvalue (1-cumulative probabilities) for the number of shared alleles(K)

Examples

1
2
3
x <- data.frame(SNP1=c("A|A","T|T","A|T","A|T"),
                STR1=c("12|12","13|14","13|13","14|15"))
mixIndependX(x,sep="\\|",10,10)

mixIndependR documentation built on March 17, 2021, 5:09 p.m.