Skip to contents

Extract the data-type tag.

Usage

getDataType(x, ...)

# S4 method for class 'TwasWeights'
getDataType(x, study = NULL, context = NULL, trait = NULL, method = NULL)

# S4 method for class 'TwasWeightsRow'
getDataType(x, ...)

Arguments

x

A TwasWeightsRow or TwasWeights.

...

Class-specific selection arguments.

study

Character (length 1) or NULL. Restrict the selection to this study; NULL matches all studies.

context

Character (length 1) or NULL. Restrict the selection to this context; NULL matches all contexts.

trait

Character (length 1) or NULL. Restrict the selection to this trait; NULL matches all traits.

method

Character (length 1) or NULL. Restrict the selection to this fine-mapping / weight method; NULL matches all methods.

Value

A character vector or NULL.

Examples

twe <- twasWeightsRow(variantIds = sprintf("chr1:%d:A:G", 100L * (1:4)),
  weights = rep(0.1, 4), cvResult = list(rsq = 0.5), standardized = FALSE)
getDataType(twe)
#> NULL