calculate_fc: Calculate splicing diversity changes between two conditions.

View source: R/difference_functions.R

calculate_fcR Documentation

Calculate splicing diversity changes between two conditions.

Description

Calculate splicing diversity changes between two conditions.

Usage

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.


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