loadScoreFromFile: Load score from file

View source: R/rMethods.R

loadScoreFromFileR Documentation

Load score from file

Description

Reads a csv file containing an alphabet, the associated scores, and eventually the associated probabilities.

Usage

loadScoreFromFile(filepath, header = TRUE, ...)

Arguments

filepath

optional: location of file on disk. If not provided, a file picker dialogue box will be opened.

header

does the file contain a header line (defaut to TRUE)

...

optional: use arguments from read.csv

Details

The file should contains a header and 2 or 3 columns : first column the letters, second column the associated scores, optional third column associated probabilities. Letters should be unique and probabilities should sum to 1.

Value

A data.frame. Rownames correspond to the first column, usually Letters. Associated numerical scores are in the second column. If probabilities are provided, they will be loaded too and presumed to be in the third column


localScore documentation built on April 3, 2025, 5:26 p.m.