compute_weights_default: Compute default weights

View source: R/analysis.R

compute_weights_defaultR Documentation

Compute default weights

Description

This procedure computes the weights for edges of a graph accordingly to CIMICE specification. (See vignettes for further explainations)

Usage

compute_weights_default(g, freqs)

Arguments

g

a graph (must be a DAG with no transitive edges)

freqs

observed frequencies of genotypes

Value

a graph with the computed weights

Examples

require(dplyr)
preproc <- example_dataset() %>% dataset_preprocessing
samples <- preproc[["samples"]]
freqs   <- preproc[["freqs"]]
labels  <- preproc[["labels"]]
genes   <- preproc[["genes"]]
g <- graph_non_transitive_subset_topology(samples, labels)
compute_weights_default(g, freqs)


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.