Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run clearmap #17

Open
AbsolemPillar opened this issue Sep 26, 2018 · 6 comments
Open

can't run clearmap #17

AbsolemPillar opened this issue Sep 26, 2018 · 6 comments

Comments

@AbsolemPillar
Copy link

I'm been trying to get clearmap to work for a while but haven't any success. When I type python setup.py install I get this error message:

Settings: elastix path /usr/local/elastix does not exists, cf. Settings.py or type help(Settings) for details.
Settings: ilastik path /usr/local/ilastik-1.1.9-Linux does not exists, cf. Settings.py or type help(Settings) for details.

When I cd to Clearmap/Clearmap and open Settings.py, I don't know which one to edit? Also, am I suppost to pointed it the software or the directory?

thanks

@vzickus
Copy link

vzickus commented Sep 26, 2018

If you go to ClearMap\ClearMap you should find Settings.py. Starting line 29 you should see where to set the path to elastix:

ElastixPath = '/usr/local/elastix';

Then just set it to where you have it built/installed on your machine. For example, mine is:
ElastixPath = '/home/asus/software/elastix-4.9.0-linux/';

@AbsolemPillar
Copy link
Author

thank you, vzickus by following your instruction. I was able to run sudo python setup.py install. it ran the setup fine. the other part, where do I go to launch the clearmap software? I see a couple of new folders created after I ran setup.

build ClearMap ClearMap.egg-info dist

@vzickus
Copy link

vzickus commented Sep 26, 2018

I suggest you have a read of this, where they point you to the relevant files
https://github.com/ChristophKirst/ClearMap/blob/master/docs/tutorial.rst

@AbsolemPillar
Copy link
Author

thank you, I have read the tutorials a few times. I kind of left everything as default just see how it works besides changing the path to this:
#load the parameters:
execfile('/home/moduk/ClearMap/build/lib.linux-x86_64-2.7/ClearMap/Scripts/parameter_file_template.py')

then I ran: python process_template.py
could help me see if this suppose to happen?

Elastix sucessfully initialized from path: /home/moduk/elastix490
Ilastik sucessfully initialized from path: /home/moduk/ilastik-1.3.0-Linux
Traceback (most recent call last):
File "process_template.py", line 7, in
execfile('/home/moduk/ClearMap/build/lib.linux-x86_64-2.7/ClearMap/Scripts/parameter_file_template.py')
File "/home/moduk/ClearMap/build/lib.linux-x86_64-2.7/ClearMap/Scripts/parameter_file_template.py", line 17, in
from ClearMap.Analysis.Label import countPointsInRegions
File "/usr/local/lib/python2.7/dist-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Analysis/Label.py", line 164, in
Label = LabelInfo();
File "/usr/local/lib/python2.7/dist-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Analysis/Label.py", line 86, in init
slf.initialize(annotationFile = annotationFile);
File "/usr/local/lib/python2.7/dist-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Analysis/Label.py", line 91, in initialize
with open(annotationFile) as dfile:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/Data/ARA2_annotation_info_collapse.csv'

@crazyhottommy
Copy link

@AbsolemPillar I am trying Clearmap as well and got the same error. I then copied the Data folder from your git clone download

ls Data/
ARA2_annotation_info_collapse.csv  ARA2_annotation_statistics.csv       lightsheet_line_intensty_profiles_y.csv
ARA2_annotation_info.csv           lightsheet_flatfield_correction.csv  lightsheet_peak_intensity_profile_y.csv

cp -r Data /usr/local/lib/python2.7/dist-packages/ClearMap-0.9.2-py2.7-linux-x86_64.egg/ClearMap/

it should work.

@auesro
Copy link

auesro commented Feb 14, 2019

It does.
For some reason, when python installs the repository it does not copy the Data folder. You need to add it manually as per @crazyhottommy code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants