lsa_query: "NameError: global name 'r' is not defined"

Issue #7 wontfix
Fiona Whelan created an issue

I cannot get lsa_query to run without error.

Usage:

$ lsa_query eLSA_edit.theo2.txt eLSA_edit.theo2.query.txt
lsa_query (rev: 81a2ee0) - copyright Li Charlie Xia, lixia@stanford.edu
lsa_query ($Revision$) - copyright Li Charlie Xia, lixia@stanford.edu
learning arguments...
q= None
reading the lsatable...
Traceback (most recent call last):
  File "/usr/local/bin/lsa_query", line 9, in <module>
    load_entry_point('lsa==1.0.2', 'console_scripts', 'lsa_query')()
  File "/usr/local/lib/python2.7/dist-packages/lsa-1.0.2-py2.7-linux-x86_64.egg/lsa/lsa_query.py", line 102, in main
    r('''lsa <- read.delim("%s")''' % rawFile.name)
NameError: global name 'r' is not defined

Comments (2)

  1. Charlie Xia repo owner

    Since the removal of rpy2, lsa_query is no longer supported. You have to do the tasks you want with Excels or some scripting. Or you can try fix this error yourself, which basically means to install R an rpy2.

    Sorry, we gain portability but lose some functionality but guess that's the trade off have to be made.

  2. Log in to comment