get_quantiles {COSINE} | R Documentation |
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
get_quantiles(diff_expr, diff_coex, klist, pop_size)
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 |
A list containing two components:
ratio |
The five quantiles of the log-ratios between the edge-score term and node-score term |
lambda |
The five quantiles of lambdas calculated based on the ratios |
Haisu Ma
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)