getSampleMatrix: Generates a matrix containing edge sample strings digits.

Description Usage Arguments Value

View source: R/SSC.R

Description

The returned matrix contains as many rows as there are edges in the network and as many columns as their are samples. Each column corresponds to a sample in the same order as the sample strings from the network.

Usage

1
getSampleMatrix(net, strict = TRUE)

Arguments

net

A network data frame containing the KINC-produced network. The loadNetwork function imports a dataframe in the correct format for this function.

strict

If TRUE then all values in the netwrok sample string other than 1 are converted to 0. This means that numeric values indicating missingness or removal as outliers are considered as 0.

Value

An n x m matrix where n is the number of edges and m is the number of samples. The values are the numbers from the sample strings in the network.


SystemsGenetics/KINC.R documentation built on Nov. 10, 2021, 9:22 p.m.