biocore / qurro

Visualize differentially ranked features (taxa, metabolites, ...) and their log-ratios across samples
https://biocore.github.io/qurro
BSD 3-Clause "New" or "Revised" License
32 stars 10 forks source link

"Joint" searching queries across multiple feature ranking/metadata fields #140

Open fedarko opened 5 years ago

fedarko commented 5 years ago

A continuation of the ideas laid out in #132.

This would basically let the user do multiple queries of arbitrary types on the same half of a log ratio. Think sort of akin to SQL queries.

Something like "has taxonomic rank Clostridium and has confidence > 0.95".

The fact that we can already search by multiple ranks at once in taxonomy searching kinda mitigates the urgency of this but it'd still be cool to have.

i think a graphical interface for this (where the user could e.g. press a "+" button that adds another searching row) would be cool, but probs hard or tedious to pull off (esp. in vanilla-ish JS, which we're using now). An easier (and maybe more intuitive?) solution would be defining a sort of syntax for these queries, but that would take some getting used to for users (and I don't want to alienate people with that).

Some steps

This might negate the need for stuff like #308, if we can get to this in time.

The main hurdle here will probably be making the JS do this stuff in a way that is sustainable and easy to test. If we can get to this it'd be super useful.

fedarko commented 4 years ago

I'm upgrading this to "important", because this is coming up a lot and I think having it supported would be really useful. In particular, use cases like "the bottom-ranked X% of features, excluding the text T" will be super helpful for analyses on datasets where the numerator taxa being inspected aren't all highly ranked (and we want to take a denominator from the bottom few features without also selecting the taxa here that are in the numerator).