srp33 / Geney

Geney: a web-based tool to make your data wishes come true!
Apache License 2.0
2 stars 3 forks source link

Unable to retrieve number of samples for LINCS data #31

Closed srp33 closed 5 years ago

srp33 commented 5 years ago

The screenshots below are an example where I'm getting an error when trying to download LINCS data. On the "Filter Features" page, it says "Unable to retreive number of samples." Please see if you can replicate this and find the cause of the problem. Let me know if I need to modify any code in the middle layer.

image image

kimballh commented 5 years ago

I am getting this error:

File "/app/app.py", line 184, in get_samples count, file = dataset.save_sample_indices_matching_filters(discrete_filters, numeric_filters) File "/app/data_access/DataSetParser.py", line 105, in save_sample_indices_matching_filters keep_row_indices = [str(x).encode() for x in keep_row_indices] File "/app/data_access/DataSetParser.py", line 105, in keep_row_indices = [str(x).encode() for x in keep_row_indices] File "/app/data_access/DataSetParser.py", line 349, in filter_rows_numeric if operator_dict[the_filter.operator](fastnumbers.float(value), the_filter.query_value): ValueError: could not convert string to float: b'NA'

I am looking into the most efficient way to handle it.

srp33 commented 5 years ago

Resolved. Thanks!