jrderuiter / pybiomart

A simple pythonic interface to biomart.
MIT License
53 stars 11 forks source link

Querying without attributes gives DataFrame with error message #2

Closed jrderuiter closed 8 years ago

jrderuiter commented 8 years ago

To recreate:

from pybiomart import Dataset

dataset = Dataset(name='hsapiens_gene_ensembl',
                  host='http://www.ensembl.org')

dataset.query(attributes=[])     # or dataset.query() 

Should address the attributes=None case by using the datasets default attributes. The attributes=[] case should raise an Exception on the Python side instead of server side.

jrderuiter commented 8 years ago

Fixed in 29729d4238b4621dcc3e25066bbb96d51d9ca59a and 8d6408b30e5c0bf81493507bd48b20b615f90b46.