Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setConstraints should support constraintLogic and codes #58

Open
yochannah opened this issue Jun 14, 2019 · 0 comments
Open

setConstraints should support constraintLogic and codes #58

yochannah opened this issue Jun 14, 2019 · 0 comments

Comments

@yochannah
Copy link
Member

An important part of InterMine querying is the ability to set OR logic for constraints, as well as the default AND logic.

This code throws an error, because neither code nor constraintLogic are permissible arguments in setConstraints:

pancreasConstraint2 = setConstraints(
  paths = c("Gene", "Gene.proteinAtlasExpression.level", "Gene.proteinAtlasExpression.level", "Gene.proteinAtlasExpression.tissue.name"),
  operators = c("IN", rep("=", 2), "="),
  values = list("PL_DiabetesGenes", "Medium", "High", "Pancreas"),
  code = c("A", "B", "C", "D"),
  constraintLogic = "A and (B or C) and D"
)

remove the invalid (but needed) code and constraintLogic arguments and it all works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant