Constructs a data frame from a metadata package containing annotations for the SNPs from the corresponding Affymetrix SNP Chip.
buildSNPannotation(pkg, rs = TRUE, allele = TRUE, gene = TRUE,
chromosome = FALSE, position = FALSE, strand = FALSE, cytoband = FALSE,
max.genes = 0, lib.loc = NULL, others = NULL, subset = NULL,
pattern = NULL, na.rm = TRUE)
the name of the metadata package from which the data frame containing the annotations of the SNPs should be generated.
should the RefSNP-ID of the SNPs be added to the data frame?
should the two alleles of each SNP be added to the data frame?
should the genes associated with the SNPs be added to the data frame?
should the chromosome to which the respective SNP belongs be added to the data frame?
should the physical positions of the SNPs be added to the data frame?
should the strands be added to the data frame?
logical indicating whether the cytoband of each SNP is added to the data frame.
integer specifying the maximum number of genes associated with the respective
SNP that should be stored in the data frame. By default, all entries are considered. The corresponding column
of the data frame can also be shortened afterwards using shortenGeneDescription
.
Shortened entries are marked by …
at the end of the entries.
the directory in which the metadata package is stored. Needs only to be specified if it is not stored in the usual directory of the packages.
character string or vector naming other entries of the object featureSet
saved in pkg
that should be added to the data frame.
character string consisting of the probe set IDs of the SNPs for which the data
frame should be generated. The data frame will contain all SNPs if subset = NULL
character string specifying the pattern of the probe set IDs of the SNPs for which
the data frame should be generated. For example, pattern = "SNP%"
will lead to a
data frame containing all SNPs whose probe set ID start with "SNP".
should the rows of the data frame corresponding to SNPs specified by subset
for which no information is available in the metadata package be removed?
A data frame composed of annotations for the SNPs for which information is available in the specified metadata package.