Description Usage Arguments Note Examples
View source: R/getSummaryPatterns.R
A optional follow-up function to summarize the results of the
foundPatterns
column from groupClusters
.
1 2 | getSummaryPatterns(groupedClusters, searchPatterns = NULL,
searchIdHeader = "process", renameReverse = FALSE, asTibble = TRUE)
|
groupedClusters |
A table generated from the
|
searchPatterns |
A tibble with the known mutation patterns. The
|
searchIdHeader |
A string with the column name of the one with the pattern IDs. |
renameReverse |
A Boolean to tell if the pattern IDs from the searchPatterns also needs to be used to find the patterns with " [Rev.Com.]". If FALSE and those patterns are available, then they will be counted in the Unidentified row. |
asTibble |
A Boolean to tell if the returned table needs to be a tibble or a data.frame. |
If the groupedClusters
table contains patterns that are not
present in the searchPattern
table, then they will be marked as
Unidentified
together with clusters without patterns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Example dataset
data <- testDataSet
# Use the following functions to get the necessary table
results <- identifyClusters(dataTable = data,
maxDistance = 20000,
linkPatterns = TRUE)
groupResults <- groupClusters(dataTable = results,
searchClusterPatterns = TRUE,
patternIntersect = TRUE)
# Use the getSummaryPatterns function to see the summary of found patterns
summary <- getSummaryPatterns(groupResults)
summary
# For more information about the columns use:
cat(comment(summary))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.