arq5x / gemini

a lightweight db framework for exploring genetic variation.
http://gemini.readthedocs.org
MIT License
317 stars 119 forks source link

gemini dump --genotypes no longer working #910

Open wm75 opened 5 years ago

wm75 commented 5 years ago

I'm in the process of upgrading Galaxy's GEMINI tool wrappers from v0.18.1 to 0.20.1 and our tool tests report a new failure with the new version of gemini dump. It looks as if the --genotypes option isn't working anymore.

The error boils down to:

  File "lib/python2.7/site-packages/gemini/gemini_utils.py", line 51, in get_col_names_and_indices
    inames = [x for x in inames if not (x[1].startswith("gt") and
  File "lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 2993, in __bool__
    raise TypeError("Boolean value of this clause is not defined")
TypeError: Boolean value of this clause is not defined

and if you could fix it, it would be awesome (otherwise we'll hide the corresponding select option from the Galaxy tool interface for now). Thanks a lot in advance!