Created
February 5, 2019 13:25
-
-
Save RichardJActon/703ae70438e865a37998cd608bd12cd3 to your computer and use it in GitHub Desktop.
add lin and karnani cord tissue reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NB setwd to meffil/data-raw | |
library(devtools) | |
library(meffil) | |
library(minfi) | |
library(FlowSorted.CordTissueAndBlood.EPIC) | |
assign("reference.globals", new.env(), envir=environment()) | |
load.env <- function(filename, env) { | |
if (file.exists(filename)) | |
load(filename, env) | |
} | |
load.env(system.file("references.rda", package="meffil"), reference.globals) | |
source("lin-karnani-reference.r") | |
reference.globals$`lin and karnani cord tissue` <- create.lin.karnani.reference() | |
save.env <- function(filename, env) { | |
save(list=ls(env), | |
file=filename, | |
envir=env) | |
file.copy(filename, inst("meffil"), overwrite=T) | |
} | |
ls(reference.globals) | |
save.env(file.path("../inst", "references.rda"), reference.globals) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment