get_sample_idx: Returns the indices of the events corresponding to a given...

get_sample_idxR Documentation

Returns the indices of the events corresponding to a given sample label

Description

Returns the indices of the events corresponding to a given sample label

Usage

get_sample_idx(
  label,
  bc.results,
  sep.threshold,
  mahal.threshold = NULL,
  mahal.dist = NULL
)

Arguments

label

Character string. The desired sample label

bc.results

The debarcoding results returned from debarcode_data

sep.threshold

The threshold value for the separation between the positive and negative barcode channels. Only events whose separation is greater than this threshold are assigned to the sample

mahal.threshold

If not NULL The threshold value for the Mahalanobis distance between each event and the centroid of the sample the event has been assigned to. Only events with distance lower than this threshold are assigned to the sample.

mahal.dist

A vector of Mahalnobis distances, as returned by get_mahalanobis_distance. Only used if mahal.threshold is not NULL

Value

Returns a boolean vector with TRUE corresponding to the desired events


ParkerICI/premessa documentation built on Sept. 16, 2022, 3:06 p.m.