create_assoc_qt_data: Create the data needed for the assoc_qt function

View source: R/create_assoc_qt_data.R

create_assoc_qt_dataR Documentation

Create the data needed for the assoc_qt function

Description

Create the data needed (in this case, 'regular' data and phenotype data) to detect associations with quantitative traits, as used by assoc_qt.

Usage

create_assoc_qt_data(data, phenotype_data)

Arguments

data

the data source, which can be:

  • PLINK text data, as created by create_plink_text_data.

  • PLINK binary data, as created by create_plink_bin_data.

  • PLINK2 binary data, as created by create_plink2_bin_data.

  • PLINK text filenames, as created by create_plink_text_filenames.

  • PLINK binary filenames, as created by create_plink_bin_filenames.

  • PLINK2 binary filenames, as created by create_plink2_bin_filenames.

  • data to be used by assoc, as created by create_assoc_data

  • data to be used by assoc_qt, as created by create_assoc_qt_data

phenotype_data

phenotype data in the form of either a filename to a phenotype file (phenotype_data_filename) or a list with a phenotype table (phenotype_data_table)

Value

an assoc_qt_data structure

Author(s)

Richèl J.C. Bilderbeek

Examples

create_assoc_qt_data(
  data = create_test_plink_text_data(),
  phenotype_data = create_test_phenotype_data_table()
)

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.