Skip to contents

For a functional-SuSiE (fsusieR::susiF) fine-mapping entry, returns the fitted effect curve and its credible band over the functional grid, one row per (credible set, grid position). Wraps the upstream fSuSiE band computation (fsusieR's internal update_cal_credible_band.susiF + get_fitted_effect). Requires an UNtrimmed fit (the wavelet slots are dropped by trimming); degrades to zero rows for non-fSuSiE or trimmed fits.

Usage

fsusieCredibleBand(x, ...)

# S4 method for class 'FineMappingResultBase'
fsusieCredibleBand(x, ...)

Arguments

x

A FineMappingRow or FineMappingResultBase.

...

Ignored.

Value

A long tibble: cs, chrom, pos, effect, lower, upper (the collection method additionally carries the entry identity columns).

Examples

data(fsusieFineMappingExample)
fsusieCredibleBand(fsusieFineMappingExample)
#> # A tibble: 32 × 11
#>    study   context trait blockId method cs    chrom   pos effect   lower   upper
#>    <chr>   <chr>   <chr> <chr>   <chr>  <chr> <chr> <dbl>  <dbl>   <dbl>   <dbl>
#>  1 protoc… methyl… chr2… NA      fsusie fsus… 22        1  0.998  0.924   1.07  
#>  2 protoc… methyl… chr2… NA      fsusie fsus… 22        2  0.969  0.902   1.04  
#>  3 protoc… methyl… chr2… NA      fsusie fsus… 22        3  0.949  0.904   0.994 
#>  4 protoc… methyl… chr2… NA      fsusie fsus… 22        4  0.798  0.740   0.855 
#>  5 protoc… methyl… chr2… NA      fsusie fsus… 22        5  0.610  0.568   0.652 
#>  6 protoc… methyl… chr2… NA      fsusie fsus… 22        6  0.502  0.445   0.559 
#>  7 protoc… methyl… chr2… NA      fsusie fsus… 22        7  0.331  0.267   0.394 
#>  8 protoc… methyl… chr2… NA      fsusie fsus… 22        8  0.118  0.0590  0.176 
#>  9 protoc… methyl… chr2… NA      fsusie fsus… 22        9 -0.111 -0.152  -0.0694
#> 10 protoc… methyl… chr2… NA      fsusie fsus… 22       10 -0.330 -0.403  -0.257 
#> # ℹ 22 more rows