threshold: Threshold

Description Usage Arguments Value Examples

View source: R/threshold.R

Description

This is a helper which function takes in sequence data in table form, along with a threshold, to each column (e.g. if threshold is set as 0.0005, only rows in which an element is above 0.05 its column will be kept).

Usage

1
threshold(your_data, thresh = 5e-04, thresh_type = "relative")

Arguments

your_data

A data frame. Usually individual barcodes in rows and samples in columns.

thresh

Numeric.

thresh_type

Character. One of "relative" or "absolute"

Value

A data frame where all rows (barcodes) that did not have at least one element meet the threshold have been discarded.

Examples

1
2
3
4
data(wu_subset)
threshold(SummarizedExperiment::assay(wu_subset, assay = "counts"),
    thresh = 0.0005
)

d93espinoza/barcodetrackR documentation built on April 28, 2021, 1:58 p.m.