consolidate {BinMat}R Documentation

Consolidates replicate pairs in a binary matrix.

Description

Reads in a binary matrix comprising replicate pairs and consolidates each pair into a consensus read. For each replicate pair at each locus, 1 & 1 -> 1 (shared presence), 0 & 0 -> 0 (shared absence), 0 & 1 -> ? (ambiguity).

Usage

consolidate(x)

Arguments

x

A CSV file containing replicate pairs of binary data. See the example input file "BinMatInput_reps".

Value

Consolidated binary matrix.

Examples

data(BinMatInput_reps)
mat = BinMatInput_reps
cons = consolidate(mat)


[Package BinMat version 0.1.5 Index]