signaturescience / metscale

MetScale: snakemake workflows to scale metagenome analyses
BSD 3-Clause "New" or "Revised" License
18 stars 9 forks source link

Issues with activating sourmash_2.1.0--py27he1b5a44_0.sif container #19

Closed redekarnr closed 3 years ago

redekarnr commented 3 years ago

I am testing MetScale fo very first time with test datasets. I did all installations and offline setup as per instructions. Read filtering and assembly workflows worked fine, but having issues with executing 'comparison' workflow.

Error message: Activating singularity image ../container_images/sourmash_2.1.0--py27he1b5a44_0.sif FATAL: could not open image /metscale/container_images/sourmash_2.1.0--py27he1b5a44_0.sif: SIF image /metscale/container_images/sourmash_2.1.0--py27he1b5a44_0.sif is corrupted: wrong partition size

Downloaded sourmash_2.1.0--py27he1b5a44_0.sif container size is 181Mb (from offline setup). The expected size is 271 Mb. Source code for MetScale is latest version 1.4.

How can I download sourmash container with expected file size? Any other insights to fix the issue are highly appreciated. Thanks.

kternus commented 3 years ago

Thanks for testing the workflows, @redekarnr!

It sounds like the sourmash container may not have downloaded properly the first time. Could you try deleting sourmash_2.1.0--py27he1b5a44_0.sif and downloading it again?

You can download it again by running this command from the metscale/workflows directory:

python download_offline_files.py --workflow taxonomic_classification

The above command will download the other taxonomic classification databases as well. If you already have the taxonomic databases and don't want to download those again because they look correct, you can run this command to only download the sourmash container:

python download_offline_files.py --workflow comparison

redekarnr commented 3 years ago

Thank you. The issue has been resolved.