Skip to content

Instantly share code, notes, and snippets.

@mlist
Created February 11, 2016 10:17
Show Gist options
  • Save mlist/88b371943b9fd40f7aa3 to your computer and use it in GitHub Desktop.
Save mlist/88b371943b9fd40f7aa3 to your computer and use it in GitHub Desktop.
Convert RnBeadRawSet to RnBeadSet class. Can be used with as(some.rnb.raw.set, "RnBeadSet").
setAs("RnBeadSet", "RnBeadRawSet", function(from){
new(Class = RnBeadSet,
pval.sites = from@pval.sites,
pval.regions = from@pval.regions,
qc = from@qc,
pheno = from@pheno,
sites = from@sites,
meth.sites = from@meth.sites,
covg.sites = from@covg.sites,
regions = from@regions,
meth.regions = from@meth.regions,
covg.regions = from@covg.regions,
status = from@status,
assembly = from@assembly,
target = from@target,
inferred.covariates = from@inferred.covariates,
version = from@version)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment