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

orderBy generates too many spaces in the newQuery method #57

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

orderBy generates too many spaces in the newQuery method #57

yochannah opened this issue Jun 14, 2019 · 0 comments

Comments

@yochannah
Copy link
Member

This R code

# Create a new query
Pax6List = newQuery(
  #here we're choosing which columns of data we'd like to see
  view = c("Gene.primaryIdentifier",
           "Gene.symbol"),
  sortOrder = list("Gene.primaryIdentifier", "ASC"))

# Make a constraint: 
listConstraint = setConstraints(
  paths = c("Gene"),
  operators = c("IN"),
  values = list("PL_Pax6_Targets")
)

# Add the constraint to the query
Pax6List$where <- listConstraint

generates this XML:

<query name="" model="genomic" view="Gene.primaryIdentifier Gene.symbol" longDescription="" sortOrder=" Gene.primaryIdentifier  ASC">
  <constraint path="Gene" value="PL_Pax6_Targets" code="A" op="IN" extraValue=""/>
</query>

Note that there are too many spaces in sortOrder. The space space BEFORE Gene.primaryIdentifier is ignored, but there is also a double space between Gene.primaryIdentifier and ASC. This causes the InterMine server to throw a 400 error when it is run.

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