rearrangeInputsForAssoGenet | R Documentation |
Subset and sort inputs necessary to perform an analysis of plant association genetics, that is, the subset of cultivars with genotypes and phenotypes, and the subset of markers having genotypes and coordinates.
rearrangeInputsForAssoGenet(
ids,
y,
X,
snp.coords,
alleles,
rename.chr.prefix = NULL,
verbose = 1
)
ids |
data.frame of identifiers, with (at least) column names |
y |
vector, matrix or data.frame which row names should be present in |
X |
matrix of bi-allelic SNP genotypes encoded in allele doses in [0,2], with genotypes in rows and SNPs in columns; the "second" allele is arbitrary, it corresponds to the second column of |
snp.coords |
data.frame with 2 columns |
alleles |
data.frame with SNPs in rows (names as row names) and alleles in columns (exactly 2 columns are required); the second column should correspond to the allele which number of copies is counted at each SNP in |
rename.chr.prefix |
if not NULL, the value of this parameter will be passed to |
verbose |
verbosity level (0/1) |
list with inputs after subsetting and sorting
Timothee Flutre
chromNames2integers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.