Skip to contents

`perm_link` is used to obtain permutatied number of links between two genesets of a defined number of gene

Usage

perm_link(r, c, gene_network_adj, core, k, hash = T)

Arguments

r

length of the first geneset (rows)

c

length of the second geneset (columns)

gene_network_adj

adjacency matrix of the gene network used

core

threads to be used for permutation

k

number of permutation

hash

logical, indicating if random sampling should be done by using hashmap (see `sample.int()`)

Value

The function a list k matrices, each one composed by the number of links in the permutated verion of the two genesets

Details

The function generates k permuted verion of two geneset of defined length by random sampling the gene network adjacency matrix. Then identify the subset of the adjacency matrix for each k geneset and calculates the number of links.