Re: [Rpy] Sending named parameters to pypher?

2013-01-10 Thread Luca Beltrame
On Thu, 10 Jan 2013 20:00:44 +0100 (CET), Samuel Lampa wrote: > Ah, many thanks! :) A comment: if you're using R just to do a hypergeometric test, probably the R-Python overhead is not worth the effort. Scipy has the exact same function, with the advantage that you don't have to go through

Re: [Rpy] Sending named parameters to pypher?

2013-01-10 Thread Samuel Lampa
On 01/10/2013 06:56 PM, Laurent Gautier wrote: > dots ('.') are not valid symbol name in Python. > http://rpy.sourceforge.net/rpy2/doc-dev/html/robjects_functions.html?highlight=dot#functions > Ah, many thanks! :) // Samuel -- Developer at SNIC-UPPMAX www.uppmax.uu.se Developer at Dept of Pha

Re: [Rpy] possible to export robjects in R?

2013-01-10 Thread Paul Hobson
On Wed, Jan 2, 2013 at 3:20 AM, oneswarm1988 wrote: > ** > hello everyone: > > *I wonder if there is a method that could export the robjects created > from python to R , so that I can use the robjects directly in R code .* > > for example : df= DataFrame(xx) is a data frame created in python ,

Re: [Rpy] Sending named parameters to pypher?

2013-01-10 Thread Laurent Gautier
On 2013-01-10 18:22, Samuel Lampa wrote: > Hi, > > I'm tryint to do a "pypher" calculation from my python script, for some > gene expression stuff. > > In R, I would call it like this: > phyper(q, m, n, k, lower.tail=FALSE, log.p=FALSE) > > How do I format the two last parameters, in python? > > Th

[Rpy] Sending named parameters to pypher?

2013-01-10 Thread Samuel Lampa
Hi, I'm tryint to do a "pypher" calculation from my python script, for some gene expression stuff. In R, I would call it like this: phyper(q, m, n, k, lower.tail=FALSE, log.p=FALSE) How do I format the two last parameters, in python? The four first ones seems simple: p = r.phyper(q, m, n, k)