run_activity_tests: Run MPRA activity tests

Description Usage Arguments Details Value Note Examples

View source: R/traditional_analysis_functions.R

Description

Given a set of MPRA activity measurements, run significance tests to see if there's a difference in activity tests between alleles

Usage

1
2
3
4
5
6
run_activity_tests(
  mpra_activities,
  test_type = "t",
  compute_FDR = TRUE,
  plot_p_hist = TRUE
)

Arguments

mpra_activities

a "tall" data frame of MPRA activities

test_type

a string indicating the type of test to use to compare activities, either 't' or 'U'

compute_FDR

logical indicating whether or not to add on a column of FDR q-values

plot_p_hist

logical indicating whether or not to plot a histogram of p-values

Details

Compute activity tests by MPRA variant, comparing the activity measurements between alleles across all sequencing samples.

Value

a data frame of test statistics

Note

These tests assume that after depth correction, MPRA activities are identically distributed across sequencing samples. Thus activities for the same barcodes across different samples are considered as independent measurements.

Examples

1

andrewGhazi/malacoda documentation built on Aug. 2, 2020, 12:54 a.m.