Perform file existence check in load script
This commit is contained in:
parent
ad91ae0ef1
commit
5cf922d69f
1 changed files with 17 additions and 13 deletions
|
|
@ -1,3 +1,4 @@
|
|||
if (!file.exists("data/hmc-phyloseq-europe.Rds")) {
|
||||
library(MicroBioMap)
|
||||
library(phyloseq)
|
||||
library(mia)
|
||||
|
|
@ -12,3 +13,6 @@ cpd_phyloseq_europe <- subset_samples(cpd_phyloseq, grepl("europe", geo_loc_name
|
|||
rm(cpd_phyloseq)
|
||||
gc()
|
||||
saveRDS(cpd_phyloseq_europe, "data/hmc-phyloseq-europe.Rds")
|
||||
} else {
|
||||
cpd_phyloseq_europe <- readRDS("data/hmc-phyloseq-europe.Rds")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue