CharlesJB / ENCODExplorer

5 stars 4 forks source link

prepare_ENCODEdb breaks on empty tables #44

Closed ericfournier2 closed 5 years ago

ericfournier2 commented 5 years ago

Currently, the types of ENCODE tables(as returned by get_encode_types(), which sources its list directly from the ENCODE github repository) includes access_key, but querying it returns an empty set (No columns, no rows). This causes prepare_ENCODEdb to crash.

Checking for empty tables seems to have fixed it, but I need to test it more thoroughly before I push it to production.