build.scores.matrix: Build score matrix

build.scores.matrixR Documentation

Build score matrix

Description

Build a score matrix from file

Usage

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 score matrix.

Examples

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);

marconotaro/hemdag documentation built on Nov. 21, 2024, 10:05 p.m.