GF_Phenotype: Example phenotype allele dataset

Description Details Author(s) Examples

Description

Example ‘phenotype’ allele dataset - a monoecious non-selfing hexaploid species, seven loci observed.

Details

The dataset is available in two forms - as a compressed data file which can be loaded easily into R via the R data function, i.e., data(FR_Genotype), and as a CSV (Comma-Separated-Value, a plain text format) file, to provide an example of the required CSV format.

Note that a technicality of R's package building process requires the use of data to load the data in the reference help examples, whereas the user would generally invoke the inputData function to load their own data from file. An example of the latter is demonstrated in the example section on this page, but is not run.

Author(s)

Alexander Zwart (alec.zwart at csiro.au)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
## To locate this dataset in your filesystem, use:

pDataFile <- system.file("extdata/GF_Phenotype.csv",
                         package="PolyPatEx")
print(pDataFile)

## To load this file using PolyPatEx's 'inputData' function use:

pData <- inputData(pDataFile,
                  numLoci=7,
                  ploidy=6,
                  dataType="phenotype",
                  dioecious=FALSE,
                  selfCompatible=FALSE)

## pData now contains the checked and preprocessed allele dataset,
## ready to be passed to other PolyPatEx analysis functions.


## End(Not run)

PolyPatEx documentation built on May 2, 2019, 3:01 a.m.