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

Developer Feedback from Coding to the DCP #322

Closed
DailyDreaming opened this issue Jun 19, 2019 · 4 comments
Closed

Developer Feedback from Coding to the DCP #322

DailyDreaming opened this issue Jun 19, 2019 · 4 comments
Assignees

Comments

@DailyDreaming
Copy link
Contributor

DailyDreaming commented Jun 19, 2019

Summarizing some of my experience in attempting to use the API for the first time:

  • It's unclear how to submit the filter param from the documentation.
  • "format": "zarr" seems like it should be valid in a submission (see below).
  • GET valid filters and fields return the exact same lists and it's unclear how these are different.
  • The difference in the v0 and v1 endpoints don't seem to be explained.

To explain further, running a query, I was able to successfully submit a request, however the documentation does not seem to exist in constructing a "filter". I constructed a working query by inspecting:

It surprised me that the zarr file format is not accepted. So this is invalid:

{
  "feature": "gene",
  "fields": [
    "genes_detected"
  ],
  "filter": {"op": "and",
                     "value": [
                         {"op": "=",
                          "field": "library_preparation_protocol.library_construction_method.ontology",
                          "value": "EFO:0008931"},
                         {"op": "!=",
                          "field": "derived_organ_label",
                          "value": "decidua"}]},
  "format": "zarr"
}

But removing the "format": "zarr" allows for a successful submission. Also querying the valid formats does not return zarr (curl -X GET "https://matrix.dev.data.humancellatlas.org/v1/formats" -H "accept: application/json"), which does not seem intuitive to me.

@brianraymor
Copy link

brianraymor commented Jun 19, 2019

Currently, Swagger UI supports example but currently does not support multiple examples. Here's a pointer to our multiple examples.

We also have vignettes in progress - #309

We do not expose zarr as an external format. See #289.

@DailyDreaming
Copy link
Contributor Author

DailyDreaming commented Jun 19, 2019

Zarr is still in the docs and should probably be removed and a mention added that loom is the actual default now.

@brianraymor The vignette looks awesome and enormously helpful. I think a number of other people at this breakout session found it to be useful as well.

@maximilianh
Copy link

maximilianh commented Jun 19, 2019 via email

@brianraymor
Copy link

RE zarr references - the unsupported format is listed in README.md.

@brianraymor brianraymor changed the title User Feedback. Developer Feedback from Coding to the DCP Jun 25, 2019
@brianraymor brianraymor added this to the Q3 2019 Milestone 1 milestone Jun 26, 2019
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

4 participants