generate_df_scores: generate_df_scores

Description Usage Arguments Value

View source: R/gen_weights_edges.R

Description

function to generate the weights of the edges given the combinations. It is automatically called by the geNet() function. the correlation coefficient and its pvalue is calculated using the cor.test function from the stat package. See the relative documentation for additional details.

Usage

1
generate_df_scores(all_combs, binary_matrix, signif_test = "cor_test")

Arguments

all_combs

matrix of combinations

binary_matrix

binary matrix of presence/absences genes

signif_test

significance test to use.

  • cor_test: use Pearson correlation test approach (faster)

  • chisquare: use chi-square test approach (slower) Read vignettes for additional details about the significance tests used.

Value

Object of class "dataframe" containing the connections between the nodes and relative weights


haneylab/geNet documentation built on Oct. 4, 2020, 8:40 a.m.