summarizeRegions2 | R Documentation |
Function used by regionFinalize to identify segment start and end positions
summarizeRegions2(finalTable)
finalTable |
A dataframe containing metrics from the Bayes Factor and HMM analysis |
Output is a dataframe
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) sampleData$lengthOfInterval <- sampleData$intervalEnd - sampleData$intervalStart sampleDF <- summarizeRegions2(sampleValues) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.