spike_in_ones: Utility function to spike-in a one-count to prevent any fully...

View source: R/simulate.R

spike_in_onesR Documentation

Utility function to spike-in a one-count to prevent any fully unobserved taxa

Description

Utility function to spike-in a one-count to prevent any fully unobserved taxa

Usage

spike_in_ones(counts, groups = NULL)

Arguments

counts

count table (samples x features)

groups

optional group labels; if included, a one is spiked into any feature with all-zero observations in a given group/condition

Value

counts with a minimum single observation of each feature


kimberlyroche/codaDE documentation built on May 11, 2022, 12:40 a.m.