build.scores.matrix: Build scores matrix

Description Usage Arguments Value Examples

Description

Build a scores matrix from file

Usage

1
2
3
build.scores.matrix.from.list(file = "scores.list.txt", split = "[(\t,|)]")

build.scores.matrix.from.tupla(file = "scores.tupla.txt")

Arguments

file

name of the text file to be read. The matrix of the input file can be either a list (e.g in the form example nodeX|score), or a tupla (i.e. in the form example nodeX score).The file extension can be plain (".txt") or compressed (".gz").

split

character vector containing a regular expression use for splitting.

Value

A named scores matrix.

Examples

1
2
3
4
file.list  <- system.file("extdata/scores.list.txt.gz", package="HEMDAG");
file.tupla <- system.file("extdata/scores.tupla.txt.gz", package="HEMDAG");
S <- build.scores.matrix.from.list(file.list, split="[(\t,|)]");
S <- build.scores.matrix.from.tupla(file.tupla);

HEMDAG documentation built on Feb. 12, 2021, 5:13 p.m.