monarch-initiative / monarch-semantic-similarity-profiles

MIT License
2 stars 0 forks source link

Make sure all directories exist #5

Closed matentzn closed 11 months ago

matentzn commented 1 year ago
runoak -i semsimian:sqlite:data/ontology/upheno2-lattice.db similarity -p i --set1-file data/tmp/upheno2-lattice_hp_terms.txt --set2-file data/tmp/upheno2-lattice_mp_terms.txt -O csv -o profiles/upheno2-lattice-hp-mp.semsimian.tsv
/usr/local/lib/python3.10/dist-packages/rdflib_jsonld/__init__.py:9: DeprecationWarning: The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.0.  Please remove rdflib-jsonld from your project's dependencies.
  warnings.warn(
FileNotFoundError: [Errno 2] No such file or directory: 'profiles/upheno2-lattice-hp-mp.semsimian.tsv'
make: *** [Makefile:177: profiles/upheno2-lattice-hp-mp.semsimian.tsv] Error 1

Whenever a command is run that creates a file in a directory that does not have a dependency (direct or indirect) in that same direct, add mkdir -p dirname