summarizeRegions1: Step 1 of region summary

summarizeRegions1R Documentation

Step 1 of region summary

Description

Function used by regionFinalize to group segments

Usage

summarizeRegions1(x)

Arguments

x

A list of dataframes containing calculated values and JMM state determinations

Value

Output is a list of dataframes

Author(s)

Michelle Webb

Examples

## Not run: data('humanGBMsampleAC')
data('initialStartProbabilities')
df <- tLOHCalcUpdate(humanGBMsampleAC,1.25,1.25,500,500,4)
dataframeList <- prepareHMMdataframes(df)
trProbs <- cbind(c(0.8999,0.1001),c(0.1001,0.8999))
dataframeList2 <- runHMM_1(dataframeList, initialStartProbabilities, trProbs)
dataframeList3 <- runHMM_2(dataframeList2)
output <- runHMM_3(dataframeList3)
intermediate <- regionAnalysis(dataframeList,output)
finalList1 <- purrr::map(intermediate, 
~dplyr::mutate(.x, state = as.character(state)))
sampleValues <- as.data.frame(purrr::reduce(finalList1,full_join))
sampleData <- summarizeRegions1(finalList1)
## End(Not run)

USCDTG/tLOH documentation built on Dec. 19, 2024, 10:24 p.m.