FGf: Four-gamete Test

Description Usage Arguments Value Examples

View source: R/FGf.R

Description

The function FGf allows users to quickly assess genotypic data for phylogenetic incompatibility, a sign of recombination, using the four-gamete test.

Usage

1
FGf(x)

Arguments

x

A properly formatted data frame. For details see '?FourgameteP'

Value

All data output files are organized based on names in the example:

Columns "Locus1" and "Locus2" in data files indicate which two columns (loci) of your data were being compared.

In data output file "TrueUnique", the column "Locus1A" is the first allele "A" in the column "Locus1" while "Locus2B" would indicate the second allele (B) present in the "Locus2" column. Together they make up four dilocus genotypes (or the four gametes): (Locus1A,Locus2A), (Locus1A, Locus2B), (Locus1B,Locus2A), and (Locus1B,Locus2B)

The "FourGametes?" column indicates if the program was able to find all four gametes. A value of "TRUE" indicates phylogenetic incompatibility between the tested loci. A value of <e2><80><9c>FALSE<e2><80><9d> indicates that only three or fewer gametes were found.

"FinalResults" This file contains all locus pair comparisons and if the program was able to find any ANY combination of alleles at a locus pair for which the four gametes were found (TRUE) or if it was only able to find three or fewer of the gametes (FALSE).

"TrueUnique" This file contains all of the possible combination of alleles at all locus pairs for which the four gametes can be found (TRUE).

The number of monomorphic loci is stored in the value "MonoLoci" and their identity in "NamesOfMonoLoci".

The total number of comparisons between loci that are not monomorphic is stored in "Comparisons"

The number of these comparisons that were TRUE or False is stored in "ComparisonsTrue" or in "ComparisonsFalse" respectively.

Examples

1
2
3
4
5
n = c(2, 3, 3, 2)
c = c(2, 2, 4, 4)
d = c(2, 5, 5, 3)
df = data.frame(n, c, d)
FGf(df)

FourgameteP documentation built on May 2, 2019, 4:59 a.m.

Related to FGf in FourgameteP...