Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Functional fine-mapping with fSuSiE

This vignette shows how to jointly fine-map multiple related molecular measurements in one locus with fSuSiE.

Learning goals

After completing this vignette, you will be able to:

  • decide when fSuSiE is appropriate instead of a single-trait SuSiE analysis;

  • organize genotype, phenotype, covariate and region files for a joint fit;

  • run the current qtl_dataset_construct+fsusie workflow; and

  • inspect posterior inclusion probabilities and credible-set assignments without printing the entire result object.

Background and method

fSuSiE is intended for a locus measured through multiple related functional traits, such as correlated chromatin features or other molecular measurements. It fits those measurements jointly so that shared evidence can help identify variants associated with the multivariate functional signal. A single gene-expression trait should instead use the ordinary susie_twas route.

The workflow first builds a QtlDataset, then defines the requested region and calls fineMappingPipeline() with the fsusie method. The main settings control the prior (--prior), maximum prior scale (--max-scale), credible-set purity threshold (--min-purity) and post-processing method (--post-processing). Setting --susie-top-pc above zero additionally fine-maps selected phenotype principal components with univariate SuSiE; it is optional and is not part of the default fSuSiE fit.

The bundled files below are a small multi-context molecular-trait example used to demonstrate the current interface. They are not a biological epigenomic benchmark, so substantive analyses should replace them with related functional measurements from the same samples and locus.

Worked example

The analysis unit is one locus (ENSG00000130538) measured in two contexts for the same individuals.

RoleExample pathRequired structure
Genotypetests/fixtures/qtl_mini/protocol_example.genotype.chr22.bedPLINK bed/bim/fam trio with samples matching the phenotypes
Phenotype manifestinput/finemapping/protocol_example.protocol_example.pheno_manifest_context.tsvOne row per context, with coordinates, trait identifier and phenotype BED path
Covariatestests/fixtures/covariate_hidden_factor/covariates.tsvCovariates by sample; this example is transposed with --transpose-covariates
Association windowstests/fixtures/qtl_mini/association_windows.bedChromosome, start, end and region identifier

All four inputs must use compatible genome coordinates and sample identifiers. Multiple phenotype rows must represent measurements that are scientifically meaningful to analyze jointly.

Run fSuSiE

qtl_dataset_construct+fsusie builds the regional dataset and then performs the joint fSuSiE fit.

Timing: TBD

The command is expected to create:

  • output_fsusie/qtl_dataset/protocol_example.qtl_dataset.rds — harmonized genotype, phenotype and covariate data.

  • output_fsusie/fsusie/protocol_example.fsusie_region_manifest.tsv — the locus selected for the fit.

  • output_fsusie/fsusie/protocol_example.ENSG00000130538.fsusie.rds — the QtlFineMappingResult containing the fSuSiE fit and variant-level summaries.

Key optional settings are:

OptionPurpose
--priorPrior family used by fSuSiE; default mixture_normal
--max-scaleUpper scale bound for the effect-size prior
--min-purityMinimum credible-set purity retained in post-processing
--post-processingfSuSiE post-processing rule
--susie-top-pcNumber of phenotype PCs to fine-map separately; default 0

Command reference

Show all current workflows and options before adapting the example to a new dataset.

Results and interpretation

fSuSiE result

The result is a QtlFineMappingResult. Its table-level metadata identifies the region and fitted method; each entry stores the fit plus a topLoci table with one row per variant.

LevelContents
Result tableContext, trait or region identifiers, method and one entry per fit
entryMethod-specific fSuSiE fit and attached summaries
topLociVariant identifiers, PIPs, posterior effects and credible-set labels
Credible-set columnsMembership at the requested coverage and the corresponding purity

Interpret variants by PIP first, then use credible-set membership and purity to judge localization. A high-PIP variant in a compact, high-purity credible set is more strongly localized than a similarly ranked variant in a large or low-purity set. Lack of a retained credible set in a toy dataset is not evidence that the locus has no functional effect; small sample size, weak signal, phenotype definition and LD can all prevent localization.

Limitations and common pitfalls

  • fSuSiE requires at least two joinable traits or contexts. Use ordinary SuSiE for a single trait.

  • The traits should describe related measurements in the same locus and samples; combining unrelated outcomes only because they share coordinates is not a valid joint analysis.

  • Sample identifiers must agree across genotype, phenotype and covariate files.

  • Chromosome naming and genome build must match across all inputs.

  • The example data demonstrate file structure and command composition, not realistic epigenomic power.

  • If the regional fit fails before producing the final RDS, inspect the per-region .stderr file rather than interpreting the intermediate dataset as a completed analysis.

Next steps

For a retained credible set, annotate the highest-PIP variants and compare their effects across the functional measurements represented in the joint fit. The result can then be passed to the appropriate post-processing or biological-validation workflow; do not treat fine-mapping probabilities alone as functional validation.