Skip to contents

Creates a DataSet object using gwasglue2 SummarySet objects, and harmonise data against data

Usage

create_dataset(
  summary_sets = list(),
  harmonise = TRUE,
  tolerance = 0.08,
  action = 1
)

Arguments

summary_sets

A list of gwasglue2 SummarySet objects

harmonise

logical (default TRUE). It harmonises the summary sets in the DataSet against each other.

tolerance

Inherited from harmoniseData() (default 0.08)

action

Inherited from harmoniseData() (Default 1)

  • action = 1: Assume all alleles are coded on the forward strand, i.e. do not attempt to flip alleles

  • action = 2: Try to infer positive strand alleles, using allele frequencies for palindromes (default, conservative);

  • action = 3: Correct strand for non-palindromic SNPs, and drop all palindromic SNPs from the analysis (more conservative).

Value

A harmonised gwasglue2 DataSet object