plot_IQR_condition_exp: Get and plot the IQRs of submatrices of the correlation...

Description Usage Arguments Value Note Examples

View source: R/functions_evaluation.R

Description

The get_IQR_condition_exp function computes the IQRs of a set of 10 by 10 same-size bins that partition the correlation matrix, ordered according to expression level.

The plot_IQR_condition_exp function plots the IQR for each bin among a set of 10 by 10 same-size bins that partition the correlation matrix, with IQR denoted by the width of boxes in the plot.

Usage

1
2
get_IQR_condition_exp(cor_mat, ave_exp)
plot_IQR_condition_exp(IQR_list)

Arguments

cor_mat

correlation matrix, generated by gene expression matrix, with genes sorted by average expression levels.

ave_exp

vector, average expression level of each gene for the normalized gene expression matrix.

IQR_list

List, output of get_IQR_condition_exp.

Value

A plot with boxes that shows the IQR of each bin

Note

The mnemonic for condition_exp is ‘conditional on expression’.

Examples

1
2
3
4
5
6
7
if(require(spqnData)) {
    data(gtex.4k)
    cor_mat <- cor(t(assay(gtex.4k)))
    ave_logrpkm <- rowData(gtex.4k)$ave_logrpkm
    IQR_list <- get_IQR_condition_exp(cor_mat, ave_exp = ave_logrpkm)
    plot_IQR_condition_exp(IQR_list)
    }

hansenlab/spqn documentation built on April 25, 2020, 5:15 p.m.