Skip to contents

Return one row of a QtlFineMappingResult or GwasFineMappingResult, selected by its identity, as a single-row collection of the same class.

Usage

fineMappingResult(
  x,
  studyName = NULL,
  context = NULL,
  trait = NULL,
  method = NULL
)

# S4 method for class 'GwasFineMappingResult'
fineMappingResult(
  x,
  studyName = NULL,
  context = NULL,
  trait = NULL,
  method = NULL
)

# S4 method for class 'QtlFineMappingResult'
fineMappingResult(
  x,
  studyName = NULL,
  context = NULL,
  trait = NULL,
  method = NULL
)

Arguments

x

A QtlFineMappingResult or GwasFineMappingResult.

studyName, context, trait, method

Single character identifiers. All required when the collection has more than one row; optional when the collection has a single row.

Value

A single-row collection of the same class as x.

Examples

data(qtlFineMappingExample)
fineMappingResult(qtlFineMappingExample, studyName = "study_1",
  context = "context_1", trait = "gene_1", method = "susie")
#> QtlFineMappingResult: 1 entries
#>   1 studies, 1 contexts, 1 traits, 1 methods
#>   LD reference: NULL (individual-level fit)