BodenmillerGroup / ImcSegmentationPipeline

A pixel classification based multiplexed image segmentation pipeline
https://bodenmillergroup.github.io/ImcSegmentationPipeline/
MIT License
83 stars 35 forks source link

Error converting mcd containing folders into imc zip folders #42

Closed aagamboa closed 3 years ago

aagamboa commented 4 years ago

I am trying to run the pipeline with an .mcd file that is 19.7GB in size on Windows 10, version 1803. The processor is intel(R) Xenon(R) Silver 4112 CPU @2.60GHz 2.59. The operating type is a 64-bit operating system x64-based processor. the installed RAM is 48.0GB with 46.6GB usable. There is 1.17TB of free storage on the data drive.

when trying to execute the "convert zipped IMC acquisitions to input format" step I get the following error:

ERROR:root:Error in D:/cHL_PreProcessing/input/TMA_A1_1.zip Traceback (most recent call last): File "<timed exec>", line 11, in <module> File "C:\Users\GamboaA1\Documents\imctools\lib\site-packages\imctools\scripts\convertfolder2imcfolder.py", line 31, in convert_folder2imcfolder zipf.extractall(tmpdir.name) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1501, in extractall self._extract_member(zipinfo, path, pwd) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1556, in _extract_member shutil.copyfileobj(source, target) File "C:\Users\GamboaA1\Documents\imctools\lib\shutil.py", line 82, in copyfileobj fdst.write(buf) OSError: [Errno 28] No space left on device I have no issues running the provided example data set and also was able to run a smaller recently acquired mcd file (124.7 MB).

1TB of free space seems like it should be enough to handle the file, so I would like to know if you have any idea as to the memory RAM requirements for very large MCD files.

votti commented 4 years ago

I am currently on holiday till July 22th, so I cannot test anything.

I think the issue is that the Zip is unzipped to a temporary directory, which likely is configured to be on the C and not on the data drive.

Thud I think setting the system temporary directory location to the data drive might work.

