Skip to content

Commit

Permalink
Revert previous; correct rule_set value in ontobio-parse-assocs; for #…
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine32 committed May 14, 2021
1 parent f182777 commit ceca6d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/ontobio-parse-assocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def main():
if args.gaferencer_file:
gaferences = gaference.build_annotation_inferences(json.load(args.gaferencer_file))

rule_set = args.rule_set
if rule_set == ["all"]:
rule_set = assocparser.RuleSet.ALL

# set configuration
filtered_evidence_file = open(args.filtered_file, "w") if args.filtered_file else None
config = assocparser.AssocParserConfig(
Expand All @@ -144,7 +148,7 @@ def main():
annotation_inferences=gaferences,
paint=args.allow_paint,
gpi_authority_path=args.gpi,
rule_set=args.rule_set
rule_set=rule_set
)
p = None
fmt = None
Expand Down
2 changes: 1 addition & 1 deletion ontobio/io/assocparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def __init__(self,
# print("Rule Set is {}".format(rule_set))
if rule_set == None:
self.rule_set = RuleSet([])
elif rule_set == [RuleSet.ALL]:
elif rule_set == RuleSet.ALL:
# None here means all rules
self.rule_set = RuleSet(None)
else:
Expand Down

0 comments on commit ceca6d3

Please sign in to comment.