measure_sgrna_stats {CB2}R Documentation

A function to perform a statistical test at a sgRNA-level

Description

A function to perform a statistical test at a sgRNA-level

Usage

measure_sgrna_stats(
  sgcount,
  design,
  group_a,
  group_b,
  delim = "_",
  ge_id = NULL,
  sg_id = NULL
)

Arguments

sgcount

This data frame contains read counts of sgRNAs for the samples.

design

This table contains study design. It has to contain 'group.'

group_a

The first group to be tested.

group_b

The second group to be tested.

delim

The delimiter between a gene name and a sgRNA ID. It will be used if only rownames contains sgRNA ID.

ge_id

The column name of the gene column.

sg_id

The column/columns of sgRNA identifiers.

Value

A table contains the sgRNA-level test result, and the table contains these columns:

Examples

library(CB2)
data(Evers_CRISPRn_RT112)
measure_sgrna_stats(Evers_CRISPRn_RT112$count, Evers_CRISPRn_RT112$design, "before", "after")


[Package CB2 version 1.3.4 Index]