Learn R Programming

qtl (version 1.39-5)

mqmsetcofactors: Set cofactors at fixed intervals, to be used with MQM

Description

Set cofactors, at fixed marker intervals. Together with mqmscan cofactors are selected through backward elimination.

Usage

mqmsetcofactors(cross, each = NULL, cofactors=NULL, sexfactors=NULL, verbose=FALSE)

Arguments

cross
An object of class cross. See read.cross for details.
each
Every 'each' marker will be used as a cofactor, when each is used the cofactors and sexfactors parameter is ignored
cofactors
List of cofactors to be analysed in the QTL model. To set cofactors use mqmautocofactors or mqmsetcofactors; when each is set, this parameter is ignored
sexfactors
list of markers which should be treated as dominant cofactors (sexfactors), when each is set, this parameter is ignored
verbose
If TRUE, print tracing information.

Value

An list of cofactors to be passed into mqmscan.

See Also

Examples

Run this code
	data(hyper)							        # Hyper dataset
	
	hyperfilled <- fill.geno(hyper)
  # Automatic cofactors every third marker
	cofactors <- mqmsetcofactors(hyperfilled,3)
	result <- mqmscan(hyperfilled,cofactors)	# Backward model selection
	mqmgetmodel(result)
  #Manual cofactors at markers 3,6,9,12,40 and 60
  cofactors <- mqmsetcofactors(hyperfilled,cofactors=c(3,6,9,12,40,60))	
	result <- mqmscan(hyperfilled,cofactors)	# Backward model selection
	mqmgetmodel(result)

Run the code above in your browser using DataLab