Closed wwysoc2 closed 7 years ago
Thanks for the report. There have been a significant changes made to the package (and more to come). The mechanism for constructing queries has been entirely revamped. However, I took your comment to heart and have left the "id" fields in the results. In addition, there is now an S3 generic called ids()
that can return the ids of any result or query without having to dig into the actual object.
Your query would now look something like:
resp = files() %>%
select(fields=c('file_name','cases.submitter_id')) %>%
filter(~ experimental_strategy == "WXS" & data_format == "BAM") %>%
response_all()
count(resp)
# [1] 22893
head(ids(resp))
If you have further feedback, let me know.
@wwysoc2, I added an ids
method that works for annotations, cases, files, and projects response objects (working on documenting the classes). If this doesn't work for you or you have other ideas, let me know.
It doesn't seem to recognize 'file_id' as a valid field for the files endpoint. I know that as a workaround, the UUIDs can be retrieved with the bottom command, but it might be good to keep the fields consistent.