Closed DnlRKorn closed 2 weeks ago
This issue would be resolved by the following; however I need to explore how this would affect other "in" filters we have defined in Monarch-Ingest
def inlist(self, column_value, filter_values):
filter_in_column = any([filter_value in column_value for filter_value in filter_values])
return (column_value in filter_values) or (filter_in_column)
Closed with #146
For row filters, we have functionality to capture behavior of "filter if column is within a list defined in yaml".
https://github.com/monarch-initiative/koza/blob/7087ee6e1bbd347a8f792fefeca477a58288ed18/src/koza/utils/row_filter.py#L55-L56
An example of this behavior occurs with the go_annotation ingest. https://github.com/monarch-initiative/monarch-ingest/blob/72adbffd168d5f59cce83306917d2aeffd0b2602/src/monarch_ingest/ingests/go/annotation.yaml#L27-L49
However this fails on the following row in the 9606.go_annotations.gaf
Because the taxon row's value "taxon:9606|taxon:12814" doesn't have an exact match with any of the options defined in the go/annotation.yaml.