gh_get_transformations {flowWorkspace} | R Documentation

## Return a list of transformations or a transformation in a GatingHierarchy

### Description

Return a list of all the transformations or a transformation in a GatingHierarchy

### Usage

    gh_get_transformations(
      x,
      channel = NULL,
      inverse = FALSE,
      only.function = TRUE,
      ...
    )

### Arguments

`x` | A `GatingHierarchy` object
`channel` | `character` channel name
`inverse` | `logical` whether to return the inverse transformation function. Valid when only.funtion is TRUE
`only.function` | `logical` whether to return the function or the entire transformer object(see `scales` package) that contains transform and inverse and breaks function.
`...` | other arguments equal.spaced `logical` passed to the breaks functio to determine whether to break at 10^n or equally spaced intervals

### Details

Returns a list of the transformations or a transformation in the flowJo workspace. The list is of length `L`, where `L` is the number of distinct transformations applied to samples in the `flowjo_workspace`. Each element of `L` is itself a `list` of length `M`, where `M` is the number of parameters that were transformed for a sample or group of samples in a `flowjo_workspace`. For example, if a sample has 10 parameters, and 5 are transformed during analysis, using two different sets of transformations, then L will be of length 2, and each element of L will be of length 5. The elements of `L` represent channel- or parameter-specific transformation functions that map from raw intensity values to channel-space used by flowJo.

### Value

lists of functions(or transform objects when only.function is FALSE), with each element of the list representing a transformation applied to a specific channel/parameter of a sample.

### Examples

    ## Not run:
    	#Assume gh is a GatingHierarchy
    	gh_get_transformations(gh); # return a list transformation functions
     gh_get_transformations(gh, inverse = TRUE); # return a list inverse transformation functions
     gh_get_transformations(gh, channel = "FL1-H") # only return the transfromation associated with given channel
     gh_get_transformations(gh, channel = "FL1-H", only.function = FALSE) # return the entire transform object

    ## End(Not run)

[Package flowWorkspace version 4.2.0 Index]