monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

Slimmer route: add exclude_slim parameter #332

Open lpalbou opened 4 years ago

lpalbou commented 4 years ago

Proposal: add a new parameter exclude_slim to the bioentityset/slimmer/function route to exclude in the result set all annotations that are mapped to any slim of exclude_slim

Why: creating the "other" category in the ribbon requires to fetch annotations for all slim terms of an aspect and to build the annotations set which are mapped to the aspect but not to any of the specific slim terms. This is done currently on the UI side but it would be much cleaner (and faster) on the API side.

@cmungall @deepakunni3

cmungall commented 4 years ago

This seems reasonable. Do we want to also allow exclusion on any arbitrary set of classes, as well as a predefined slim/enumeration?