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

Filter transcripts #105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Filter transcripts #105

wants to merge 3 commits into from

Conversation

ahc87
Copy link

@ahc87 ahc87 commented Dec 6, 2022

https://www.ebi.ac.uk/panda/jira/browse/EA-1037

This change adds the option to filter the transcripts returned by transcripts_page. Here is an example query:

query {
  gene(by_id: { 
    genome_id: "a7335667-93e7-11ec-a39d-005056b38ce3", 
    stable_id: "ENSG00000109339" 
  }) {
    transcripts_page(page: 1, per_page:10, 
    filters: {
      biotype: ["protein_coding", "nonsense_mediated_decay"],
      tsl: ["tsl1", "tsl2", "tsl3"]
    }
  ) {
    transcripts {
      stable_id
      unversioned_stable_id
      so_term
      metadata {
        tsl {
          value
        }
        biotype {
          value
        }
      }
    }
    page_metadata {
      page
      per_page
      total_count
    }
  }
}
}

Base automatically changed from paginate-transcripts to main December 7, 2022 10:12
@ahc87
Copy link
Author

ahc87 commented Jan 13, 2023

We decided on how we should do filter groups during the Thoas prioritisation meeting, documented here: https://www.ebi.ac.uk/seqdb/confluence/display/EA/Meeting+-+2023-01-10. This PR hardcodes metadata types in the GraphQL schema, which is incompatible with the agreed solution for filter groups. Therefore this PR needs to be updated.

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

Successfully merging this pull request may close these issues.

1 participant