Skip to contents

Get the model posterior distribution of a mutation.

Usage

posterior(x, id)

Arguments

x

An obj of class 'INCOMMON'.

id

An identifier for the mutation as created by function idify.

Value

A table showing posterior distribution and entropy.

Examples

# First load example classified data
data(MSK_classified)
# Get posterior distribution of a specific mutation using sample:chr:from:to:ref:alt as id
posterior(MSK_classified, id = 'P-0028912-T01-IM6:chr17:7577121:7577121:G:A:133:837')
#> → No CHOL-specific prior probability specified for TP53
#> → Using a pan-cancer prior
#> # A tibble: 6,696 × 11
#>       NV    value Major minor ploidy multiplicity karyotype label  peak  entropy
#>    <int>    <dbl> <int> <int>  <int>        <int> <chr>     <chr> <dbl>    <dbl>
#>  1     1 1.26e-17     1     0      1            1 1:0       1N (… 0.176 1.59e-10
#>  2     1 1.26e-15     1     1      2            1 1:1       2N (… 0.15  1.59e-10
#>  3     1 1.26e-15     2     0      2            1 2:0       2N (… 0.15  1.59e-10
#>  4     1 9.85e-31     2     0      2            2 2:0       2N (… 0.3   1.59e-10
#>  5     1 5.45e-15     2     1      3            1 2:1       3N (… 0.130 1.59e-10
#>  6     1 2.01e-28     2     1      3            2 2:1       3N (… 0.261 1.59e-10
#>  7     1 4.21e-12     2     2      4            1 2:2       4N (… 0.115 1.59e-10
#>  8     1 6.25e-25     2     2      4            2 2:2       4N (… 0.231 1.59e-10
#>  9     2 1.06e-16     1     0      1            1 1:0       1N (… 0.176 8.39e-10
#> 10     2 9.09e-15     1     1      2            1 1:1       2N (… 0.15  8.39e-10
#> # ℹ 6,686 more rows
#> # ℹ 1 more variable: state <chr>