Learn R Programming

COSINE (version 1.0)

get_quantiles: Get the five quantiles of the weight parameter lambda

Description

Use random sampling to get a large number of subnetworks and then calculate the distribution of the ratio between the edge-score term and node-score term

Usage

get_quantiles(diff_expr, diff_coex, klist, pop_size)

Arguments

diff_expr
The vector storing the F-statistics measuring the differential expression of each gene
diff_coex
The matrix storing the ECF-statistics measuring the differential correlation of each gene pair
klist
A vector of the sizes (number of genes) of random subnetworks to be sampled
pop_size
The number of random subnetworks to be sampled

Value

  • A list containing two components:
  • ratioThe five quantiles of the log-ratios between the edge-score term and node-score term
  • lambdaThe five quantiles of lambdas calculated based on the ratios

Examples

Run this code
data(set1_scaled_diff)

klist<-c(20,25)

set1_quantile<-get_quantiles(diff_expr=set1_scaled_diff[[1]],
diff_coex=set1_scaled_diff[[2]],klist,pop_size=20)

Run the code above in your browser using DataLab