QTLscan: General QTL function that allows for co-factors, completely...

Description Usage Arguments Value Examples

View source: R/polyqtlR_functions.R

Description

Function to run QTL analysis using IBD probabilties given (possibly replicated) phenotypes, assuming randomised experimental design

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
QTLscan(
  IBD_list,
  Phenotype.df,
  genotype.ID,
  trait.ID,
  block = NULL,
  folder = NULL,
  filename.short,
  cofactor_df = NULL,
  prop_Pheno_rep = 0.5,
  perm_test = FALSE,
  N_perm.max = 1000,
  alpha = 0.05,
  gamma = 0.05,
  ncores = 1,
  log = NULL,
  verbose = TRUE,
  ...
)

Arguments

IBD_list

List of IBD probabilities

Phenotype.df

A data.frame containing phenotypic values

genotype.ID

The colname of Phenotype.df that contains the offspring identifiers (F1 names)

trait.ID

The colname of Phenotype.df that contains the response variable to use in the model

block

The blocking factor to be used, if any (must be colname of Phenotype.df). By default NULL, in which case no blocking structure (for unreplicated experiments)

folder

If markers are to be used as co-factors, the path to the folder in which the imported IBD probabilities is contained can be provided here. By default this is NULL, if files are in working directory.

filename.short

If TetraOrigin was used and co-factors are being included, the shortened stem of the filename of the .csv files containing the output of TetraOrigin, i.e. without the tail "_LinkageGroupX_Summary.csv" which is added by default to all output of TetraOrigin.

cofactor_df

A 2-column data frame of co-factor(s); column 1 gives linkage group identifiers, column 2 specifies the cM position of the co-factors. By default NULL, in which case no co-factors are included in the analysis.

prop_Pheno_rep

The minimum proportion of phenotypes represented across blocks. If less than this, the individual is removed from the analysis. If there is incomplete data, the missing phenotypes are imputed using the mean values across the recorded observations.

perm_test

Logical, by default FALSE. If TRUE, a permutation test will be performed to determine a genome-wide significance threshold.

N_perm.max

The maximum number of permutations to run if perm_test is TRUE; by default this is 1000.

alpha

The P-value to be used in the selection of a threshold if perm_test is TRUE, by default 0.05 (i.e. the 0.95 quantile).

gamma

The width of the confidence intervals used around the permutation test threshold using the approach of Nettleton & Doerge (2000), by default 0.05.

ncores

Number of cores to use if parallel computing is required. Works both for Windows and UNIX (using doParallel). Use parallel::detectCores() to find out how many cores you have available.

log

Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.

verbose

Logical, by default TRUE. Should messages be printed during running?

...

Arguments passed to plot

Value

A nested list; each list element (per linkage group) contains the following items:

Examples

1
2
3
4
5
6
data("IBD_4x","Phenotypes_4x")
qtl_LODs.4x <- QTLscan(IBD_list = IBD_4x,
                       Phenotype.df = Phenotypes_4x,
                       genotype.ID = "geno",
                       trait.ID = "pheno",
                       block = "year")

polyqtlR documentation built on Feb. 2, 2022, 5:09 p.m.

Related to QTLscan in polyqtlR...