threshold {barcodetrackR} | R Documentation

## Threshold

### 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

    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

    data(wu_subset)
    threshold(SummarizedExperiment::assay(wu_subset, assay = "counts"),
        thresh = 0.0005
    )

[Package barcodetrackR version 1.0.0 Index]