convertDF {mitoticFigureCounts}R Documentation

convertDF

Description

This function converts a "matrixWithTruth" data frame to a "listWithTruth" data frame. The "matrix" part of the input data frame is understood to contain scores from readers: One column for each reader. Column names are the reader names. The reader names (column names) need to be specified in the "readersVector" input parameter.

Usage

convertDF(inDF, inDFtype, outDFtype, readers, nameTruth)

Arguments

inDF

Counting data frame: dfClassify: dfClassify20180627

inDFtype

Type of input data frame

outDFtype

Type of output data frame

readers

Vector of reader IDs

nameTruth

Column name of truth

Value

Output data frame with 11 column targetID, cell.mark, wsiName, roiID, cellID.mskcc20171103, xCell, yCell, truth, modalityID, readerID, score

Examples

dfClassify <- mitoticFigureCounts::dfClassify20180627
readersVector <- names(dfClassify)[8:12]
nameTruth <- names(dfClassify)[13]
df.convert <- convertDF(dfClassify, "matrixWithTruth", "listWithTruth", readersVector, nameTruth)
head(dfClassify)
head(df.convert)

[Package mitoticFigureCounts version 1.0 Index]