# enumerateS: Enumerate source vectors In ac2278/BIGRED: Bayes Inferred Genotype Replicate Error Detector (BIGRED)

## Description

Enumerates all source vectors associated with the k putative replicates of a given proband

## Usage

 `1` ```enumerateS(k) ```

## Arguments

 `k` (numeric integer) specifies the number of putative replicates associated with the proband in question.

## Value

The function returns a named list enumerating all of the source vectors that describe how the k putative replicates could potentially be related to one another.

## Author(s)

Ariel W Chan, [email protected]

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13``` ```k3 <- enumerateS(k=3) This function call returns a named list consisting of three elements, which are also themselves lists: 'i=1', 'i=2', and 'i=3'. Printing the output of enumerateS(k=3)[['i=2']] allows us to see the source vectors that describe the case where the k=3 supposed replicates actually originated from i=2 genotypic sources: \$`120` [,1] [,2] [,3] [1,] 1 2 2 # corresponds to the source vector S=1,2,2, where samples d=2 and d=3 originate from one genotype source and d=1 is assumed to be the outlier \$`210` [,1] [,2] [,3] [1,] 1 1 2 # corresponds to the source vector S=1,1,2, where samples d=1 and d=2 originate from one genotype source and d=3 is assumed to be the outlier [2,] 1 2 1 # corresponds to the source vector S=1,2,1, where samples d=1 and d=3 originate from one genotype source and d=2 is assumed to be the outlier ```

ac2278/BIGRED documentation built on Aug. 14, 2018, 5:23 a.m.