getFJWSubsetIndices {flowWorkspace} | R Documentation

## Fetch the indices for a subset of samples in a flowJo workspace, based on a keyword value pair

### Description

This function will calculate the indices of a subset of samples in a flowJoWorkspace, based on a keyword/value filter. It is applied to a specific group of samples in the workspace. The output is meant to be passed to the subset= argument of parseWorkspace.

### Usage

    getFJWSubsetIndices(ws, key = NULL, value = NULL, group,
      requiregates = TRUE)

### Arguments

`ws` | `flowJoWorkspace` object
`key` | `character` The name of the keyword.
`value` | `character` The value of the keyword.
`group` | `numeric` The group of samples to subset.
`requiregates` | `TRUE` or `FALSE`, specifying whether we include only samples that have gates attached or whether we include any sample in the workspace.

### Details

Returns an index vector into the samples in a flowJo workspace for use with parseWorkspace(subset=), based on a keyword/value filter in a specific group of samples.

### Value

A numeric vector of indices.

### See Also

`parseWorkspace`

[Package flowWorkspace version 3.28.2 Index]