HelenaLC / muscat-comparison

10 stars 9 forks source link

DS analysis missing in updated files? #3

Open kpd285 opened 3 years ago

kpd285 commented 3 years ago

Hello! I have been using the LPS analysis code and found a missing piece of code necessary to run section 3- differential. At the start of the section, res is created by loading DS files. These files were never created in the previous section. After chatting with someone who used this analysis last year, he found there were additional lines of code that created DS files in section 2 that are no longer in the Github versions. Now I am having trouble integrating that code with the newer versions because some other things have been changed. How can I fix this? Thanks!

This is the code that does not work because the files do not exist, and no following analysis can be done without res. res <- list.files(".", "DS..rds", full.names = TRUE) names(mids) <- mids <- gsub("DSresults(.).rds", "\1", basename(res)) res <- setNames(lapply(res, readRDS), mids)