summarizeRegions1 | R Documentation |
Function used by regionFinalize to group segments
summarizeRegions1(x)
x |
A list of dataframes containing calculated values and JMM state determinations |
Output is a list of dataframes
Michelle Webb
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.