Usage
COBRAData(pval = data.frame(), padj = data.frame(), score = data.frame(),
truth = data.frame(), object_to_extend = NULL)COBRAData_from_text(truth_file, result_files, feature_id)
COBRAData_to_text(cobradata, truth_file, result_files, feature_id)
Arguments
pval
A data frame with features as rows and methods as columns,
containing nominal p-values. Missing values (NA
s) are allowed. The
row names should be feature names.
padj
A data frame with features as rows and methods as columns,
containing adjusted p-values. Missing values (NA
s) are allowed. The
row names should be feature names.
score
A data frame with features as rows and methods as columns,
containing generic scores. In case of comparison to a binary truth, larger
values of the scores should correspond to 'more significant' features.
Missing values (NA
s) are allowed. The row names should be feature
names.
truth
A data frame with features as rows columns containing feature
annotations such as, e.g., binary and continuous truths and additional
annotations that can be used to stratify the performance calculations. The
row names should be feature names.
object_to_extend
An COBRAData
object to extend with the
provided information.
truth_file
A character string giving the path to a file with true
labels and other feature annotations.
result_files
A character vector giving path(s) to file(s) with results
(p-values, adjusted p-values, scores) for one or more methods. The column
names of these files must be of the form "method:measure", where measure is
one of P, adjP or score, depending on what is given in the column.
feature_id
A character string giving the name of the column in the
truth and result files that encodes the feature identifier.
cobradata
An COBRAData
object