View source: R/makeHaplotypes.R
AssignQTL | R Documentation |
AssignQTL
assigns QTL to the qtl
of objects of class
haplotype
. ListQTL
returns a list of qtl which for the
object of class haploList
.
AssignQTL(hList,nqtl = NA,frqtl = NA,sigma2qtl = NULL,shQTL = 1,scQTL = 1, nTraits = 1,overlap = 0,MAF = 0.1,rmCausSNP = TRUE) ListQTL(hList,nqtl = NA,frqtl = NA,sigma2qtl = NULL,shQTL = 1,scQTL = 1, nTraits = 1,overlap = 0,MAF = 0.1)
hList |
List of haplotype objects. |
nqtl |
If specified, the number of qtl which are placed on the genome. |
frqtl |
If specified, the fraction of heterozygous SNP loci which become QTL. |
sigma2qtl |
If specified, the qtl variance. If
|
shQTL |
If alpha is not specified, shQTL specifies the shape parameter of the gamma distribution from which allele substitution effects are sampled. |
scQTL |
If alpha is not specified, scQTL specifies the scale parameter of the gamma distribution from which allele substitution effects are sampled. |
nTraits |
The number of traits. |
overlap |
Numeric between 0 and 1. Specifies the percantage of pleiotropic QTL. |
MAF |
Minor Allele Frequency. Loci with maf below MAF are not considered to become QTL. Do not count for frqtl. |
rmCausSNP |
Remove causative SNPs. |
A list of length nHaplotpes
.
SampleHaplotype
hList <- SampleHaplotypes(nHaplotypes = 20,nLoc = 100,genDist = 1,nDec = 3) ## create objects hListd <- SampleHaplotypes(orig = hList,genDist = 1,nDec = 3) hListQTL <- AssignQTL(hList,frqtl = 0.1,MAF = 0.0) hListd <- SampleHaplotypes(orig = hListQTL,genDist = 1,nDec = 3,QTL = TRUE) qtlList <- ListQTL(hList,frqtl = 0.1,MAF = 0.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.