Classifier 2.0 Beta for MacOS

Moderators: afraser, mbray, David Logan, Anne Carpenter

Re: Classifier 2.0 Beta for MacOS

Postby afraser » Thu Nov 26, 2009 12:12 pm

The margin vs. iteration plot isn't critical, so you don't need pyCellProfiler. You will need to install the classifier function in MySQL however. I don't know how to do this off the top of my head but here's a link that might get you started (http://dev.mysql.com/doc/refman/5.0/en/adding-udf.html). It's a holiday today so I'll have to get back to you on Monday. The MySQL function to be installed is in a file in src/ called _classifier.c

CPA is also now bundled for distribution in Mac and Windows, it's just a matter of us posting it on the website.
-Adam
Adam Fraser
Software Engineer | Carpenter Lab | Broad Institute
User avatar
afraser
 
Posts: 128
Joined: Mon Mar 03, 2008 3:46 pm
Location: Cambridge, MA

Re: Classifier 2.0 Beta for MacOS

Postby Coen » Fri Nov 27, 2009 3:05 pm

Hi Adam,

Thanks for your reply. I have compiled the _classifier.so and copied it into the plugin folder of mysql installation. Next I tried to create the classifier function with : 'mysql>> CREATE FUNCTION classifier RETURNS INTEGER SONAME '_classifier.so';'. This resulted in the following error:

ERROR 1126 (HY000): Can't open shared library '_classifier.so' (errno: 0 dlopen(/usr/local/mysql-5.1.35-osx10.5-x86/lib/plugin/_classifier.so, 2): Symbol not found: __Py_NoneStruct
Referenced from: /)

Any suggestions?

Thanks in advance,

Coen
Coen
 
Posts: 14
Joined: Sat Jul 07, 2007 4:27 pm

Re: Classifier 2.0 Beta for MacOS

Postby afraser » Mon Nov 30, 2009 9:23 am

There's another classify.c, in src/mysql_plugins. That's the one you want to build and install.
Adam Fraser
Software Engineer | Carpenter Lab | Broad Institute
User avatar
afraser
 
Posts: 128
Joined: Mon Mar 03, 2008 3:46 pm
Location: Cambridge, MA

Re: Classifier 2.0 Beta for MacOS

Postby Coen » Mon Nov 30, 2009 2:16 pm

Hi Adam

Success at last. I have compiled the classify.c with the following command:
gcc -fPIC -Wall -I /usr/local/mysql-5.1.35-osx10.5-x86/include -dynamiclib -lstdc++ -o classify.so classify.c

copied the classify.so to:
/usr/local/mysql-5.1.35-osx10.5-x86/lib/plugin

started the mySQL server:
/usr/local/mysql/bin/mysql -u root -p

and installed it with:
mysql> CREATE FUNCTION classifier RETURNS INTEGER SONAME 'classify.so'

Thanks again for your help.

Coen
Coen
 
Posts: 14
Joined: Sat Jul 07, 2007 4:27 pm

Re: Classifier 2.0 Beta for MacOS

Postby afraser » Tue Dec 01, 2009 7:32 am

Great! Thanks for posting your steps. :mrgreen:
Adam Fraser
Software Engineer | Carpenter Lab | Broad Institute
User avatar
afraser
 
Posts: 128
Joined: Mon Mar 03, 2008 3:46 pm
Location: Cambridge, MA

Re: Classifier 2.0 Beta for MacOS

Postby afraser » Mon Apr 12, 2010 10:46 am

UPDATE:

A new version of CellProfiler Analyst (including the Classifier tool) has been released and is available for download for Mac OS and Windows from: http://cellprofiler.org/downloadCPA.shtml

...installation is as easy as downloading and opening the file.
Adam Fraser
Software Engineer | Carpenter Lab | Broad Institute
User avatar
afraser
 
Posts: 128
Joined: Mon Mar 03, 2008 3:46 pm
Location: Cambridge, MA

Previous

Return to CellProfiler Analyst Bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests