GenoFreq.jl
PopGenCore.jl/src/GenoFreq.jl
📦 not exported | 🟪 exported by PopGenCore.jl | 🔵 exported by PopGen.jl |
---|
🟪 genocount_observed
genocount_observed(locus::T) where T<:GenotypeArray
Return a Dict
of genotype counts of a single locus in a
PopData
object.
🟪 genocount_expected
genocount_expected(locus::T) where T<:GenotypeArray
Return a Dict
of the expected genotype counts of a single locus in a
PopData
object. Expected counts are calculated as the product of observed allele frequencies multiplied by the number of non-missing genotypes.
🟪 genofreq
genofreq(locus::T) where T<:GenotypeArray
`PopData` object.
Return a Dict
of genotype frequencies of a single locus in a
genofreq(data::PopData, locus::String; population::Bool = false)
Return a Dict
of genotype frequencies of a single locus in a PopData
object. Use population = true
to return a table of genotype frequencies
of that locus per population.
cats = @nancycats
genofreq(cats, "fca8")
genofreq(cats, "fca8", population = true)
🟪 genofreq_expected
genofreq_expected(locus::T) where T<:GenotypeArray
Return a Dict
of the expected genotype frequencies of a single locus in a PopData
object. Expected frequencies are calculated as the product of
observed allele frequencies.
genofreq_expected(data::PopData, locus::String; population::Bool = false)
Return a Dict
of expected genotype frequencies of a single locus in a
PopData
object. Use population = true
to return a table of expected genotype frequencies of that locus per population.
Example
cats = @nancycats
genofreq_expeced(cats, "fca8")
genofreq_expected(cats, "fca8", population = true)