Learn R Programming

BinMat (version 0.1.1)

consolidate: 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

Run this code
# NOT RUN {
data(BinMatInput_reps)
mat = BinMatInput_reps
cons = consolidate(mat)

# }

Run the code above in your browser using DataLab