Closed dustine32 closed 3 years ago
Oh good catch. The reason, though, this is coming in as a list is because the command line option in ontobio-parse-assocs
is being created as a list, so "all" is being inserted as an item.
My thought is that since this is an artifact of the argument parsing, we should parse that there in ontobio-parse-assocs. If the incoming args.rule_set
contains RuleSet.ALL
then we should just set the config to be RuleSet.ALL
rather than a list, as expected by the logic in the config init.
@dougli1sqrd Thanks! I just corrected it in the PR.
Related to #544
@dougli1sqrd Was having some trouble getting all rules to run using the new
-l all
param. I had a WB GPAD with two lines annotated to CC root but they used relationlocated_in
, which violates GO rule 61. These didn't get repaired when runningontobio-parse-assocs.py
with the-l all
param.Throwing on my debugger, I traced it to this line in
assocparser.py
: https://github.com/biolink/ontobio/blob/d4fff4a551b71d15eb3be2f8296816ee2f721ca0/ontobio/io/assocparser.py#L268 Here,rule_set
was coming in as list["all"]
butRuleSet.ALL
is just the str"all"
: https://github.com/biolink/ontobio/blob/d4fff4a551b71d15eb3be2f8296816ee2f721ca0/ontobio/io/assocparser.py#L193 To fix, I just "listified"RuleSet.ALL
in the conditional:@dougli1sqrd I can PR this change and you can trash it if you don't like it. Thanks!