You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
produces files such as "..%2F..%2F..%2Fontology%2Fhuman-phenotype-ontology-merged.obo" in the current directory. This is under Linux. Apparently there is some URL transformation going on.
I would expect that by default all output is placed within the current working directory with proper names.
The strange file names are generated, due to the fact, that there is no ontology id present in the source file.
It is strongly recommended to have an ontology id. The ontology id is specified in the ontology header using the 'ontology' tag. (For more details, please see the OBOFormat documentation http://www.geneontology.org/GO.format.obo-1_4.shtml#S.2.1 )
The output file name is generated using the ontology. If not present the path is used to generate an ID, which result in this strange file name.
While appreciate this comment, please notice that this tag is new for OBO 1.4 as far as I can see it and even there it is not declared as required (only as should). In absence of this tag, I suggest to take only the last component of the path as the ontology when operating on a local filesystem, otherwise the tool behaves differently than many other build tools (e.g., gcc).
Implemented suggested change. Now OORT checks the file name (if available) and removes the '.obo' or '.owl' suffix to create a default ontology id (committed in revision 394 ).
From Sebastia...@charite.de on December 02, 2011 01:18:38
What steps will reproduce the problem?
For instance:
> bin/ontology-release-runner ../../../ontology/human-phenotype-ontology.obo
produces files such as "..%2F..%2F..%2Fontology%2Fhuman-phenotype-ontology-merged.obo" in the current directory. This is under Linux. Apparently there is some URL transformation going on.
I would expect that by default all output is placed within the current working directory with proper names.
Original issue: http://code.google.com/p/owltools/issues/detail?id=20
The text was updated successfully, but these errors were encountered: