multilocusTypes(adata)
inputData
.uniqueProgenyTypes
numUniqueProgenyTypes
uniqueAdultTypes
numUniqueAdultTypes
uniqueProgenyMLTypes
numUniqueProgenyMLTypes
uniqueAdultMLTypes
numUniqueAdultMLTypes
multilocusTypes
summarises the different genotypes
present at each locus in the dataset (separately for progeny and
adults), and across the loci (again, separately for progeny and
adults). multilocusTypes
returns a list structure with
several elements.
## Using the example dataset 'FR_Genotype':
data(FR_Genotype)
## Since we did not load this dataset using inputData(), we must
## first process it with preprocessData() before doing anything
## else:
gData <- preprocessData(FR_Genotype,
numLoci=7,
ploidy=4,
dataType="genotype",
dioecious=TRUE,
mothersOnly=TRUE)
head(gData) ## Checked and Cleaned version of FR_Genotype
mTypes <- multilocusTypes(gData)
## mTypes is a list structure - individual components can be
## printed to the screen, or saved to file via, e.g. read.csv().
mTypes$numUniqueProgenyTypes
## Components of mTypes
names(mTypes)
Run the code above in your browser using DataLab