Description Usage Arguments Value Author(s) Examples
This function allows one to inspect the genotypes of all individuals in your input file to see whether genetic data is available, and if so what the proportion of homozygotes, heterozygotes fraction of missing values is.
1 | inspect(ind, gen)
|
ind |
The input file with individuals, which should contain at least the columns brood, individual, type, social.parent, year. |
gen |
The input file with genotypes, which should contain the loci-names as column headers and the individual names as row-header and should only contain the values 0, 1, 2 or NA. |
the individuals file with a summary of the genotypes attached. #'
an identifier of the brood to which the offspring and adults belong/are associated with
an identifier of the offspring
denotes whether the individual is an offspring, adult female (potential dam) or adult male (potential sire)
if the individual is the social parent of the brood then equal to 1, else 0
the year or cohort that is being considered, adults can be potential dam or sire in some years, but no in others
if the individual's genotypic data is in the genotypes file then equal to 1, else 0
the proportion of loci that was scored as 0 (homozygotes at common allele)
the proportion of loci that was scored as 1 (homozygotes at rare allele)
the proportion of loci that was scored as 2 (heterozygote)
the proportion of loci that has missing values (NA)
the number of loci that has genotypic information (i.e. not NA)
Martijn van de Pol, martijn@myscience.eu
1 2 | overview<-inspect(ind=individuals[1:22,], gen=genotypes)
head(overview)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.