label_shuffling: Calculate p-values using label shuffling.

View source: R/difference_functions.R

label_shufflingR Documentation

Calculate p-values using label shuffling.

Description

Calculate p-values using label shuffling.

Usage

label_shuffling(
  x,
  samples,
  control,
  method,
  randomizations = 100,
  pcorr = "BH"
)

Arguments

x

A matrix with the splicing diversity values.

samples

Character vector with an equal length to the number of columns in the input dataset, specifying the category of each sample.

control

Name of the control sample category, defined in the samples vector, e.g. control = 'Normal' or control = 'WT'.

method

Method to use for calculating the average splicing diversity value in a condition. Can be 'mean' or 'median'.

randomizations

The number of random shuffles.

pcorr

P-value correction method applied to the results, as defined in the p.adjust function.

Value

Raw and corrected p-values.


SU-CompBio/SplicingFactory documentation built on March 28, 2022, 4:39 a.m.