pickunique: randomly pick up the combination of primer sets without...

Description Usage Arguments Details Value Author(s) Examples

View source: R/pickunique.R

Description

This function will randomly pick up the unique combination of primer sets. Unique means all the forward and reverse barcoded primer will be unique (used only once). Therefore, the resultant primer sets will be in the same amount as the input PrimerLabels file.

Usage

1
pickunique(combi)

Arguments

combi

argument to specify the unique primer set which have been filtered by removing primer dimer conbinations.

Details

The file to assigned to argument combi will be generated by slim function in this package. That is a random combination of barcoded primer sets within which the primer dimer sets were removed.

Value

The function will return a data frame of two columns. The 1st and 2nd columns show the identifiers of forward primer and reverse primer, respectively. If combinations more than the amount of input primerlabels are expected, please use the function 'pickmore'.

Author(s)

Sizhong Yang <yanglzu@163.com>

Examples

1
2
3
4
5
6
7
8
data(report)
data(PrimerLabels)
wcomb = reparser(report)
tcomb = primerCombi(PrimerLabels)

combs = slim(tcomb, wcomb)
uprimers = pickunique(combi = combs)
dim(uprimers)

cam315/barcodePrimer documentation built on Dec. 9, 2020, 7:01 p.m.