compute_weights_default {CIMICE}R 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)


[Package CIMICE version 1.2.1 Index]