select_replicates | R Documentation |
Reduce sample list by subsetting replicates based on a specified metric.
select_replicates(data, id, metric, max_replicates = 1, decreasing = T)
data |
Data frame with at least two columns, one with a sample ID for detecting replicates and another with a metric to use for selecting replicates. |
id |
Sample ID to use for detecting replicates. |
metric |
Metric name to use for selecting replicates. |
max_replicates |
Maximum number of replicates to keep from a replicate set. |
decreasing |
If 'TRUE', choose replicates by starting with the highest metric value. Otherwise choose replicates by starting with the lowest metric value. |
Detects replicate samples from a sample list using ID duplicates and retains only replicate(s) that meet selection criteria for the user-specified metric.
A vector of indices for selected sample replicates as well as samples without
replicates. Indices correspond to rows in data
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.