ct.RRAalphaBatch {gCrisprTools} | R Documentation

## Create Batches of Null Permutations for a Crispr Screen

### Description

This is a wrapper function to partition batches of calls to `ct.RRAalpha()` for multicore processing. It is called internally as a single instance of the beta aggregation step in RRAa. Users should not interact with it directly.

### Usage

    ct.RRAalphaBatch(
      p,
      g.key,
      result.environment,
      batch.size = 100,
      permutation.seed = NULL
    )

### Arguments

`p` | A single column matrix of rank statistics, with row.names indicating the gRNA labels.
`g.key` | data.frame with guide and gene names
`result.environment` | The target environment containing the quasi-global variables incremented during the permutations in the child functions.
`batch.size` | Number of iterations to deploy to each daughter process.
`permutation.seed` | numeric seed for permutation reproducibility. Default is `NULL`, in which case no seed is set.

### Value

An integer vector indicating the number of iterations in which each gene's score was better than those indicated in `result.environment$obs`.

### Author(s)

Russell Bainer

[Package gCrisprTools version 2.0.0 Index]