crossValFold: Single fold of a cross-validation

Description Usage Arguments Value Author(s) See Also

Description

Perform a single fold of a K-fold cross-validation with GS3.

Usage

1
2
3
crossValFold(task.id, rep.id, fold.ids, fold.id, valid.geno.idx.per.fold, dat,
  col.id, col.trait, binary.trait, genos, config, ped.file, afs, remove.files,
  verbose = 1)

Arguments

task.id

character containing the task identifier used as prefix for the output files (the fold index will be added)

rep.id

identifier of the current replicate

fold.ids

vector of fold identifiers

fold.id

identifier of the current fold

valid.geno.idx.per.fold

vector indicating to which fold a given genotypes belongs (see getPartitionGenos)

dat

data frame with phenotypes

col.id

column identifier of the records in dat

col.trait

column identifier of the trait in dat

binary.trait

logical indicating if the trait is binary or not

genos

matrix of SNP genotypes

config

list containing the generic configuration for GS3

ped.file

path to the file containing the pedigree

afs

vector of allele frequencies which names are SNP identifiers (column names of genos); used to compute the variance of additive genotypic values from the variance of additive SNP effects (see Vitezica et al, 2013), then used to compute narrow-sense heritability

remove.files

remove files per fold (none/some/all); use "some" in real-life applications in order to keep estimates of SNP effects per fold, thereby allowing to perform genomic prediction afterwards by averaging them

verbose

verbosity level (0/1/2)

Value

named vector with metrics

Author(s)

Timothee Flutre

See Also

crossValWithGs3


INRA/rgs3 documentation built on May 20, 2019, 5:24 p.m.