label_shuffling: Calculate p-values using label shuffling.

Description Usage Arguments Value

View source: R/difference_functions.R

Description

Calculate p-values using label shuffling.

Usage

1
2
3
4
5
6
7
8
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.


esebesty/SplicingFactory documentation built on Feb. 27, 2022, 12:08 a.m.