Learn R Programming

coala (version 0.2.0)

feat_unphased: Feature: Unphased

Description

This simulated unphased data by creating "pseudo-chromosomes". For these, each position is randomly taken from a phased chromosome obtained by simulation.

Usage

feat_unphased(samples_per_ind)

Arguments

samples_per_ind
The number of pseudo-chromosomes that are created from the phased chromosomes for each individual.

Value

  • The feature, which can be added to a model using `+`.

Details

If this is used, the sample size is understood as the number of individuals. For each individual, ploidy chromosomes are simulated, and samples_per_ind pseudo-chromosomes are created of these.