fSuSiE credible band (fitted effect + uncertainty band)
Source:R/AllGenerics.R, R/AllClasses.R
fsusieCredibleBand.RdFor 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). Uses saved bands in trimmed fits, or computes
them from an untrimmed fit. Returns zero rows when the functional fields
are absent.
Usage
fsusieCredibleBand(x, ...)
# S4 method for class 'FineMappingResultBase'
fsusieCredibleBand(x)Value
A long tibble: cs, chrom, pos, effect, lower, upper,
halfwidth – halfwidth being (upper - lower) / 2, the
symmetric band half-width publication tables carry (the collection method
additionally carries the entry identity columns).
Examples
data(fsusieFineMappingExample)
fsusieCredibleBand(fsusieFineMappingExample)
#> # A tibble: 32 × 15
#> study context trait blockId method dataType dataSource standardized cs
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 2 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 3 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 4 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 5 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 6 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 7 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 8 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 9 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> 10 protocol… methyl… chr2… NA fsusie NA NA NA fsus…
#> # ℹ 22 more rows
#> # ℹ 6 more variables: chrom <chr>, pos <dbl>, effect <dbl>, lower <dbl>,
#> # upper <dbl>, halfwidth <dbl>