alleles | R Documentation |
get/set variables in an annotSnpStats object
alleles(x)
alleles(x) <- value
phenotype(x)
phenotype(x) <- value
snps(x)
snps(x) <- value
samples(x)
samples(x) <- value
x |
object of class annotSnpStats |
value |
replacement value |
alleles()
gets the two element character vector which
names the columns in the snps
slot which records the
ordering of base alleles for that SNP.
For alleles<-
, value is a character vector of
length 2, giving the columns names of the data.frame in the
snps
slot corresponding to alelles 1 and 2.
phenotype
gets/sets the column name of the data.frame in the
samples
slots which encodes the phenotype.
snps()
extracts the snps data.frame
from an
object of class aSnpMatrix
samples()
extracts the samples data.frame
from an object of class aSnpMatrix
samples()
extracts the samples data.frame
from an object of class aSnpMatrix
the column names requested
Chris Wallace
X <- example.data(10,5)
phenotype(X)
phenotype(X) <- "cc"
alleles(X)
snps(X)
samples(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.