Closed robinsleith closed 3 years ago
Hmmm - never seen that before. Let me investigate a bit.
Also FWIW dada2_18S.yaml in /mnt/storage/data/edna/packages/edna-dada2 does not match github, meaning changes were made but not committed? Still figuring all this part out.
There is no reference to a ".save" in the dadutils repos.
btupper@cfe1 dadautils [main*]$ git grep -Fn ".save"
It returns nothing, if found it would spit out one line per match. Same is true in edna-dada2
btupper@cfe1 edna-dada2 [master*]$ git grep -Fn ".save"
Which makes me wonder if it is either (a) a user has selected to save session or (b) it is output saved automatically by R when it aborts/crashes. Typically a true session save ends with .Rdata so I'm inclined to think it is (b). But that would mean that the user's working directory was /mnt/storage/data/edna/packages/edna-dada2 which would be weird.
I suggest that I move them to my home directory and then you continue with your work. If they are important we'll still have them. If not we can toss them later. Sound OK?
That works!
More...
> load("/mnt/storage/data/edna/packages/edna-dada2/dada2_18S.R.save.1")
Error in load("/mnt/storage/data/edna/packages/edna-dada2/dada2_18S.R.save.1") :
bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘dada2_18S.R.save.1’ has magic number 'libra'
Use of save versions prior to 2 is deprecated
> z = readRDS("/mnt/storage/data/edna/packages/edna-dada2/dada2_18S.R.save.1")
Error in readRDS("/mnt/storage/data/edna/packages/edna-dada2/dada2_18S.R.save.1") :
unknown input format
Ahhhhhaaaaa! It's a text dump of a script. Likely one of our editors did that for some weird reason.
> z = readLines("/mnt/storage/data/edna/packages/edna-dada2/dada2_18S.R.save.1")
> cat(head(z, n = 10), sep = "\n")
library(dplyr)
library(readr)
library(configr)
library(futile.logger)
library(patchwork)
library(ShortRead)
library(Biostrings)
library(dada2)
> cat(tail(z, n = 10), sep = "\n")
data_path = "data_path",
reference_path = "reference_path"),
rootname = "global")
if (!interactive()){
ok <- main(CFG)
quit(save = "no", status = ok)
}
Anyway - we can delete those.
Was just going to commit the edits to the yaml and R script incorporating truncLen auto etc and encountered the following in the edna-dada2 directory: