Skip to contents

Add a SummarySet to a DataSet

Usage

add_summaryset(
  summary_sets,
  dataset,
  harmonise = TRUE,
  tolerance = 0.08,
  action = 1
)

Arguments

summary_sets

one or more gwasglue2 Summarysets objects to add to an existent DataSet object. If more than one it should be a list

dataset

The gwasglue2 DataSet object to add to

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 with input SummarySets added