calculate_fc: Calculate splicing diversity changes between two conditions.

Description Usage Arguments Details Value

View source: R/difference_functions.R

Description

Calculate splicing diversity changes between two conditions.

Usage

1
calculate_fc(x, samples, control, method = "mean")

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'.

Details

The function uses a matrix of splicing diversity values in order to calculate mean or median differences and log2 fold changes between two conditions.

Value

A data.frame with mean or median value of splicing diversity across sample categories, the difference between these values and the log2 fold change values.


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