Re: How to save gorilla plots to file

2016-01-17 Thread jandot
gt; > On Saturday, 16 January 2016 18:20:25 UTC, jandot wrote: >> >> Hi all, >> >> I have found the gorilla REPL (http://gorilla-repl.org/) very useful for >> data analysis in clojure. One of the great benefits is that it can display >> plots in-line (based

Re: How to save gorilla plots to file

2016-01-17 Thread jandot
I've found a workaround now. I use the incanter library to create the plots, which allows me to do a (save my-plot "file.png"). To display the same plot on the screen: (chart-view my-plot). j. On Saturday, January 16, 2016 at 7:20:25 PM UTC+1, jandot wrote: > > Hi all,

How to save gorilla plots to file

2016-01-16 Thread jandot
Hi all, I have found the gorilla REPL (http://gorilla-repl.org/) very useful for data analysis in clojure. One of the great benefits is that it can display plots in-line (based on vega). When saving such notebook, these plots are represented as base64 text strings in the .clj file. However, I h

Re: trouble getting library structure right: can't let files talk to each other

2010-08-17 Thread jandot
Thanks for the clarification. I think I have everything working now. j. On Aug 17, 3:14 pm, Meikel Brandmeyer wrote: > Hi, > > luckily use is not transitive. If you want to use congomongo from > analysis-2 you have to do: > > (ns my-important-project.analysis-2 >   (:use somnium.congomongo)) > >

Re: trouble getting library structure right: can't let files talk to each other

2010-08-17 Thread jandot
I feel a blog-post coming when I figured this out :-) On Aug 17, 2:26 pm, jandot wrote: > Thanks Rasmus, Meikel, > > This does help a lot already. > > There still seems to be an issue with using some of the things, > though. When I do > >   (require '(my-important-pr

Re: trouble getting library structure right: can't let files talk to each other

2010-08-17 Thread jandot
Thanks Rasmus, Meikel, This does help a lot already. There still seems to be an issue with using some of the things, though. When I do (require '(my-important-project core analysis-2)) I would logically do (in-ns 'my-important-project.analysis-2) because that's where all the functions are tha

trouble getting library structure right: can't let files talk to each other

2010-08-17 Thread jandot
Hi all, I'm trying to write a library to perform some statistical and data mining analyses. Clojure has proven a great help here, especially with the incanter library. Writing the code has been kind of an "organic" process (read: no planning), and I ended up with different conceptual groups of fun

cljr-record: what's the idiomatic way to create API to database?

2010-08-13 Thread jandot
Hi all, I'd like to build a clojure api to a mysql database. Have done this previously using ruby's ActiveRecord which makes this very easy. clj- record apparently provides the same kind of functionality. The clj-record README shows how to create an interface to a table (let's say "employees") wi

Re: setting classpath and using namespace: how to enable example scripts in library?

2010-08-02 Thread jandot
place dashes with underscores) > > You can also make java class with main method and compile and execute it. > How to do it described here:http://clojure.org/compilation > > Regards, > Nikita Beloglazov > > > > On Mon, Aug 2, 2010 at 12:09 AM, jandot wrote: > > Hi

setting classpath and using namespace: how to enable example scripts in library?

2010-08-01 Thread jandot
Hi all, I'm writing a library which is organized using "lein new", so the directory structure contains an "src" and "test". I have added a directory "examples" with scripts that should be able to run by just typing "./example-1.clj". So the directory structure is: +- project.clj +- src |

Re: clojure-contrib replace-first-str

2010-07-21 Thread jandot
Thanks Stuart. Got it working now. jan. On Jul 21, 2:28 pm, Stuart Halloway wrote: > Hi Jan, > > These functions in contrib are deprecated (and will be marked so as soon as > we have time to make a pass through contrib). > > Please use the functions in clojure.string. > > Stuart Halloway > Cloj

clojure-contrib replace-first-str

2010-07-20 Thread jandot
Hi, I'm using replace-str and replace-first-str (from clojure-contrib 1.2.0-beta1), and it seems that these do not have the same functionality contrary to their descriptions.The following code will work with the regular (replace-str), but (replace-first-str) returns an error: user=> (replace-str

Re: Clojure-based scientific paper!

2010-07-15 Thread jandot
Congratulations Boris. Nice to see clojure being used in bioinformatics :-) I might get in touch with you later about building a clojure library for bioinformatics... jan. On Jul 14, 7:56 am, bOR_ wrote: > Hi all, > > My first paper with results based on a clojure-build agent-based model > is in

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread jandot
ink. > > I will have a look to bio*. > > But if you want to start a project, count me in. > > > > On Sun, Jun 27, 2010 at 11:15 PM, jandot wrote: > > Hi all, > > > I have been a ruby user for several years and have contributed to the > > bioruby toolki

bioinformatics toolkit in clojure: what would that look like?

2010-06-28 Thread jandot
Hi all, I have been a ruby user for several years and have contributed to the bioruby toolkit for bioinformatics. Lately however I got interested in clojure as it's a functional language and should be very good for working with the huge datasets we have to handle. Although there are bioinformatic