View source: R/scanone.assoc.R
scanone.assoc | R Documentation |
Use the imputed Sanger SNPs and the DO haplotype probabilities. Between each pair of markers, get the unique founder strain distribution patters (SDPs) and use the DO haplotype probabilities to compute the DO SNPs.
scanone.assoc(pheno, pheno.col, probs, K, addcovar, markers, cross = c("DO", "CC", "HS"), sdp.file, ncl)
pheno |
Data.frame containing the phenotype values in columns and samples in rows. rownames(pheno) must contain the sample IDs. |
pheno.col |
numeric or character vector: Either a vector of number that indicate columns to use or a set of column names in pheno. |
probs |
Numeric three dimensional array containing the founder haplotype contributions. Num.samples by num.founders by num.markers. |
K |
List containing numeric matrices of leave-one-chromosome-out kinship values for all samples. Num.samples by num.samples. |
addcovar |
Numeric matrix of additive covariates. |
cross |
Character string indicating the type of cross. One of "DO", "CC", or "HS". |
markers |
Data.frame containing 4 columns with marker location information. SNP ID, chr, Mb, cM in columns 1 through 4, respectively. |
sdp.file |
Character string containing the full path to the condensed SDP file. This file is created using |
ncl |
Integer containing the number of cores to use for parallel execution. |
This function imputes the Sanger SNPs onto DO genomes and performs association
mapping. The speed relies upon a support file that is created using
condense.sanger.snps
. The support file is a tab-delimited,
Tabix indexed file that contains the chromosome, bp position and SDP for
each polymorphic Sanger SNP. It treats tri-morphic SNPs and heterozygotes
as alternate alleles.
GRanges object containing the p-value for each SNP.
Daniel Gatti
scanone
## Not run: scanone.assoc(pheno, pheno.col, probs, K, addcovar, markers, cross = c("DO", "CC", "HS"), sdp.file, ncl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.