Differential_introgression: Peroform differential introgression analysis

View source: R/Differential_introgression.R

Differential_introgressionR Documentation

Peroform differential introgression analysis

Description

Peroform differential introgression analysis

Usage

Differential_introgression(
  Data,
  H.id,
  S0.id,
  S1.id,
  n.ind,
  permutations,
  ploidy
)

Arguments

Data

Object produced by the PrepareData function

H.id

Character, the label for the hybrid population.

S0.id

Character, the label for the S0 parental population.

S1.id

Character, the label for the S1 parental population.

n.ind

Numeric, the number of individuals in your data file.

permutations

Numeric, number of permutations to use in significance testing.

ploidy

Numeric, ploidy of markers in the Data object.

Value

A p-value for each SNP representing the proportion of permutations that possessed a greater proportion of S1 alleles in permuted hybrids than the empirical data.

Examples

## Not run:  DI_test <- Differential_introgression(Data, H.id = 'H', S0.id = 'P',
S1.id = 'K', n.ind = 73, permutations = 1000, ploidy = 2)
## End(Not run)

kfarleigh/HybridFindR documentation built on Jan. 29, 2024, 11:39 p.m.