cokelaer / bioservices

Access to Biological Web Services from Python.
http://bioservices.readthedocs.io
Other
278 stars 60 forks source link

BioMart filter input #257

Open savoie-christopher opened 1 year ago

savoie-christopher commented 1 year ago

Hi, it seems that the tutorial (https://bioservices.readthedocs.io/en/latest/biomart.html) uses this syntax to pass a list to the filter:

queries = ["", ""]
b.add_filter_to_xml("ensemble_gene_id", queries)

Although, it does not work on my end, but it does if I change the input for

queries = ["", ""]
b.add_filter_to_xml("ensemble_gene_id", ",".join(queries))

This could either be modified in the code (more elegant) or the tutorial could be modified.

Thanks,