Closed Sadegh-Saberian closed 4 years ago
Hi, can you post the exact command you're using to run the pipeline?
here is the command that I am using:
docker run pyhist --patch-size 64 --output-downsample 16 --test-mode GTEX-1117F-0126.svs
You have to mount the folder in your local workstation inside the docker container (see the quickstart example in the README). The first part of the -v
argument is the absolute path to the folder containing the image, while the second part is the folder inside the docker container. In the
--output
flag, we write to the images/
folder so that it is written outside the container. For example:
docker run -v /absolute/path/to/folder/with/image/:/pyhist/images pyhist --patch-size 64 --output-downsample 16 --test-mode --output images/ images/GTEX-1117F-0126.svs
We will add an example on the tutorial to clarify this.
Thanks for your reply. It appears that it solved the problem for finding the file. but now i am facing another error here :(
== Step 1: Producing edge image... ==
== Step 2: Segmentation over the mask ==
Traceback (most recent call last):
File "pyhist.py", line 142, in <module>
main()
File "pyhist.py", line 120, in main
args)
File "/pyhist/src/utility_functions.py", line 161, in produce_segmented_image
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: 'src/graph_segmentation/segment'
Do you have any idea what this is about? many thanks!
What OS are you using? I couldn't reproduce this on Ubuntu/Mac. I changed some permission bits in the segmentation executable, just in case it helps. Can you try the following:
docker pull mmunozag/pyhist
curl 'https://brd.nci.nih.gov/brd/imagedownload/GTEX-1117F-0126' --output 'GTEX-1117F-0126.svs'
docker run -v $PWD:/pyhist/images mmunozag/pyhist --patch-size 64 --output-downsample 16 --test-mode --output images/ images/GTEX-1117F-0126.svs
An output folder should be created containing the test image.
it worked! I am using mac OS 10.14. but the docker is now working! thanks for your help.
Hi,
I just wanted to use the great pipeline that you created here, but I could not make it work. I am using the docker and when I try to reproduce your test i get the following error:
Although I am using the exact same file as yours in the test. I would appreciate if you could help me.