This can be done by setting the "TEMPDIR" environment variable zo a path on the data drive (eg “D:\") before calling the command. See here an example how to set environment variables from python: https://able.bio/rhett/how-to-set-and-get-environment-variables-in-python--274rgt5

Does this work?

On Thu, Jul 2, 2020, 23:18 aagamboa notifications@github.com wrote:

I am trying to run the pipeline with an .mcd file that is 19.7GB in size on Windows 10, version 1803. The processor is intel(R) Xenon(R) Silver 4112 CPU @2.60GHz 2.59. The operating type is a 64-bit operating system x64-based processor. the installed RAM is 48.0GB with 46.6GB usable. There is 1.17TB of free storage on the data drive.

when trying to execute the "convert zipped IMC acquisitions to input format" step I get the following error:

ERROR:root:Error in D:/cHL_PreProcessing/input/TMA_A1_1.zip Traceback (most recent call last): File "", line 11, in File "C:\Users\GamboaA1\Documents\imctools\lib\site-packages\imctools\scripts\convertfolder2imcfolder.py", line 31, in convert_folder2imcfolder zipf.extractall(tmpdir.name) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1501, in extractall self._extract_member(zipinfo, path, pwd) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1556, in _extract_member shutil.copyfileobj(source, target) File "C:\Users\GamboaA1\Documents\imctools\lib\shutil.py", line 82, in copyfileobj fdst.write(buf) OSError: [Errno 28] No space left on device I have no issues running the provided example data set and also was able to run a smaller recently acquired mcd file (124.7 MB).

1TB of free space seems like it should be enough to handle the file, so I would like to know if you have any idea as to the memory RAM requirements for very large MCD files.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BodenmillerGroup/ImcSegmentationPipeline/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4R2KHLD6KLNMY5KOC37A3RZUIWDANCNFSM4OPKCSQQ .

aagamboa commented 4 years ago

Yes, that fixed the problem! Thank you so much and enjoy your holiday!

From: Vito Zanotelli notifications@github.com Reply-To: BodenmillerGroup/ImcSegmentationPipeline reply@reply.github.com Date: Thursday, July 2, 2020 at 4:39 PM To: BodenmillerGroup/ImcSegmentationPipeline ImcSegmentationPipeline@noreply.github.com Cc: "Gamboa, Alicia" Alicia.Gamboa@cshs.org, Author author@noreply.github.com Subject: [External] Re: [BodenmillerGroup/ImcSegmentationPipeline] Error converting mcd containing folders into imc zip folders (#42)

I am currently on holiday till July 22th, so I cannot test anything.

I think the issue is that the Zip is unzipped to a temporary directory, which likely is configured to be on the C and not on the data drive.

Thud I think setting the system temporary directory location to the data drive might work.

This can be done by setting the "TEMPDIR" environment variable zo a path on the data drive (eg “D:\") before calling the command. See here an example how to set environment variables from python: https://able.bio/rhett/how-to-set-and-get-environment-variables-in-python--274rgt5https://urldefense.com/v3/__https:/able.bio/rhett/how-to-set-and-get-environment-variables-in-python--274rgt5__;!!KOmnBZxC8_2BBQ!nHrsFLO3q1zPl3TDVm4MgWJtWosX2s5AjH_3BVbMHRGRUSPFQH1Rhtzjy5mwWQPx7A$

Does this work?

On Thu, Jul 2, 2020, 23:18 aagamboa notifications@github.com wrote:

I am trying to run the pipeline with an .mcd file that is 19.7GB in size on Windows 10, version 1803. The processor is intel(R) Xenon(R) Silver 4112 CPU @2.60GHz 2.59. The operating type is a 64-bit operating system x64-based processor. the installed RAM is 48.0GB with 46.6GB usable. There is 1.17TB of free storage on the data drive.

when trying to execute the "convert zipped IMC acquisitions to input format" step I get the following error:

ERROR:root:Error in D:/cHL_PreProcessing/input/TMA_A1_1.zip Traceback (most recent call last): File "", line 11, in File "C:\Users\GamboaA1\Documents\imctools\lib\site-packages\imctools\scripts\convertfolder2imcfolder.py", line 31, in convert_folder2imcfolder zipf.extractall(tmpdir.name) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1501, in extractall self._extract_member(zipinfo, path, pwd) File "C:\Users\GamboaA1\Documents\imctools\lib\zipfile.py", line 1556, in _extract_member shutil.copyfileobj(source, target) File "C:\Users\GamboaA1\Documents\imctools\lib\shutil.py", line 82, in copyfileobj fdst.write(buf) OSError: [Errno 28] No space left on device I have no issues running the provided example data set and also was able to run a smaller recently acquired mcd file (124.7 MB).

1TB of free space seems like it should be enough to handle the file, so I would like to know if you have any idea as to the memory RAM requirements for very large MCD files.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BodenmillerGroup/ImcSegmentationPipeline/issues/42https://urldefense.com/v3/__https:/github.com/BodenmillerGroup/ImcSegmentationPipeline/issues/42*3E__;JQ!!KOmnBZxC8_2BBQ!nHrsFLO3q1zPl3TDVm4MgWJtWosX2s5AjH_3BVbMHRGRUSPFQH1Rhtzjy5nmpRCCqg$, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4R2KHLD6KLNMY5KOC37A3RZUIWDANCNFSM4OPKCSQQhttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AA4R2KHLD6KLNMY5KOC37A3RZUIWDANCNFSM4OPKCSQQ*3E__;JQ!!KOmnBZxC8_2BBQ!nHrsFLO3q1zPl3TDVm4MgWJtWosX2s5AjH_3BVbMHRGRUSPFQH1Rhtzjy5nFYvvzAQ$ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/BodenmillerGroup/ImcSegmentationPipeline/issues/42*issuecomment-653261671__;Iw!!KOmnBZxC8_2BBQ!nHrsFLO3q1zPl3TDVm4MgWJtWosX2s5AjH_3BVbMHRGRUSPFQH1Rhtzjy5lMkrNR1Q$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQFAH4AOIDKPW6INI6GFH63RZULBDANCNFSM4OPKCSQQ__;!!KOmnBZxC8_2BBQ!nHrsFLO3q1zPl3TDVm4MgWJtWosX2s5AjH_3BVbMHRGRUSPFQH1Rhtzjy5nK-bLaIA$.

IMPORTANT WARNING: This message is intended for the use of the person or entity to which it is addressed and may contain information that is privileged and confidential, the disclosure of which is governed by applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this information is strictly prohibited. Thank you for your cooperation.