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

constructing a new query #5

Open
MahShaaban opened this issue Jan 7, 2017 · 3 comments
Open

constructing a new query #5

MahShaaban opened this issue Jan 7, 2017 · 3 comments

Comments

@MahShaaban
Copy link

MahShaaban commented Jan 7, 2017

I am using intermineR to query the TargetMine. Following the instructions in the intermineR.pdf and manual page I should be able to get a query template using getTemplateQuery or construct a new query using newQuery, in either cases the documentations say there should be at least three items in each query. These are view, constrains and constrainLogic.

Using the function names on the output object from getTemplateQuery gives:
"model" "title" "description" "select" "name" "comment" "tags" "orderBy" "where"

Using the function args on the function newQuery gives:
function (name = "", view = character(), sortOrder = "", longDescription = "", constraintLogic = NULL)

I tried modifying the slot where of the query object, as explained for the item constrain however as a list not as a matrix and it works for a single value only.

There might be some changes in the query scheme that I am not aware of or doesn't show in the documentation yet.

I am using R (3.3.2 (2016-10-31) on x86_64-apple-darwin13.4.0 (64-bit) running on macOS Sierra 10.12.2. Both intermineR and bioconductor are the last releases; InterMineR_0.99.4 Biobase_2.34.0.

@julie-sullivan
Copy link
Member

I think you are right! Let me check tomorrow (and update the docs!).

@julie-sullivan
Copy link
Member

Closing as fixed. Please reopen this ticket if you still have an issue.

@yochannah
Copy link
Member

I'm encountering this issue as well.

See this file - I had to set constraints separately in order to get them to stick.

intermine/interminer-workshop@7a3abb1#diff-926d80f72da226377e21accd790046c7R27

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

3 participants