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? > > The four first ones seems simple: > > p = r.phyper(q, m, n, k) > > ... but if I go (in python): > r.phyper(q, m, n, k, lower.tail=FALSE, log.p=FALSE) > > > ... gives: > SyntaxError: keyword can't be an expression > > Any hints, how to do this?
dots ('.') are not valid symbol name in Python. http://rpy.sourceforge.net/rpy2/doc-dev/html/robjects_functions.html?highlight=dot#functions > > Best Regards > // Samuel > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list