make_smlSet {GGBase} | R Documentation |
construct an smlSet instance from existing resources, either using ExpressionSet and SnpMatrix instances, or a suitably structured package
make_smlSet(es, sml, organism = "Homo sapiens", harmonizeSamples = FALSE) getSS(packname, chrs, renameChrs, probesToKeep=NULL, exFilter=function(x)x, wrapperEndo=NULL, checkValid=TRUE)
es |
instance of |
sml |
named list of |
organism |
conventional token for species |
harmonizeSamples |
logical indicating whether steps should be taken to be sure that the components represent identical sets of samples. can be time consuming so defaults to FALSE, in which case the user must be sure that the genotype and expression components are compatible in terms of sample content |
packname |
string naming the installed package from which expression and genotype data will be acquired |
chrs |
character vector naming the prefixes of genotype files to be used in the resulting smlSet instance; see notes below |
renameChrs |
character vector of same length as |
probesToKeep |
character vector identifying probes to be retained
in the constructed smlSet – to be deprecated in favor of |
exFilter |
function that should accept and return |
wrapperEndo |
function that accepts and returns an smlSet instance,
allowing any sort of transformation of contents acquired with |
checkValid |
logical, if TRUE, function will fail if created smlSet instance does not pass validObject() |
Packages that work with getSS
can be created out of existing
smlSet
instances using externalize
.
Instance of smlSet-class
.
VJ Carey <stvjc@channing.harvard.edu>
if ("GGtools" %in% installed.packages()[,1]) { s20 = getSS("GGtools", "20", renameChrs="chr20") s20 make_smlSet( as(s20, "ExpressionSet"), smList(s20) ) }