jtamames / SqueezeMeta

A complete pipeline for metagenomic analysis
GNU General Public License v3.0
346 stars 81 forks source link

"zip file is corrupt" when loading a zipped project into SQMtools #755

Open fpusan opened 7 months ago

fpusan commented 7 months ago

This happens for certain projects when running SQMtools on certain R versions. I suspect it's related to R's internal unzip engine not being able to deal with files greater than 2Gb. A workaround is to 1) Move the project.zip file into an empty folder also named project. 2) Uncompress project.zip there (so that the SqueezeMeta_conf.pl file, the results directory, etc... are directly inside the project folder. 3) Load the project normally with SQM=loadSQM("/path/to/project") I will try to have this fixed for the next release.

fpusan commented 7 months ago

71d5597 switches from using utils::unzip to using zip::unzip for reading zip files during loadSQM. This fixes the problem for some projects, but eventually I run into https://github.com/r-lib/zip/issues/100 . The error happened with the example file mentioned by OP as well as with an example zipped SQM project.