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 = [email protected],
pval.regions = [email protected],
qc = from@qc,
pheno = from@pheno,
sites = from@sites,
meth.sites = [email protected],
covg.sites = [email protected],
regions = from@regions,
meth.regions = [email protected],
covg.regions = [email protected],
status = from@status,
assembly = from@assembly,
target = from@target,
inferred.covariates = [email protected],
version = from@version)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment