convertDF {mitoticFigureCounts} | R Documentation |
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.
convertDF(inDF, inDFtype, outDFtype, readers, nameTruth)
inDF |
Counting data frame: dfClassify: |
inDFtype |
Type of input data frame |
outDFtype |
Type of output data frame |
readers |
Vector of reader IDs |
nameTruth |
Column name of truth |
Output data frame with 11 column targetID, cell.mark, wsiName, roiID, cellID.mskcc20171103, xCell, yCell, truth, modalityID, readerID, score
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)