AssignPresentAbsentOneSample: Randomly assign present / absent to each of a set of...

View source: R/CreateSynData.R

AssignPresentAbsentOneSampleR Documentation

Randomly assign present / absent to each of a set of signatures, and keep trying until at least one is present

Description

Randomly assign present / absent to each of a set of signatures, and keep trying until at least one is present

Usage

AssignPresentAbsentOneSample(prev.present, verbose = 0)

Arguments

prev.present

Vector of prevalences, each the prevalence of 1 mutational signature.

verbose

If > 0, cat some possibly informative messages

Value

a vector of 0s and 1s of length length(prev.present), and for which sum(prev.present) > 0.


steverozen/SynSigGen documentation built on April 1, 2022, 8:54 p.m.