map_interaction_qtl: Response (e)QTL mapping

Description Usage Arguments

View source: R/map_interaction_qtl.R

Description

Response (e)QTL mapping

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
map_interaction_qtl(
  input,
  genotype,
  geneloc,
  snploc,
  anno,
  sample_kernel = NULL,
  normalization_approach = "qq",
  permutation_approach = "boot",
  cisdist = 1e+05,
  checkpoint_dir = NULL,
  debug = F,
  genome_build = "GRCh38",
  maf_threshold = 0
)

Arguments

input

[genes x samples] matrix of log_2 expression values, e.g. cpm or fpkm

genotype

[SNPs x individuals] matrix of genotypes (can have some NAs) OR a Bioconductor 'TabixFile“ object

geneloc

[genes x 4] data.frame with columns (geneid, chr, left, right). The intersect of geneloc$geneid and rownames(input) will be tested.

snploc

[SNPs x 3] data.frame with columns (snpid, chr, pos) where snpid's map to rows of 'genotype'

anno

[samples x 2] data.frame with columns (individual, condition) where individual must correspond to column names of 'genotype'

sample_kernel

[samples x samples] covariance matrix learned in suez step 1. If you don't want to control for latent confounders leave this as NULL to use the matrix representing which samples are from the same individual.

normalization_approach

One of (qq,log,linear) determining how to normalize within each gene. We recommend qq (quantile normalization to normal) to ensure the assumptions of the test hold.

permutation_approach

One of ("none","permute","boot"). We recommend boot (parametric bootstrap) since the permutation test is not really valid for interaction effect testing.

cisdist

How far from the gene boundaries to look for SNPs to test

checkpoint_dir

An optional directory to store per gene results. If mapping crashes these results will be reused to save time.

debug

Controls whether you see stan::optimizing messages and whether errors are suppressed.

genome_build

Only required if 'genotype' is 'TabixFile'. Default is "GRCh38"

maf_threshold

Minimum MAF to analyze variants.


davidaknowles/suez documentation built on March 20, 2021, 2:19 a.m.