phsc.define.stage1.analyses: Determine stage 1 phyloscanner runs

View source: R/phyloscan.fun.R

phsc.define.stage1.analysesR Documentation

Determine stage 1 phyloscanner runs

Description

This function groups individuals for phyloscanner analyses, so that phylogenetic linkage between every pair of individuals is assessed at least once. Specifically, individuals are grouped into batches of specified size, and then, all possible pairs of batches are formed. Each of these pairs of batches defines a group of individuals between whom phylogenetic linkages are assessed in one phyloscanner run. The number of individuals in each group is twice the batch size.

Usage

phsc.define.stage1.analyses(x, batch.size = 50)

Arguments

x

Character vector of individual identifiers.

batch.size

Batch size. Default is 50.

Value

data.table with rows 'IND' (individual identifiers), 'PTY_RUN' group for phyloscanner analysis, and 'BATCH' batch of individuals (not used further, but there should be two batches of individuals in each phyloscanner analysis).


olli0601/phyloscan documentation built on April 19, 2024, 8:31 p.m.