monarch-initiative / mondo-ingest

Coordinating the mondo-ingest with external sources
https://monarch-initiative.github.io/mondo-ingest/
6 stars 3 forks source link

Split `make lexmatch/README.md`: New goal to run lexmatch on a single source #540

Open joeflack4 opened 6 months ago

joeflack4 commented 6 months ago

Overview

The goal lexmatch/README.md is confusing and against the typical way that goals in make are normally supposed to work mondo-ingest, in that it only shows 1 target lexmatch/README.md, even though it generates a number of files.

I can see why this was done. We'd have to list 2 output files *_lex.tsv and *_lex_exact.tsv for each source. But then, if someone wanted to run on a single source, and they ran, say, unmapped_icd11foundation_lex.tsv, it would run for ALL sources.

This could be addressed with a refactor to make this goal and the Python file that it call to be in line with how we typically have goals / pipelines set up in mondo-ingest--that is, the target of the goal would be a wildcard, as in slurp/%.tsv, and then to run them all, we'd have separate goal for that, e.g. slurp-all.

Sub-tasks