SimulateBarcode: Simulate barcode for decomposition illustration

Description Usage Arguments Value

View source: R/simulation.R

Description

Generates a nucleotide barcode similar to those generated by 10x chromium sequencing platforms for illustration purposes. Generates barcode and individual ID separated by '-' delimiter.

Usage

1
SimulateBarcode(index, individual, barcode.length)

Arguments

index

Integer. Index of cell ID from 0 to barcode.length to the fourth power. Will generate a unique nucleotide barcode for each index.

individual

Character. ID of individual that the cell is from.

barcode.length

Integer. Length of nucleotide barcode.

Value

Simulated barcode for cell from an individual


BisqueRNA documentation built on May 24, 2021, 1:06 a.m.