Skip to content

query_tag_samples() returning inconsistent results #40

@heimannch

Description

@heimannch

@andrewelamb
If I use iatlasGraphQLClient::query_tag_samples() for two parent tags for the AMADEUS dataset, the results are different than if I query each parent tag independently.

#query for response
> cat_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "AMADEUS", parent_tags = c("Responder"))
> dim(cat_df)
[1] 66  8
#query for prior_rx
> prior_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "AMADEUS", parent_tags = c("Prior_Rx"))
> dim(prior_df)
[1] 82  8
#now, if we query both parent tags, we would expect a df with 148 rows, but it only returns results for Prior_Rx
> resp_prior_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "AMADEUS", parent_tags = c("Responder", "Prior_Rx"))
> dim(resp_prior_df)
[1] 83  8

It doesn't happen for other datasets, for example Gide:

#query for response
> cat_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "Gide_Cell_2019", parent_tags = c("Responder"))
> dim(cat_df)
[1] 91  8
#query for prior_rx
> prior_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "Gide_Cell_2019", parent_tags = c("Prior_Rx"))
> dim(prior_df)
[1] 91  8
#now, if we query both parent tags, we get a df with 182 rows and results for both parent tags
> resp_prior_df <- iatlasGraphQLClient::query_tag_samples(cohorts = "Gide_Cell_2019", parent_tags = c("Responder", "Prior_Rx"))
> dim(resp_prior_df)
[1] 182  8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions