Closed IAmSuyogJadhav closed 3 months ago
Hi,
So I tested on my development setup (it's been a while since I tried) and I managed to make it work.
First, the error you point to is related to CAML. As I'm not the developer of CAML I'm not able to help with that, I just managed (very inefficiently) to merged their method from several files to one. Nevertheless, did you follow their steps to make CAML works on Windows? They point to a very specific Python distribution as seen here: https://gitlab.com/quokka79/caml/-/wikis/Setting%20Up%20Windows%20WinPython
Did you use this distrib?
To make the CAML.py work, I modified it slightly:
def testCAML(xs, ys):
print("We are here")
with open(input_PrepJSON, 'r') as file:
print (xs)
w, h = np.ceil(np.max(xs)), np.ceil(np.max(ys))
infos = [w, h, 0, 0, w, 0, h, 0, 0]
dataTest = np.array([xs, ys])
print(dataTest)
And then used this setting from PoCA v0.8.0:
Obviously, you also need to change the different paths in CAML.py: input_PrepJSON = path/caml-master/CAMLtutorial/AAA Data Descriptions.json' inputpath = 'path/caml-master/CAMLtutorial' current_file = '1_PpMS(100.0)_PpC(20)_PC(50.0)_r(0.0-40.0)_CpMS(2.5)_cellID(1).tsv' s1_prep_outputpath = 'path\caml-master\CAMLtutorial\testFlorian' model_fname = 'path\caml-master\CAMLtutorial\testFlorian\model\07VEJJ - Norm-Self Train(500.0k,0.5×Clus) Val(100.0k,0.5×Clus).h5'
I just give you this dropbox link to the folder testFlorian: https://www.dropbox.com/sh/vorbluhmtnr8e8m/AABNKcoAxowdu52l_TRFzlMZa?dl=0 It's been a long time I did that so I don't exactly remember what I did for this folder. Pretty sure I just picked some of the files of the tutorials and put them here.
Hi, Thank you for your response. I will try it out again and let you know how it goes with the modified code. :)
Closing the issue as there was no follow-up
Hi, I am trying to utilise the python plugin feature in PoCA to run CAML on some datasets. I tried to use the CAML files found inside
pythonScripts folder. The scripts make the GUI program crash. So, I tried to run the python files separately. I created a JSON file from CAML's instructions, and changed other paths as needed. On trying to feed a sample data of 100 points (only 2D, as the
testCAMLfunction only seems to accept
xsand
ys` as arguments. Not sure how to make it work for 3D data), the function runs indefintely (did not produce a result after running for 1 day continuously).It seems to be stuck in a while loop ?
Can you please add instructions on how to setup CAML to work with PoCA? Do let me know if you need information from me. I tried this with PoCA release 0.8.0. Thank you!