AUPR_AUROC_matrix: Function to calculate the AUROC and AUPR of a known network....

Description Usage Arguments Value Examples

View source: R/AUPR_AUROC_matrix.R

Description

Function to calculate the AUROC and AUPR of a known network. This function was made to test the R implementation of the KBoost Package.

Usage

1
AUPR_AUROC_matrix(Net, G_mat, auto_remove, TFs, upper_limit)

Arguments

Net

An inferred gene regulatory network

G_mat

A matrix with the gold standard network.

auto_remove

TRUE if the auto-regulation is to be discarded.

TFs

the indexes of the rows of Net that are TFs.

upper_limit

Top number of edges to use.

Value

list object with AUPR and AUROC of gold standard in matrix format.

Examples

1
2
3
4
    data(D4_multi_1)
    Net = kboost(D4_multi_1)
    g_mat1 = tab_2_matrix_D4(KBoost::G_D4_multi_1,100)
    aupr_auroc = AUPR_AUROC_matrix(Net$GRN,g_mat1,auto_remove = TRUE,  seq_len(100))

Luisiglm/KBoost documentation built on May 13, 2021, 7:27 p.m.