diff --git a/apps/platform/.env b/apps/platform/.env index 5857bb9d7..1206ad954 100644 --- a/apps/platform/.env +++ b/apps/platform/.env @@ -1,5 +1,5 @@ -VITE_API_URL=https://dev.opentargets.xyz/api/v4/graphql +VITE_API_URL=https://ng.opentargets.org:8080/latest/graphql VITE_AI_API_URL=https://dev-ai-api-w37vlfsidq-ew.a.run.app VITE_PROFILE=platform VITE_PATHWAYS_API_URL= -PLAYWRIGHT_TEST_BASE_URL=http://localhost:3000 +PLAYWRIGHT_TEST_BASE_URL=http://localhost:3000 \ No newline at end of file diff --git a/packages/ot-constants/codegen.ts b/packages/ot-constants/codegen.ts index f236e9cdf..60d658fea 100644 --- a/packages/ot-constants/codegen.ts +++ b/packages/ot-constants/codegen.ts @@ -11,14 +11,29 @@ if (!VITE_API_URL) { throw new Error("VITE_API_URL environment variable is not set in .env file"); } +// Documents already migrated to the current API: each gets an exact result type +// (`` / `Variables`) in src/types/index.ts. Add a +// page's documents here once its queries validate against the API. +const MIGRATED_DOCUMENTS = [ + "apps/platform/src/pages/DiseasePage/**/*.gql", + "apps/platform/src/pages/TargetPage/TargetAssociations/*.gql", + "apps/platform/src/components/AssociationsToolkit/components/Table/RowInteractors/InteractorsQuery.gql", + "apps/platform/src/components/GeneEnrichmentAnalysis/api/*.gql", + "packages/sections/src/disease/{Bibliography,Drugs,GWASStudies,Ontology,Phenotypes}/*.gql", + "packages/sections/src/drug/Bibliography/*.gql", + "packages/sections/src/target/Bibliography/*.gql", + "packages/ui/src/components/ClinicalReports/*.gql", +].map((glob) => resolve(__dirname, "../..", glob)); + const config: CodegenConfig = { overwrite: true, schema: `${VITE_API_URL}`, + documents: MIGRATED_DOCUMENTS, errorsOnly: false, generates: { "./src/types/index.ts": { plugins: ["typescript", "typescript-operations", "typescript-graphql-request"], - config: { gqlTagName: "gql", rawRequest: false }, + config: { gqlTagName: "gql", rawRequest: false, omitOperationSuffix: true }, }, }, }; diff --git a/packages/ot-constants/src/types/index.ts b/packages/ot-constants/src/types/index.ts index 738a8da26..5c21fb3cc 100644 --- a/packages/ot-constants/src/types/index.ts +++ b/packages/ot-constants/src/types/index.ts @@ -15,2852 +15,3600 @@ export type Scalars = { Boolean: { input: boolean; output: boolean; } Int: { input: number; output: number; } Float: { input: number; output: number; } - Long: { input: any; output: any; } + NaiveDate: { input: any; output: any; } }; -/** API version information */ -export type ApiVersion = { - __typename?: 'APIVersion'; - /** Optional version suffix (e.g., alpha, beta, rc) */ - suffix?: Maybe; - /** Major version number */ - x: Scalars['String']['output']; - /** Minor version number */ - y: Scalars['String']['output']; - /** Patch version number */ - z: Scalars['String']['output']; -}; - -/** Significant adverse events associated with drugs sharing the same pharmacological target. This dataset is based on the FDA's Adverse Event Reporting System (FAERS) reporting post-marketing surveillance data and it's filtered to include only reports submitted by health professionals. The significance of a given target-ADR is estimated using a Likelihood Ratio Test (LRT) using all reports associated with the drugs with the same target. */ +/** + * Significant adverse events associated with drugs sharing the same pharmacological target. This + * dataset is based on the FDA's Adverse Event Reporting System (FAERS) reporting post-marketing + * surveillance data and it's filtered to include only reports submitted by health professionals. + * The significance of a given target-ADR is estimated using a Likelihood Ratio Test (LRT) using + * all reports associated with the drugs with the same target. + */ export type AdverseEvent = { __typename?: 'AdverseEvent'; - /** Number of reports mentioning drug and adverse event */ - count: Scalars['Long']['output']; - /** Log-likelihood ratio */ + /** Number of reports mentioning drug and adverse event. */ + count: Scalars['Int']['output']; + /** Log-likelihood ratio. */ logLR: Scalars['Float']['output']; - /** 8 digit unique meddra identification number */ - meddraCode?: Maybe; - /** Meddra term on adverse event */ + /** 8 digit unique meddra identification number. */ + meddraCode: Scalars['String']['output']; + /** Meddra term on adverse event. */ name: Scalars['String']['output']; }; -/** Significant adverse events associated with drugs sharing the same pharmacological target. This dataset is based on the FDA's Adverse Event Reporting System (FAERS) reporting post-marketing surveillance data and it's filtered to include only reports submitted by health professionals. The significance of a given target-ADR is estimated using a Likelihood Ratio Test (LRT) using all reports associated with the drugs with the same target. */ -export type AdverseEvents = { - __typename?: 'AdverseEvents'; - /** Total significant adverse events */ - count: Scalars['Long']['output']; - /** LLR critical value to define significance */ - criticalValue: Scalars['Float']['output']; - id: Scalars['String']['output']; - /** Significant adverse event entries */ +/** + * The result of a paginated query, containing the total number of items, the items, and statistics + * about the query. + */ +export type AdverseEventPage = { + __typename?: 'AdverseEventPage'; + count: Scalars['Int']['output']; rows: Array; + stats: AdverseEventStats; +}; + +/** Statistics for a set of adverse events. */ +export type AdverseEventStats = { + __typename?: 'AdverseEventStats'; + /** LLR critical value to define significance. */ + criticalValue: Scalars['Float']['output']; }; -/** Aggregation type used to group the data */ -export enum AggregationTypeEnum { +/** Type of aggregation used to calculate the yearly evidence count. */ +export enum AggregationType { + /** Aggregates the evidence of each datasource separately. */ DatasourceId = 'datasourceId', + /** Aggregates all the evidence of all datasources into an overall score. */ Overall = 'overall' } -/** Allele frequency of the variant in different populations */ +/** Allele frequencies of the variant in different populations. */ export type AlleleFrequency = { __typename?: 'AlleleFrequency'; - /** Frequency of the allele in the population (ranging from 0 to 1) */ + /** Frequency of the alternate allele in the population (ranging from 0 to 1). */ alleleFrequency?: Maybe; - /** Name of the population where the allele frequency was measured */ + /** Name of the population where the allele frequency was measured. */ populationName?: Maybe; }; -/** Associated disease entity */ -export type AssociatedDisease = { - __typename?: 'AssociatedDisease'; - /** Association scores computed for every datasource (e.g., IMPC, ChEMBL, Gene2Phenotype) */ - datasourceScores: Array; - /** Association scores computed for every datatype (e.g., Genetic associations, Somatic, Literature) */ - datatypeScores: Array; - /** Associated disease entity */ - disease: Disease; - /** A measure of how novel the target–disease association is, calculated based on the accumulation of direct evidence over time */ - novelty?: Maybe; - /** Overall association score aggregated across all evidence types. A higher score indicates a stronger association between the target and the disease. Scores are normalized to a range of 0-1. */ - score: Scalars['Float']['output']; -}; - -/** Target-disease associations computed on-the-fly using configurable datasource weights and evidence filters. Returns associations with aggregated scores and evidence counts supporting the target-disease relationship. */ -export type AssociatedDiseases = { - __typename?: 'AssociatedDiseases'; - /** Total number of target-disease associations matching the query filters */ - count: Scalars['Long']['output']; - /** List of datasource settings with weights and propagation rules used to compute the associations */ - datasources: Array; - /** List of associated diseases with their association scores and evidence breakdowns */ - rows: Array; -}; - -/** Associated target entity */ -export type AssociatedTarget = { - __typename?: 'AssociatedTarget'; - /** Association scores computed for every datasource (e.g., IMPC, ChEMBL, Gene2Phenotype) */ - datasourceScores: Array; - /** Association scores computed for every datatype (e.g., Genetic associations, Somatic, Literature) */ - datatypeScores: Array; - /** A measure of how novel the target–disease association is, calculated based on the accumulation of evidence over time */ - novelty?: Maybe; - /** Overall association score aggregated across all evidence types. A higher score indicates a stronger association between the target and the disease. Scores are normalized to a range of 0-1. */ - score: Scalars['Float']['output']; - /** Associated target entity */ - target: Target; +/** Assays used in the study. */ +export type Assay = { + __typename?: 'Assay'; + /** Description of the assay. */ + description?: Maybe; + /** Indicates if the assay was positive or negative for the target. */ + isHit?: Maybe; + /** Short name of the assay. */ + shortName?: Maybe; }; -/** Target-disease associations computed on-the-fly using configurable datasource weights and evidence filters. Returns associations with aggregated scores and evidence counts supporting the target-disease relationship. */ -export type AssociatedTargets = { - __typename?: 'AssociatedTargets'; - /** Total number of target-disease associations matching the query filters */ - count: Scalars['Long']['output']; - /** List of datasource settings with weights and propagation rules used to compute the associations */ - datasources: Array; - /** List of associated targets with their association scores and evidence breakdowns */ - rows: Array; +/** Sort types. Contain the sort field and direction. */ +export type AssociationSort = { + /** The direction to sort in. */ + direction: SortDirection; + /** + * The key to sort by. Can either be `score` to use the overall association score (default) or + * a datasource id (e.g., `impc`). + */ + key?: Scalars['String']['input']; }; /** Association time series entry for a target-disease association. */ -export type AssociationTimeSeries = { - __typename?: 'AssociationTimeSeries'; - /** Aggregation type used to group the data */ - aggregationType: AggregationTypeEnum; - /** Value used for novelty aggregation */ - aggregationValue: Scalars['String']['output']; - /** Association score between the target and disease */ +export type AssociationTimeseries = { + __typename?: 'AssociationTimeseries'; + /** Type of aggregation used to calculate the yearly evidence count. */ + aggregationType: AggregationType; + /** + * Datasource identifier of the aggregation: eg. `gwas_credible_set` or `None` if the + * aggregation is by overall score. + */ + aggregationValue?: Maybe; + /** Association score based on evidence up until a given year. */ associationScore: Scalars['Float']['output']; - /** EFO ID of the disease */ + /** EFO ID of the association disease. */ diseaseId: Scalars['String']['output']; - /** Flag indicating whether the novelty calculation is based on direct evidence only or includes indirect evidence */ + /** + * Flag indicating whether the novelty calculation is based on direct evidence only or + * includes indirect evidence. + */ isDirect: Scalars['Boolean']['output']; - /** Novelty score indicating how novel the target-disease association is. */ + /** Novelty of the association at the given year. */ novelty?: Maybe; - /** Ensembl ID of the target gene */ + /** Ensembl ID of the association target. */ targetId: Scalars['String']['output']; - /** Year of the evidence item used for novelty calculation */ + /** Year up to and including which evidence is considered. */ year?: Maybe; - /** Yearly count of evidence items */ + /** + * Yearly count of evidence supporting the disease/target association (for a given + * datasource). + */ yearlyEvidenceCount?: Maybe; }; -/** Association time series results for a target-disease association. Provides a temporal view of the association, including the number of studies and variants over time. */ -export type AssociationTimeSeriesResults = { - __typename?: 'AssociationTimeSeriesResults'; - /** Total number of association time series results matching the query filters */ - count: Scalars['Long']['output']; - /** List of assocition time series entries */ - rows: Array; +/** The result of a paginated query, containing the total number of items and the items. */ +export type AssociationTimeseriesPage = { + __typename?: 'AssociationTimeseriesPage'; + count: Scalars['Int']['output']; + rows: Array; }; -export type BaselineExpression = { - __typename?: 'BaselineExpression'; - count: Scalars['Long']['output']; - rows: Array; +/** Attributes of the hallmark annotation. */ +export type Attributes = { + __typename?: 'Attributes'; + /** Description of the hallmark attribute. */ + description: Scalars['String']['output']; + /** Name of the hallmark attribute. */ + name: Scalars['String']['output']; + /** PubMed ID of the supporting literature for the hallmark attribute [bioregistry:pubmed]. */ + pmid?: Maybe; }; -export type BaselineExpressionRow = { - __typename?: 'BaselineExpressionRow'; - /** Cell type biosample entity */ +/** Aggregated expression data generated from RNA-seq and mass spectrometry proteomic data. */ +export type BaselineExpression = { + __typename?: 'BaselineExpression'; + /** Cell type biosample reported by study. */ celltypeBiosample?: Maybe; + /** Tissue or cell type reported by study. */ celltypeBiosampleFromSource?: Maybe; - /** Cell type biosample parent entity */ + /** Cell type biosample parent reported by study. */ celltypeBiosampleParent?: Maybe; + /** Origin of expression data. */ datasourceId: Scalars['String']['output']; + /** Type of expression data. */ datatypeId: Scalars['String']['output']; - distribution_score: Scalars['Float']['output']; + /** + * Proportion of biosamples, within the dataset, that display median expression above a + * threshold. + */ + distributionScore: Scalars['Float']['output']; + /** Maximum value of expression. */ max?: Maybe; + /** Median value of expression. */ median?: Maybe; + /** Minimum value of expression. */ min?: Maybe; + /** First quantile of expression. */ q1?: Maybe; + /** Third quantile of expression. */ q3?: Maybe; - qualityControls?: Maybe; - specificity_score?: Maybe; + /** Quality control flags or notes for baseline expression. */ + qualityControls: Array; + /** Measure of how specific expression is to a biosample. */ + specificityScore?: Maybe; + /** Target identifier from the source. */ targetFromSourceId?: Maybe; + /** Unique identifier for the target. */ targetId: Scalars['String']['output']; - /** Tissue biosample entity */ + /** Tissue biosample reported by study. */ tissueBiosample?: Maybe; + /** Cell type reported by study. */ tissueBiosampleFromSource?: Maybe; - /** Tissue biosample parent entity */ + /** Tissue biosample parent reported by study. */ tissueBiosampleParent?: Maybe; + /** Unit for the target expression. */ unit: Scalars['String']['output']; }; -/** Container for all biological model-related attributes */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type BaselineExpressionPage = { + __typename?: 'BaselineExpressionPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** Container for all biological model-related attributes. */ export type BiologicalModels = { __typename?: 'BiologicalModels'; - /** The specific allelic composition of the mouse model */ + /** The specific allelic composition of the mouse model. */ allelicComposition: Scalars['String']['output']; - /** The genetic background strain of the mouse model */ + /** The genetic background strain of the mouse model. */ geneticBackground: Scalars['String']['output']; - /** Unique identifier for the biological model [bioregistry:mgi] */ + /** Unique identifier for the biological model [bioregistry:mgi]. */ id?: Maybe; - /** References related to the mouse model [bioregistry:pubmed] */ - literature?: Maybe>; + /** References related to the mouse model [bioregistry:pubmed]. */ + literature: Array; }; -/** List of gene expression altering biomarkers */ export type BiomarkerGeneExpression = { __typename?: 'BiomarkerGeneExpression'; - /** Gene Ontology (GO) identifiers of regulation or background expression processes [bioregistry:go] */ - id?: Maybe; - /** Raw gene expression annotation from the source */ + id?: Maybe; + /** Raw gene expression annotation from the source. */ name?: Maybe; }; -/** Integration of biosample metadata about tissues or cell types derived from multiple ontologies including EFO, UBERON, CL, GO and others. */ +/** List of biomarkers. */ +export type Biomarkers = { + __typename?: 'Biomarkers'; + /** List of gene expression altering biomarkers. */ + geneExpression: Array; + /** List of genetic variation biomarkers. */ + geneticVariation: Array; +}; + +/** + * Integration of biosample metadata about tissues or cell types derived from multiple ontologies + * including EFO, UBERON, CL, GO and others. + */ export type Biosample = { __typename?: 'Biosample'; - /** List of ancestor biosample IDs in the ontology */ - ancestors?: Maybe>; - /** Unique identifier for the biosample */ + /** List of ancestor biosample IDs in the ontology. */ + ancestors: Array; + /** Unique identifier for the biosample. */ biosampleId: Scalars['String']['output']; - /** Name of the biosample */ + /** Name of the biosample. */ biosampleName: Scalars['String']['output']; - /** Direct child biosample IDs in the ontology */ - children?: Maybe>; - /** List of descendant biosample IDs in the ontology */ - descendants?: Maybe>; - /** Description of the biosample */ + /** Direct child biosample IDs in the ontology. */ + children: Array; + /** List of descendant biosample IDs in the ontology. */ + descendants: Array; + /** Description of the biosample. */ description?: Maybe; - /** Direct parent biosample IDs in the ontology */ - parents?: Maybe>; - /** List of synonymous names for the term */ - synonyms?: Maybe>; - /** Cross-reference IDs from other ontologies */ - xrefs?: Maybe>; -}; - -/** Cancer hallmarks associated with the target gene */ -export type CancerHallmark = { - __typename?: 'CancerHallmark'; - /** Description of the cancer hallmark */ + /** Direct parent biosample IDs in the ontology. */ + parents: Array; + /** List of synonymous names for the term. */ + synonyms: Array; + /** Cross-reference IDs from other ontologies. */ + xrefs: Array; +}; + +/** Cancer hallmarks associated with the target gene. */ +export type CancerHallmarks = { + __typename?: 'CancerHallmarks'; + /** Description of the cancer hallmark. */ description: Scalars['String']['output']; - /** Impact of the cancer hallmark on the target */ + /** Impact of the cancer hallmark on the target. */ impact?: Maybe; - /** Label associated with the cancer hallmark */ + /** Label associated with the cancer hallmark. */ label: Scalars['String']['output']; - /** PubMed ID of the supporting literature for the cancer hallmark [bioregistry:pubmed] */ - pmid: Scalars['Long']['output']; + /** PubMed ID of the supporting literature for the cancer hallmark [bioregistry:pubmed]. */ + pmid: Scalars['Int']['output']; }; -/** The Ensembl canonical transcript of the target gene */ +/** The Ensembl canonical transcript of the target gene. */ export type CanonicalTranscript = { __typename?: 'CanonicalTranscript'; - /** Chromosome location of the canonical transcript */ + /** Chromosome location of the canonical transcript. */ chromosome: Scalars['String']['output']; - /** Genomic end position of the canonical transcript */ - end: Scalars['Long']['output']; - /** The Ensembl transcript identifier for the canonical transcript */ + /** Genomic end position of the canonical transcript. */ + end: Scalars['Int']['output']; + /** The Ensembl transcript identifier for the canonical transcript. */ id: Scalars['String']['output']; - /** Genomic start position of the canonical transcript */ - start: Scalars['Long']['output']; - /** Strand orientation of the canonical transcript */ + /** Genomic start position of the canonical transcript. */ + start: Scalars['Int']['output']; + /** Strand orientation of the canonical transcript. */ strand: Strand; }; -/** Chemical probes related to the target. High-quality chemical probes are small molecules that can be used to modulate and study the function of proteins. */ +/** Entity category this similarity refers to (`Target`, `Disease` or `Drug`). */ +export enum Category { + /** The similarity refers to a `Disease` entity. */ + Disease = 'DISEASE', + /** The similarity refers to a `Drug` entity. */ + Drug = 'DRUG', + /** The similarity refers to a `Target` entity. */ + Target = 'TARGET' +} + +/** + * Chemical probes related to the target. High-quality chemical probes are small molecules that can + * be used to modulate and study the function of proteins. + */ export type ChemicalProbe = { __typename?: 'ChemicalProbe'; - /** Whether the chemical probe serves as a control */ + /** Whether the chemical probe serves as a control. */ control?: Maybe; + /** Probe identifier from the source, used to cross-reference drug information. */ drugFromSourceId?: Maybe; - /** Drug ID associated with the chemical probe */ + /** Drug ID associated with the chemical probe. */ drugId?: Maybe; - /** Unique identifier for the chemical probe */ + /** Unique identifier for the chemical probe. */ id: Scalars['String']['output']; - /** Indicates if the chemical probe is high quality */ + /** Indicates if the chemical probe is high quality. */ isHighQuality: Scalars['Boolean']['output']; - /** Mechanism of action of the chemical probe */ - mechanismOfAction?: Maybe>; - /** Origin of the chemical probe */ - origin?: Maybe>; - /** Score for chemical probes related to druggability */ + /** Mechanism of action of the chemical probe. */ + mechanismOfAction: Array; + /** Origin of the chemical probe. */ + origin: Array; + /** Score for chemical probes related to druggability. */ probesDrugsScore?: Maybe; - /** Score indicating chemical probe activity in cells */ + /** Score indicating chemical probe activity in cells. */ scoreInCells?: Maybe; - /** Score indicating chemical probe activity in organisms */ + /** Score indicating chemical probe activity in organisms. */ scoreInOrganisms?: Maybe; - /** Ensembl gene ID of the target for the chemical probe */ + /** Ensembl gene ID of the target for the chemical probe. */ targetFromSourceId: Scalars['String']['output']; - /** URLs linking to more information about the chemical probe */ - urls: Array; -}; - -/** URL information for chemical probe resources */ -export type ChemicalProbeUrl = { - __typename?: 'ChemicalProbeUrl'; - /** Nice name for the linked URL */ - niceName: Scalars['String']['output']; - /** URL providing details about the chemical probe */ - url?: Maybe; + /** URLs linking to more information about the chemical probe. */ + urls: Array; }; -/** Chromosome */ -export enum ChromosomeEnum { - /** Chromosome 1 */ +/** Chromosome type. */ +export enum Chromosome { Chr1 = 'chr1', - /** Chromosome 2 */ Chr2 = 'chr2', - /** Chromosome 3 */ Chr3 = 'chr3', - /** Chromosome 4 */ Chr4 = 'chr4', - /** Chromosome 5 */ Chr5 = 'chr5', - /** Chromosome 6 */ Chr6 = 'chr6', - /** Chromosome 7 */ Chr7 = 'chr7', - /** Chromosome 8 */ Chr8 = 'chr8', - /** Chromosome 9 */ Chr9 = 'chr9', - /** Chromosome 10 */ Chr10 = 'chr10', - /** Chromosome 11 */ Chr11 = 'chr11', - /** Chromosome 12 */ Chr12 = 'chr12', - /** Chromosome 13 */ Chr13 = 'chr13', - /** Chromosome 14 */ Chr14 = 'chr14', - /** Chromosome 15 */ Chr15 = 'chr15', - /** Chromosome 16 */ Chr16 = 'chr16', - /** Chromosome 17 */ Chr17 = 'chr17', - /** Chromosome 18 */ Chr18 = 'chr18', - /** Chromosome 19 */ Chr19 = 'chr19', - /** Chromosome 20 */ Chr20 = 'chr20', - /** Chromosome 21 */ Chr21 = 'chr21', - /** Chromosome 22 */ Chr22 = 'chr22', - /** Chromosome X */ - ChrX = 'chrX', - /** Chromosome Y */ - ChrY = 'chrY' + Chrmt = 'chrmt', + Chrx = 'chrx', + Chry = 'chry' } -export type ClinRepDrugListItem = { - __typename?: 'ClinRepDrugListItem'; - /** Drug in the report */ - drug?: Maybe; - /** Drug label in the report */ - drugFromSource?: Maybe; -}; - +/** Diseases associated with the clinical report. */ export type ClinicalDiseaseListItem = { __typename?: 'ClinicalDiseaseListItem'; - /** Disease in the report */ - disease?: Maybe; - /** Disease label in the report */ - diseaseFromSource?: Maybe; + /** Disease in the clinical report. */ + disease: Disease; + /** Disease name as reported in the source. */ + diseaseFromSource: Scalars['String']['output']; }; -export type ClinicalIndicationFromDisease = { - __typename?: 'ClinicalIndicationFromDisease'; +/** A drug-disease pair as reported by clinical trial records. */ +export type ClinicalIndication = { + __typename?: 'ClinicalIndication'; clinicalReports: Array; - drug?: Maybe; - /** Hash of drugId, diseaseId. */ + /** The disease entity related to this clinical indication. */ + disease: Disease; + /** The molecule entity related to this clinical indication. */ + drug: Drug; + /** Hash of drugId and diseaseId. */ id: Scalars['String']['output']; /** Maximum Clinical Development Status for the association. */ maxClinicalStage: Scalars['String']['output']; }; -export type ClinicalIndicationFromDrug = { - __typename?: 'ClinicalIndicationFromDrug'; - clinicalReports: Array; - disease?: Maybe; - /** Hash of drugId, diseaseId. */ - id: Scalars['String']['output']; - /** Maximum Clinical Development Status for the association. */ - maxClinicalStage: Scalars['String']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type ClinicalIndicationPage = { + __typename?: 'ClinicalIndicationPage'; + count: Scalars['Int']['output']; + rows: Array; }; +/** A clinical record (e.g. trial, drug label) reporting on drugs and diseases. */ export type ClinicalReport = { __typename?: 'ClinicalReport'; - /** Harmonised clinical stage */ - clinicalStage: Scalars['String']['output']; - /** List of countries where the clinical report was conducted/reported */ + /** Clinical stage of the report. */ + clinicalStage: ClinicalStage; + /** Countries associated with the clinical report. */ countries: Array; /** Diseases associated with the clinical report. */ diseases: Array; - /** List of drugs mentioned in the report */ - drugs: Array; - /** Report ID */ + /** Drugs associated with the clinical report. */ + drugs: Array; + /** + * Kind of evidence the report describes: INDICATION for a drug/disease claim, SAFETY for a + * drug warning. + */ + evidenceType?: Maybe; + /** Unique identifier for the clinical report. */ id: Scalars['String']['output']; - /** Nature of the record the report originates from (e.g. CLINICAL_TRIAL, DRUG_LABEL, REGULATORY_AGENCY, CURATED_RESOURCE). */ - origin: Scalars['String']['output']; - /** Clinical phase reported at source */ + /** Nature of the record the report originates from. */ + origin: Origin; + /** Clinical phase as reported in the source. */ phaseFromSource?: Maybe; - /** Resource or organisation that distributes the data fetched from the primary source (e.g. AACT, ChEMBL, EMA, PMDA, TTD). */ - provider: Scalars['String']['output']; - /** Flags related to report concerns */ + /** Resource or organisation that distributes the data fetched from the primary source. */ + provider: Provider; + /** Quality control flags or notes for the clinical report. */ qualityControls: Array; - /** Side effects associated with the clinical report. */ - sideEffects: Array; - /** Source of the clinical report (e.g., AACT) */ + /** Side effects or adverse events associated with the clinical report. */ + sideEffects: Array; + /** Source database or registry from which the clinical report was obtained. */ source: Scalars['String']['output']; - /** Title of the clinical report */ + /** Title of the clinical report. */ title?: Maybe; - /** Description of the trial associated with the clinical report */ + /** Brief description of the clinical trial. */ trialDescription?: Maybe; - /** List of PMIDs linked to the trial associated with the clinical report */ + /** Literature references associated with the clinical trial. */ trialLiterature: Array; - /** Number of arms in the trial associated with the clinical report */ + /** Number of arms in the clinical trial. */ trialNumberOfArms?: Maybe; - /** Official title of the clinical trial as registered */ + /** Official title of the clinical trial as registered. */ trialOfficialTitle?: Maybe; - /** Overall status of the trial associated with the clinical report */ + /** Overall status of the clinical trial (e.g. Completed, Terminated). */ trialOverallStatus?: Maybe; - /** Phase of the clinical trial */ + /** Phase of the clinical trial. */ trialPhase?: Maybe; - /** Purpose for the intervention of the clinical trial associated with the clinical report */ + /** Primary purpose of the clinical trial (e.g. Treatment, Prevention). */ trialPrimaryPurpose?: Maybe; - /** Information on the entity or individual initiating the study. */ - trialSponsor?: Maybe; - /** Start date of the trial associated with the clinical report */ - trialStartDate?: Maybe; - /** Assigned categories based on trialWhyStopped */ + /** Lead sponsor associated with the clinical trial. */ + trialSponsor: TrialSponsor; + /** Start date of the clinical trial. */ + trialStartDate?: Maybe; + /** Categories describing reasons why the trial was stopped. */ trialStopReasonCategories: Array; - /** Type of clinical study (e.g. Interventional, Observational) */ - trialStudyType?: Maybe; - /** Free-text reason for early stoppage of the trial associated with the clinical report */ + /** Type of clinical study (e.g. Interventional, Observational). */ + trialStudyType?: Maybe; + /** Reason provided for stopping the clinical trial. */ trialWhyStopped?: Maybe; - /** Type of clinical report. List of possible values: CURATED_RESOURCE, DRUG_LABEL, CLINICAL_TRIAL and REGULATORY_AGENCY. */ - type?: Maybe; - /** URL linking to the source record */ + /** URL linking to the source record. */ url?: Maybe; - /** The year to which the clinical report refers. */ + /** Year the report was registered or published. */ year?: Maybe; }; -export enum ClinicalReportType { - /** Clinical report derived from clinical trial records. */ - ClinicalTrial = 'CLINICAL_TRIAL', - /** Clinical report curated from a scientific resource. */ - CuratedResource = 'CURATED_RESOURCE', - /** Clinical report extracted from drug labels. */ - DrugLabel = 'DRUG_LABEL', - /** Clinical report issued by regulatory agencies. */ - RegulatoryAgency = 'REGULATORY_AGENCY' -} +export type ClinicalReportDrugListItem = { + __typename?: 'ClinicalReportDrugListItem'; + /** Drug name as reported in the source. */ + drugFromSource: Scalars['String']['output']; +}; -export type ClinicalTargetFromTarget = { - __typename?: 'ClinicalTargetFromTarget'; - /** Reports related with the drug in question and sorted by clinical status. */ - clinicalReports: Array; - /** Diseases associated with the clinical reports linked to the drug in question. */ - diseases: Array; - /** Drug or clinical candidate entity */ - drug?: Maybe; - /** Hash between drugId and targetId. */ - id: Scalars['String']['output']; - maxClinicalStage: Scalars['String']['output']; +/** Side effects or adverse events associated with the clinical report. */ +export type ClinicalSideEffectListItem = { + __typename?: 'ClinicalSideEffectListItem'; + /** Disease for the reported side effect. */ + disease?: Maybe; + /** Side effect disease name as reported in the source. */ + diseaseFromSource?: Maybe; }; -/** GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising pairs as well as the method and statistics used to estimate the colocalisation. */ +/** Clinical stage of the report. */ +export enum ClinicalStage { + /** The drog is approved for general use. */ + Approval = 'APPROVAL', + /** Early phase 1. */ + EarlyPhase_1 = 'EARLY_PHASE_1', + /** Ind. */ + Ind = 'IND', + /** Phase 1. */ + Phase_1 = 'PHASE_1', + /** Phase 1/2. */ + Phase_1_2 = 'PHASE_1_2', + /** Phase 2. */ + Phase_2 = 'PHASE_2', + /** Phase 2/3. */ + Phase_2_3 = 'PHASE_2_3', + /** Phase 3. */ + Phase_3 = 'PHASE_3', + /** Phase 4. */ + Phase_4 = 'PHASE_4', + /** Preapproval. */ + Preapproval = 'PREAPPROVAL', + /** Preclinical stage. */ + Preclinical = 'PRECLINICAL', + /** Unknown phase. */ + Unknown = 'UNKNOWN', + /** The drug has been Withdrawn. */ + Withdrawal = 'WITHDRAWAL' +} + +/** + * GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising + * pairs as well as the method and statistics used to estimate the colocalisation. + */ export type Colocalisation = { __typename?: 'Colocalisation'; - /** Average sign of the beta ratio between colocalised variants */ - betaRatioSignAverage?: Maybe; - /** Chromosome where the colocalisation occurs */ - chromosome: Scalars['String']['output']; - /** Colocalisation posterior probability (CLPP) score estimating the probability of shared causal variants. Used in eCAVIAR method. */ - clpp?: Maybe; - /** Method used to estimate colocalisation (e.g., coloc, eCAVIAR) */ + /** Average sign of the beta ratio between colocalised variants. */ + betaRatioSignAverage: Scalars['Float']['output']; + /** Chromosome where the colocalisation occurs. */ + chromosome: Chromosome; + /** + * Colocalisation posterior probability (CLPP) score estimating the probability of shared + * causal variants. Used in eCAVIAR method. + */ + clpp: Scalars['Float']['output']; + /** Method used to estimate colocalisation (e.g., coloc, eCAVIAR). */ colocalisationMethod: Scalars['String']['output']; - /** Posterior probability that both traits are associated, but with different causal variants (H3). Used in coloc method. */ - h3?: Maybe; - /** Posterior probability that both traits are associated and share a causal variant (H4). Used in coloc method. */ - h4?: Maybe; - /** Number of variants intersecting between two overlapping study-loci */ - numberColocalisingVariants: Scalars['Long']['output']; - /** The other credible set (study-locus) in the colocalisation pair */ + /** + * Posterior probability that both traits are associated, but with different causal variants + * (H3). Used in coloc method. + */ + h3: Scalars['Float']['output']; + /** + * Posterior probability that both traits are associated and share a causal variant (H4). Used + * in coloc method. + */ + h4: Scalars['Float']['output']; + /** Number of variants intersecting between two overlapping study-loci. */ + numberColocalisingVariants: Scalars['Int']['output']; + /** The other credible set (study-locus) in the colocalisation pair. */ otherStudyLocus?: Maybe; - /** Type of the right-side study (e.g., gwas, eqtl, pqtl) */ - rightStudyType: Scalars['String']['output']; + /** The other credible set (study-locus) in the colocalisation pair. */ + otherStudyLocusId: Scalars['String']['output']; + /** Type of the right-side study (e.g., gwas, eqtl, pqtl). */ + rightStudyType: StudyType; + /** Credible set (study-locus) on the left side of the colocalisation pair. */ studyLocusId: Scalars['String']['output']; }; -/** GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising pairs as well as the method and statistics used to estimate the colocalisation. */ -export type Colocalisations = { - __typename?: 'Colocalisations'; - /** Total number of colocalisation results matching the query filters */ - count: Scalars['Long']['output']; - id: Scalars['String']['output']; - /** List of colocalisation results between study-loci pairs */ +/** Filter for colocalisations. */ +export type ColocalisationFilter = { + /** Keep colocalisations whose study type is one of these. */ + studyTypes?: Array; +}; + +/** The result of a paginated query, containing the total number of items and the items. */ +export type ColocalisationPage = { + __typename?: 'ColocalisationPage'; + count: Scalars['Int']['output']; rows: Array; }; -/** Constraint scores for the target gene from GnomAD. Indicates gene intolerance to loss-of-function mutations. */ +/** + * Constraint scores for the target gene from GnomAD. Indicates gene intolerance to + * loss-of-function mutations. + */ export type Constraint = { __typename?: 'Constraint'; - /** Type of constraint applied to the target */ + /** Type of constraint applied to the target. */ constraintType: Scalars['String']['output']; - /** Expected constraint score */ + /** Expected constraint score. */ exp?: Maybe; - /** Observed constraint score */ - obs?: Maybe; - /** Observed/Expected (OE) constraint score */ + /** Observed constraint score. */ + obs?: Maybe; + /** Observed/Expected (OE) constraint score. */ oe?: Maybe; - /** Lower bound of the OE constraint score */ + /** Lower bound of the OE constraint score. */ oeLower?: Maybe; - /** Upper bound of the OE constraint score */ + /** Upper bound of the OE constraint score. */ oeUpper?: Maybe; - /** Constraint score indicating gene intolerance */ + /** Constraint score indicating gene intolerance. */ score?: Maybe; - /** Upper bin classification going from more constrained to less constrained */ - upperBin?: Maybe; - /** Interpretable classification of constraint based on 6 bins. [GnomAD labels: 0: `very high`, 1: `high`, 2: `medium`, 3: `low`, 4: `very low`, 5: `very low`] */ - upperBin6?: Maybe; - /** Upper rank classification for every coding gene assessed by GnomAD going from more constrained to less constrained */ - upperRank?: Maybe; -}; - -/** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set (locus) as well as the fine-mapping method and derived statistics. */ + /** Upper bin classification going from more constrained to less constrained. */ + upperBin?: Maybe; + /** + * Interpretable classification of constraint based on 6 bins. [GnomAD labels: 0: `very high`, + * 1: `high`, 2: `medium`, 3: `low`, 4: `very low`, 5: `very low`]. + */ + upperBin6?: Maybe; + /** + * Upper rank classification for every coding gene assessed by GnomAD going from more + * constrained to less constrained. + */ + upperRank?: Maybe; +}; + +/** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set (locus) as well as the fine-mapping method and derived statistics. + */ export type CredibleSet = { __typename?: 'CredibleSet'; - /** Beta coefficient of the lead variant */ + /** Beta coefficient of the lead variant. */ beta?: Maybe; - /** Chromosome which the credible set is located */ - chromosome: Scalars['String']['output']; - /** GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising pairs as well as the method and statistics used to estimate the colocalisation. */ - colocalisation: Colocalisations; - /** Description of how this credible set was derived in terms of data and fine-mapping method */ - confidence?: Maybe; - /** Integer label for the order of credible sets from study-region */ + /** Chromosome which the credible set is located. */ + chromosome: Chromosome; + /** + * GWAS-GWAS and GWAS-molQTL credible set colocalisation results. Dataset includes colocalising + * pairs as well as the method and statistics used to estimate the colocalisation. + */ + colocalisation: ColocalisationPage; + /** Description of how this credible set was derived in terms of data and fine-mapping method. */ + confidence: Scalars['String']['output']; + /** Integer label for the order of credible sets from study-region. */ credibleSetIndex?: Maybe; - /** Log10 Bayes factor for the entire credible set */ + /** Log10 Bayes factor for the entire credible set. */ credibleSetlog10BF?: Maybe; - /** Allele frequency of the lead variant from the GWAS */ + /** Allele frequency of the lead variant from the GWAS. */ effectAlleleFrequencyFromSource?: Maybe; - /** Method used for fine-mapping of credible set */ - finemappingMethod?: Maybe; - /** Boolean for whether this credible set is a trans-pQTL or not */ + /** Method used for fine-mapping of credible set. */ + finemappingMethod: Scalars['String']['output']; + /** Boolean for whether this credible set is a trans-pQTL or not. */ isTransQtl?: Maybe; /** Predictions from Locus2gene gene assignment model. */ - l2GPredictions: L2GPredictions; - /** Array of structs which denote the variants in LD with the credible set lead variant */ - ldSet?: Maybe>; - /** Locus information for all variants in the credible set */ - locus: Loci; - /** End position of the region that was fine-mapped for this credible set */ + l2GPredictions: L2GPredictionPage; + /** Array of structs which denote the variants in LD with the credible set lead variant. */ + ldSet: Array; + /** Locus information for all variants in the credible set. */ + locus: LocusPage; + /** End position of the region that was fine-mapped for this credible set. */ locusEnd?: Maybe; - /** Start position of the region that was fine-mapped for this credible set */ + /** Start position of the region that was fine-mapped for this credible set. */ locusStart?: Maybe; - /** Exponent value of the lead variant P-value */ + /** Exponent value of the lead variant P-value. */ pValueExponent: Scalars['Int']['output']; - /** Mantissa value of the lead variant P-value */ + /** Mantissa value of the lead variant P-value. */ pValueMantissa: Scalars['Float']['output']; - /** Position of the lead variant for the credible set (GRCh38) */ + /** Position of the lead variant for the credible set (`GRCh38`). */ position: Scalars['Int']['output']; - /** Mean R-squared linkage disequilibrium for variants in the credible set */ + /** Mean R-squared linkage disequilibrium for variants in the credible set. */ purityMeanR2?: Maybe; - /** Minimum R-squared linkage disequilibrium for variants in the credible set */ + /** Minimum R-squared linkage disequilibrium for variants in the credible set. */ purityMinR2?: Maybe; - /** Ensembl identifier of the gene representing a specific gene whose molecular is being analysed in molQTL study */ + /** + * Ensembl identifier of the gene representing a specific gene whose molecular is being + * analysed in molQTL study. + */ qtlGeneId?: Maybe; - /** Quality control flags for this credible set */ - qualityControls?: Maybe>; - /** Start and end positions of the region used for fine-mapping */ + /** Quality control flags for this credible set. */ + qualityControls: Array; + /** Start and end positions of the region used for fine-mapping. */ region?: Maybe; - /** Sample size of the study which this credible set is derived */ + /** Sample size of the study which this credible set is derived. */ sampleSize?: Maybe; - /** Standard error of the lead variant */ + /** Standard error of the lead variant. */ standardError?: Maybe; - /** GWAS or molQTL study in which the credible set was identified */ + /** GWAS or molQTL study in which the credible set was identified. */ study?: Maybe; - /** Identifier of the GWAS or molQTL study in which the credible set was identified */ + /** Identifier of the GWAS or molQTL study in which the credible set was identified. */ studyId: Scalars['String']['output']; - /** Identifier of the credible set (StudyLocus) */ + /** Identifier of the credible set (`StudyLocus`). */ studyLocusId: Scalars['String']['output']; /** Descriptor for whether the credible set is derived from GWAS or molecular QTL. */ - studyType?: Maybe; + studyType: StudyType; /** [Deprecated] */ subStudyDescription?: Maybe; /** The lead variant for the credible set, by posterior probability. */ variant?: Maybe; - /** Z-score of the lead variant from the GWAS */ + /** Z-score of the lead variant from the GWAS. */ zScore?: Maybe; }; -/** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set (locus) as well as the fine-mapping method and derived statistics. */ +/** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set (locus) as well as the fine-mapping method and derived statistics. + */ export type CredibleSetColocalisationArgs = { - page?: InputMaybe; - studyTypes?: InputMaybe>; + filter?: ColocalisationFilter; + page?: Page; }; -/** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set (locus) as well as the fine-mapping method and derived statistics. */ +/** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set (locus) as well as the fine-mapping method and derived statistics. + */ export type CredibleSetL2GPredictionsArgs = { - page?: InputMaybe; + page?: Page; }; -/** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set (locus) as well as the fine-mapping method and derived statistics. */ +/** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set (locus) as well as the fine-mapping method and derived statistics. + */ export type CredibleSetLocusArgs = { - page?: InputMaybe; - variantIds?: InputMaybe>; + filter?: InputMaybe; + page?: Page; }; -/** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set as well as the fine-mapping method and statistics used to estimate the credible set. */ -export type CredibleSets = { - __typename?: 'CredibleSets'; - /** Total number of credible sets matching the query filters */ - count: Scalars['Long']['output']; - id: Scalars['String']['output']; - /** List of credible set entries with their associated statistics and fine-mapping information */ - rows: Array; +/** Filter for credible sets. */ +export type CredibleSetFilter = { + /** Keep credible sets whose study type is one of these. */ + studyTypes?: InputMaybe>; }; -/** Data release version information */ -export type DataVersion = { - __typename?: 'DataVersion'; - /** Iteration number of the Platform data release within the year-month period */ - iteration?: Maybe; - /** Month of the Platform data release */ - month: Scalars['String']['output']; - /** Year of the Platform data release */ - year: Scalars['String']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type CredibleSetPage = { + __typename?: 'CredibleSetPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Data source information for protein coding coordinates */ -export type Datasource = { - __typename?: 'Datasource'; - /** Count of evidence from this data source */ - datasourceCount: Scalars['Int']['output']; - /** Identifier of the data source */ - datasourceId: Scalars['String']['output']; - /** Human-readable name of the data source */ - datasourceNiceName: Scalars['String']['output']; -}; +/** Represents a datasource for association scoring. */ +export enum Datasource { + /** + * Expert-curated cancer biomarkers of drug sensitivity, resistance, and toxicity from Cancer + * Genome Interpreter, by cancer type. + * See . + */ + CancerBiomarkers = 'cancer_biomarkers', + /** + * Cancer Gene Census (CGC, part of COSMIC): curated genes with mutations causally implicated + * in cancer, aggregated per target-disease. + * See . + */ + CancerGeneCensus = 'cancer_gene_census', + /** + * ClinGen gene-disease validity curation: evaluates the strength of evidence for a gene + * causing a disease, classified via a semi-quantitative framework. + * See . + */ + Clingen = 'clingen', + /** + * Clinical evidence linking a target/disease via a drug that targets the gene product and is + * indicated for the disease (approved or in development); inferred from clinical reports + + * drug MoA data. + * See . + */ + ClinicalPrecedence = 'clinical_precedence', + /** + * Cancer target dependencies from whole-genome CRISPR-Cas9 fitness screens in cell lines + * (Project Score, Sanger), mapped to tumours; targets scoring ≥ 36.0. + * See . + */ + Crispr = 'crispr', + /** + * Target-disease evidence from genome-wide CRISPRi/a/KO functional genomics screens in human + * brain cell types (CRISPRbrain), linking cell types to diseases. + * See . + */ + CrisprScreen = 'crispr_screen', + /** + * Target-disease co-occurrences mined from Europe PMC literature via deep-learning NER, + * aggregated per publication with a confidence assessment. + * See . + */ + Europepmc = 'europepmc', + /** + * Germline variant-phenotype relationships from ClinVar (NIH archive), the germline subset; + * each evidence captures a single RCV record. + * See . + */ + Eva = 'eva', + /** + * Somatic variant-phenotype relationships from ClinVar (NIH archive), the somatic subset; each + * evidence captures a single RCV record. + * See . + */ + EvaSomatic = 'eva_somatic', + /** + * Target-disease evidence from differentially expressed genes (disease vs control) in EMBL-EBI + * Expression Atlas; each study contrast is one evidence. + * See . + */ + ExpressionAtlas = 'expression_atlas', + /** + * Gene-disease relationships from Gene2Phenotype (G2P), literature-curated by expert clinical + * geneticist panels. + * See . + */ + Gene2phenotype = 'gene2phenotype', + /** + * Gene–phenotype relationships observed in gene-level association tests using rare variant + * collapsing analyses. + * See . + */ + GeneBurden = 'gene_burden', + /** + * Gene-disease relationships from Genomics England PanelApp expert-reviewed gene panels. + * See . + */ + GenomicsEngland = 'genomics_england', + /** + * Target-disease relationships from GWAS-significant signals, fine-mapped, colocalised against + * molQTL, and scored by the Locus-to-Gene (L2G) ML method; evidence is any credible set with + * L2G > 0.05. + * See . + */ + GwasCredibleSets = 'gwas_credible_sets', + /** + * Target-disease evidence from mouse knockout genotype-phenotype associations (IMPC), scored + * by human-mouse phenotypic similarity (PhenoDigm). + * See . + */ + Impc = 'impc', + /** + * IntOGen consensus cancer driver genes from harmonised tumour sequencing (PCAWG and others); + * each evidence is a significant driver in one cohort. + * See . + */ + Intogen = 'intogen', + /** + * Orphanet gene-disease associations for rare disorders of genetic origin, with relationship + * classification, mutation type, and supporting references. + * See . + */ + Orphanet = 'orphanet', + /** + * Reactome-curated reaction pathways affected by disease, linking target to disease via + * protein-coding mutation or altered expression. + * See . + */ + Reactome = 'reactome', + /** + * UniProt-curated target-disease relationships from publications supporting a protein's + * involvement in disease, aggregated per evidence. + * See . + */ + UniprotLiterature = 'uniprot_literature', + /** + * UniProt-curated variants known to alter protein function in disease, aggregated from + * supporting publications. + * See . + */ + UniprotVariants = 'uniprot_variants' +} -/** Datasource settings configuration used to compute target-disease associations. Allows customization of weights, ontology propagation, and required evidence for each datasource when calculating association scores. Weights must be between 0 and 1, and can control ontology propagation and evidence requirements. */ -export type DatasourceSettings = { - __typename?: 'DatasourceSettings'; - /** Datasource identifier */ - id: Scalars['String']['output']; - /** Whether evidence from this datasource is propagated through the ontology */ - propagate: Scalars['Boolean']['output']; - /** Whether evidence from this datasource is required to compute association scores */ - required: Scalars['Boolean']['output']; - /** Weight assigned to the datasource when computing association scores */ - weight: Scalars['Float']['output']; +/** Represents the policy for a datasource. */ +export type DatasourcePolicy = { + /** Whether the datasource is required for the association to be considered valid. */ + required: Scalars['Boolean']['input']; + /** The weight of the datasource in association scoring. Range is [0.0, 1.0]. */ + weight: Scalars['Float']['input']; }; -/** Input type for datasource settings configuration. Allows customization of how individual datasources contribute to target-disease association score calculations. Weights must be between 0 and 1, and can control ontology propagation and evidence requirements. */ -export type DatasourceSettingsInput = { - /** Datasource identifier */ - id: Scalars['String']['input']; - /** Whether evidence from this datasource is propagated through the ontology */ - propagate: Scalars['Boolean']['input']; - /** Whether evidence from this datasource is required to compute association scores */ - required?: InputMaybe; - /** Weight assigned to the datasource. Should be between 0 and 1 */ - weight: Scalars['Float']['input']; +/** Policy override for a datasource. */ +export type DatasourcePolicyOverride = { + /** The datasource to override the policy for. */ + id: Datasource; + /** The policy to override with. */ + policy: DatasourcePolicy; }; -/** Cross-reference information for a variant in different databases */ +/** Cross-references for the variant in different databases. */ export type DbXref = { __typename?: 'DbXref'; - /** Identifier of the variant in the given database */ + /** Identifier of the variant in the given database. */ id?: Maybe; - /** Name of the database the variant is referenced in */ + /** Name of the database the variant is referenced in. */ source?: Maybe; }; -/** Essentiality measurements extracted from DepMap, stratified by tissue or anatomical units. Gene effects below -1 can be considered dependencies. */ export type DepMapEssentiality = { __typename?: 'DepMapEssentiality'; - /** List of CRISPR screening experiments supporting the essentiality assessment */ + /** List of CRISPR screening experiments supporting the essentiality assessment. */ screens: Array; - /** Identifier of the tissue from where the cells were sampled for assay [bioregistry:uberon] */ + /** Identifier of the tissue from where the cells were sampled for assay [bioregistry:uberon]. */ tissueId?: Maybe; - /** Name of the tissue from where the cells were sampled for assay */ + /** Name of the tissue from where the cells were sampled for assay. */ tissueName?: Maybe; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type DepMapEssentialityPage = { + __typename?: 'DepMapEssentialityPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type Disease = { __typename?: 'Disease'; - /** Ancestor disease nodes in the EFO ontology up to the top-level therapeutic area */ + /** List of all ancestral disease terms. */ ancestors: Array; - /** Target–disease associations computed on the fly with configurable datasource weights and filters */ - associatedTargets: AssociatedTargets; - /** Association time series */ - associationTimeSeries: AssociationTimeSeriesResults; - /** Direct child disease nodes in the ontology */ + /** + * Disease-target associations computed on the fly with configurable datasource weights and + * filters. + */ + associatedTargets: TargetAssociationPage; + /** Association time series. */ + associationTimeSeries: AssociationTimeseriesPage; + /** Direct child terms in the disease ontology. */ children: Array; - /** Cross-references to external disease ontologies */ + /** Cross-references in other disease ontologies. */ dbXRefs: Array; - /** Descendant disease nodes in the EFO ontology below this term */ + /** List of all descendant terms. */ descendants: Array; - /** Short description of the disease or phenotype */ + /** Description of the disease. */ description?: Maybe; - /** EFO terms for direct anatomical locations */ - directLocationIds?: Maybe>; - /** Diseases mapped to direct anatomical locations */ - directLocations: Array; + /** EFO terms for direct anatomical locations. */ + directLocationIds: Array; /** Clinical indications for this disease as reported by clinical trial records. */ - drugAndClinicalCandidates: ClinicalIndicationsFromDiseaseImp; - /** Target–disease evidence items supporting associations for this disease */ - evidences: Evidences; - /** Open Targets disease identifier [bioregistry:efo] */ + drugAndClinicalCandidates: ClinicalIndicationPage; + evidences: EvidencePage; + /** Open Targets disease identifier [bioregistry:efo]. */ id: Scalars['String']['output']; - /** EFO terms for indirect anatomical locations (propagated) */ - indirectLocationIds?: Maybe>; - /** Diseases mapped via indirect (propagated) anatomical locations */ - indirectLocations: Array; + /** EFO terms for indirect anatomical locations (propagated). */ + indirectLocationIds: Array; + /** List of studies associated with the disease and its descendants. */ + indirectStudyIds: Array; + /** Boolean column indicating if a disease is root of the ontology tree, a therapeutic area. */ isTherapeuticArea: Scalars['Boolean']['output']; - /** Publications that mention this disease, alone or alongside other entities */ - literatureOcurrences: Publications; - /** Preferred disease or phenotype label */ + /** + * Return the list of publications that mention the main entity, alone or in combination with + * other entities. + */ + literatureOcurrences: PublicationPage; + /** Name of the disease. */ name: Scalars['String']['output']; - /** Obsoleted ontology terms replaced by this term */ + /** List of obsoleted terms. */ obsoleteTerms: Array; - /** Open Targets (OTAR) projects linked to this disease. Data only available in Partner Platform Preview (PPP) */ - otarProjects: Array; - /** Immediate parent disease nodes in the ontology */ + /** Direct parent terms in the disease ontology. */ parents: Array; - /** Human Phenotype Ontology (HPO) annotations linked to this disease as clinical signs or symptoms */ - phenotypes: DiseaseHpOs; - /** All ancestor diseases in the ontology from this term up to the top-level therapeutic area */ - resolvedAncestors: Array; - /** Semantically similar diseases based on a PubMed word embedding model */ - similarEntities: Array; - /** Synonymous disease or phenotype labels */ - synonyms?: Maybe>; - /** Ancestor therapeutic area nodes the disease or phenotype term belongs in the EFO ontology */ - therapeuticAreas: Array; + /** + * Clinical signs and symptoms observed in diseases or phenotypes. Signs and symptoms are + * integrated from multiple sources including EFO, MONDO and HPO. + */ + phenotypes: DiseasePhenotypePage; + /** Semantically similar diseases based on a PubMed word embedding model. */ + similarEntities: SimilarEntityPage; + /** List of studies associated with the disease. */ + studyIds: Array; + /** List of synonyms for the disease. */ + synonyms: Array; + /** List of major therapeutic areas the disease belongs to. */ + therapeuticAreas: Array; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseaseAssociatedTargetsArgs = { BFilter?: InputMaybe; - Bs?: InputMaybe>; - datasources?: InputMaybe>; - enableIndirect?: InputMaybe; - facetFilters?: InputMaybe>; - orderByScore?: InputMaybe; - page?: InputMaybe; + Bs?: Array; + datasourcePolicyOverrides?: Array; + facetFilters?: Array; + page?: Page; + sort?: AssociationSort; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseaseAssociationTimeSeriesArgs = { - aggregationTypes?: InputMaybe>; + aggregationTypes?: InputMaybe>; endYear?: InputMaybe; ensemblId: Scalars['String']['input']; isDirect: Scalars['Boolean']['input']; - page?: InputMaybe; + page?: Page; startYear?: InputMaybe; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ +export type DiseaseDrugAndClinicalCandidatesArgs = { + page?: Page; +}; + + +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseaseEvidencesArgs = { - cursor?: InputMaybe; - datasourceIds?: InputMaybe>; - enableIndirect?: InputMaybe; + datasourceIds?: Array; ensemblIds: Array; - size?: InputMaybe; + page?: Page; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseaseLiteratureOcurrencesArgs = { additionalIds?: InputMaybe>; - cursor?: InputMaybe; endMonth?: InputMaybe; endYear?: InputMaybe; + page?: Page; startMonth?: InputMaybe; startYear?: InputMaybe; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseasePhenotypesArgs = { - page?: InputMaybe; + page?: Page; }; -/** Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood as any disease, phenotype, biological process or measurement that might have any type of causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) (slim version) is used as scaffold for the disease or phenotype entity. */ +/** + * Core annotation for diseases or phenotypes. A disease or phenotype in the Platform is understood + * as any disease, phenotype, biological process or measurement that might have any type of + * causality relationship with a human target. The EMBL-EBI Experimental Factor Ontology (EFO) + * (slim version) is used as scaffold for the disease or phenotype entity. + */ export type DiseaseSimilarEntitiesArgs = { additionalIds?: InputMaybe>; entityNames?: InputMaybe>; - size?: InputMaybe; + page?: Page; threshold?: InputMaybe; }; -/** Cancer cell lines used to generate evidence */ +/** A scored association between a disease and a target or vice versa. */ +export type DiseaseAssociation = { + __typename?: 'DiseaseAssociation'; + /** Association scores computed for every datasource (e.g., IMPC, ChEMBL, Gene2Phenotype). */ + datasourceScores: Array; + /** Associated disease entity. */ + disease?: Maybe; + /** + * Overall association score aggregated across all evidence types. A higher score indicates a + * stronger association between target and disease. Scores are normalized to a range of 0-1. + */ + score: Scalars['Float']['output']; +}; + +/** The result of a paginated query, containing the total number of items and the items. */ +export type DiseaseAssociationPage = { + __typename?: 'DiseaseAssociationPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** Cancer cell lines used to generate evidence. */ export type DiseaseCellLine = { __typename?: 'DiseaseCellLine'; - /** Cell type identifier in cell ontology or in cell model database */ + /** Cell type identifier in cell ontology or in cell model database. */ id?: Maybe; - /** Name of the cell model */ + /** Name of the cell model. */ name?: Maybe; - /** Name of the tissue from which the cells were sampled */ + /** Name of the tissue from which the cells were sampled. */ tissue?: Maybe; - /** Anatomical identifier of the sampled organ/tissue */ + /** Anatomical identifier of the sampled organ/tissue [bioregistry:uberon]. */ tissueId?: Maybe; }; -/** Disease and phenotypes annotations */ -export type DiseaseHpo = { - __typename?: 'DiseaseHPO'; - /** List of phenotype annotations. */ - evidence: Array; - /** Disease Entity */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type DiseasePage = { + __typename?: 'DiseasePage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** + * Clinical signs and symptoms observed in diseases or phenotypes. Signs and symptoms are + * integrated from multiple sources including EFO, MONDO and HPO. + */ +export type DiseasePhenotype = { + __typename?: 'DiseasePhenotype'; + /** + * A container for all evidence-related attributes supporting the disease-phenotype + * association. + */ + evidence: Array; + /** Resolved EFO term. Null when the phenotype id is an HPO. */ phenotypeEFO?: Maybe; - /** Phenotype entity */ + /** Resolved HPO term. Null when the phenotype id is not an HPO (e.g. MONDO). */ phenotypeHPO?: Maybe; }; -/** the HPO project provides a large set of phenotype annotations. Source: Phenotype.hpoa */ -export type DiseaseHpoEvidences = { - __typename?: 'DiseaseHPOEvidences'; - /** One of P (Phenotypic abnormality), I (inheritance), C (onset and clinical course). Might be null (MONDO) */ - aspect?: Maybe; - /** This refers to the center or user making the annotation and the date on which the annotation was made */ - bioCuration?: Maybe; - /** Related name from the field diseaseFromSourceId */ - diseaseFromSource: Scalars['String']['output']; - /** This field refers to the database and database identifier. EG. OMIM */ - diseaseFromSourceId: Scalars['String']['output']; - /** This field indicates the level of evidence supporting the annotation. */ - evidenceType?: Maybe; - /** A term-id from the HPO-sub-ontology */ - frequency?: Maybe; - /** HPO Entity */ - frequencyHPO?: Maybe; - /** HP terms from the Clinical modifier subontology */ - modifiers: Array; - /** A term-id from the HPO-sub-ontology below the term Age of onset. */ - onset: Array; - /** This optional field can be used to qualify the annotation. Values: [True or False] */ - qualifierNot: Scalars['Boolean']['output']; - /** This field indicates the source of the information used for the annotation (phenotype.hpoa) */ - references: Array; - /** Possible source mapping: HPO or MONDO */ - resource: Scalars['String']['output']; - /** This field contains the strings MALE or FEMALE if the annotation in question is limited to males or females. */ - sex?: Maybe; +/** The result of a paginated query, containing the total number of items and the items. */ +export type DiseasePhenotypePage = { + __typename?: 'DiseasePhenotypePage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Human Phenotype Ontology (HPO) annotations associated with the disease */ -export type DiseaseHpOs = { - __typename?: 'DiseaseHPOs'; - /** Total number of phenotype annotations */ - count: Scalars['Long']['output']; - id: Scalars['String']['output']; - /** List of phenotype annotations for the disease */ - rows: Array; +/** Sort types. Contain the sort field and direction. */ +export type DiseaseSort = { + /** The direction to sort in. */ + direction?: SortDirection; + /** The field to sort by. */ + key: DiseaseSortField; }; -/** Synonymous disease labels grouped by relationship type */ -export type DiseaseSynonyms = { - __typename?: 'DiseaseSynonyms'; - /** Type of synonym relationship (e.g., exact, related, narrow) */ +/** Contains the fields available for sorting diseases. */ +export enum DiseaseSortField { + Id = 'ID', + IsTherapeuticArea = 'IS_THERAPEUTIC_AREA', + Name = 'NAME' +} + +/** List of synonymous disease labels. */ +export type DiseaseSynonym = { + __typename?: 'DiseaseSynonym'; relation: Scalars['String']['output']; - /** List of synonymous disease labels for this relationship type */ - terms: Array; + terms: Array>; }; -/** Core annotation for drug or clinical candidate molecules. A drug in the platform is understood as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL molecules included in the DrugBank database d) Molecules that are acknowledged as chemical probes */ +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ export type Drug = { __typename?: 'Drug'; - /** Significant adverse events estimated from pharmacovigilance reports deposited in FAERS */ - adverseEvents: AdverseEvents; - /** List of molecules corresponding to derivative compounds */ + /** Significant adverse events estimated from pharmacovigilance reports deposited in FAERS. */ + adverseEvents?: Maybe; + /** List of molecules corresponding to derivative compounds. */ childMolecules: Array; - /** Cross-reference information for this molecule from external databases */ - crossReferences?: Maybe>; - /** Summary of the drug's clinical development */ + /** Cross-reference information for this molecule from external databases. */ + crossReferences: Array; + /** Summary of the drug's clinical development. */ description?: Maybe; - /** Classification of the molecule's therapeutic category or chemical class (e.g. Antibody) */ + /** Classification of the molecule's therapeutic category or chemical class (e.g. Antibody). */ drugType: Scalars['String']['output']; /** Warnings present on drug as identified by ChEMBL. */ - drugWarnings: Array; - /** Drug or clinical candidate molecule identifier */ + drugWarnings: DrugWarningPage; + /** Drug or clinical candidate molecule identifier. */ id: Scalars['String']['output']; /** Clinical indications for this drug as reported by clinical trial records. */ - indications: ClinicalIndicationsFromDrugImp; - /** Return the list of publications that mention the main entity, alone or in combination with other entities */ - literatureOcurrences: Publications; - /** Highest clinical stage reached by the drug or clinical candidate molecule */ + indications: ClinicalIndicationPage; + /** + * Return the list of publications that mention the main entity, alone or in combination with + * other entities. + */ + literatureOcurrences: PublicationPage; + /** Highest clinical stage reached by the drug or clinical candidate molecule. */ maximumClinicalStage: Scalars['String']['output']; - /** Mechanisms of action to produce intended pharmacological effects. Curated from scientific literature and post-marketing package inserts */ + /** + * Mechanisms of action to produce intended pharmacological effects. Curated from scientific + * literature and post-marketing package inserts. + */ mechanismsOfAction?: Maybe; - /** Molblock */ + /** + * Mol Block is a chemical structure file format that serves as a connection table, + * representing molecules through a list of atoms, bonds, and spatial coordinates. + */ molblock?: Maybe; - /** Generic name of the drug molecule */ + /** Generic name of the drug molecule. */ name: Scalars['String']['output']; - /** Parent molecule for derivative compounds */ + /** Parent molecule for derivative compounds. */ parentMolecule?: Maybe; - /** Pharmacogenomics data linking genetic variants to responses to this drug. Data is integrated from sources including ClinPGx and describes how genetic variants influence individual responses to this drug. */ - pharmacogenomics: Array; - /** Semantically similar drugs based on a PubMed word embedding model */ - similarEntities: Array; - /** List of alternative names for the drug, each with its source (e.g. ChEMBL, or AACT for names mined from clinical trials) */ + /** + * Pharmacogenomics data linking genetic variants to responses to this drug. Data is integrated + * from sources including ClinPGx and describes how genetic variants influence individual + * responses to this drug. + */ + pharmacogenomics: PharmacogenomicsPage; + /** Semantically similar drugs based on a PubMed word embedding model. */ + similarEntities: SimilarEntityPage; + /** + * List of alternative names for the drug, each with its source (e.g. ChEMBL, or AACT for + * names mined from clinical trials). + */ synonyms: Array; - /** List of brand names for the drug, each with its source */ + /** List of brand names for the drug, each with its source. */ tradeNames: Array; }; -/** Core annotation for drug or clinical candidate molecules. A drug in the platform is understood as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL molecules included in the DrugBank database d) Molecules that are acknowledged as chemical probes */ +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ export type DrugAdverseEventsArgs = { - page?: InputMaybe; + page?: Page; }; -/** Core annotation for drug or clinical candidate molecules. A drug in the platform is understood as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL molecules included in the DrugBank database d) Molecules that are acknowledged as chemical probes */ +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ +export type DrugDrugWarningsArgs = { + page?: Page; +}; + + +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ +export type DrugIndicationsArgs = { + page?: Page; +}; + + +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ export type DrugLiteratureOcurrencesArgs = { additionalIds?: InputMaybe>; - cursor?: InputMaybe; endMonth?: InputMaybe; endYear?: InputMaybe; + page?: Page; startMonth?: InputMaybe; startYear?: InputMaybe; }; -/** Core annotation for drug or clinical candidate molecules. A drug in the platform is understood as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL molecules included in the DrugBank database d) Molecules that are acknowledged as chemical probes */ +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ +export type DrugPharmacogenomicsArgs = { + page?: Page; +}; + + +/** + * Core annotation for drug or clinical candidate molecules. A drug in the platform is understood + * as any bioactive molecule with drug-like properties included in the EMBL-EBI ChEMBL database. + * All ChEMBL molecules fullfilling any of the next criteria are included in the database: a) + * Molecules with a known indication. b) Molecules with a known mechanism of action c) ChEMBL + * molecules included in the DrugBank database d) Molecules that are acknowledged as chemical + * probes. + */ export type DrugSimilarEntitiesArgs = { additionalIds?: InputMaybe>; entityNames?: InputMaybe>; - size?: InputMaybe; + page?: Page; threshold?: InputMaybe; }; -/** Label with source information */ +/** Drug label with source information. */ export type DrugLabelAndSource = { __typename?: 'DrugLabelAndSource'; - /** Label value (e.g., synonym, symbol) */ + /** Label value (e.g., synonym, symbol). */ label: Scalars['String']['output']; - /** Source database of the label */ + /** Source database of the label. */ source: Scalars['String']['output']; }; -/** Cross-reference information for a drug molecule */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type DrugPage = { + __typename?: 'DrugPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** Cross-reference information for a drug molecule. */ export type DrugReferences = { __typename?: 'DrugReferences'; - /** List of identifiers from the source database */ + /** List of identifiers from the source database. */ ids: Array; - /** Source database providing the cross-reference */ + /** Source database providing the cross-reference. */ source: Scalars['String']['output']; }; /** Blackbox and withdrawn information for drugs molecules included in ChEMBL database. */ export type DrugWarning = { __typename?: 'DrugWarning'; - /** List of molecule identifiers associated with the warning */ - chemblIds?: Maybe>; - /** Country where the warning was issued */ + /** List of molecule identifiers associated with the warning. */ + chemblIds: Array; + /** Country where the warning was issued. */ country?: Maybe; - /** Description of the drug adverse effect */ + /** Description of the drug adverse effect. */ description?: Maybe; - /** List of disease identifiers associated with the warning [bioregistry:efo] */ + /** List of disease identifiers associated with the warning [bioregistry:efo]. */ efoId?: Maybe; /** Disease identifier categorising the type of warning [bioregistry:efo] */ efoIdForWarningClass?: Maybe; - /** List of disease labels associated with the warning */ + /** List of disease labels associated with the warning. */ efoTerm?: Maybe; - /** Internal identifier for the drug warning record */ - id?: Maybe; - /** List of sources supporting the warning information */ - references?: Maybe>; - /** Classification of toxicity type associated with the drug */ + /** Internal identifier for the drug warning record. */ + id?: Maybe; + /** List of sources supporting the warning information. */ + references: Array; + /** Classification of toxicity type associated with the drug. */ toxicityClass?: Maybe; - /** Classification of action taken (drug is withdrawn or has a black box warning) */ + /** Classification of action taken (drug is withdrawn or has a black box warning). */ warningType: Scalars['String']['output']; - /** Year when the warning was issued */ + /** Year when the warning was issued. */ year?: Maybe; }; -/** Reference information for drug warnings */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type DrugWarningPage = { + __typename?: 'DrugWarningPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + export type DrugWarningReference = { __typename?: 'DrugWarningReference'; - /** Reference identifier (e.g., PubMed ID) */ id: Scalars['String']['output']; - /** Source of the reference */ source: Scalars['String']['output']; - /** URL linking to the reference */ url: Scalars['String']['output']; }; -/** Drug with drug identifiers */ +/** Drug with drug identifiers. */ export type DrugWithIdentifiers = { __typename?: 'DrugWithIdentifiers'; /** Drug or clinical candidate entity */ drug?: Maybe; - /** Drug identifier from the original data source */ - drugFromSource?: Maybe; - /** Drug or clinical candidate identifier */ - drugId?: Maybe; + /** Drug identifier from the original data source. */ + drugFromSource: Scalars['String']['output']; + /** Drug or clinical candidate identifier. */ + drugId: Scalars['String']['output']; }; -/** Regulatory enhancer/promoter regions to gene (target) predictions for a specific tissue/cell type based on the integration of experimental sources */ +/** + * Regulatory enhancer/promoter regions to gene (target) predictions for + * a specific tissue/cell type based on the integration of experimental sources. + */ export type EnhancerToGene = { __typename?: 'EnhancerToGene'; - /** Cell type or tissue where the regulatory region to gene prediction was identified */ + /** Cell type or tissue where the regulatory region to gene prediction was identified. */ biosample?: Maybe; - /** Identifier of the biosample defined by the datasource provider */ + /** Identifier of the biosample defined by the datasource provider. */ biosampleFromSourceId?: Maybe; - /** Name of the biosample where the interval was identified */ + /** Name of the biosample where the interval was identified. */ biosampleName: Scalars['String']['output']; - /** Chromosome containing the regulatory region */ - chromosome: Scalars['String']['output']; - /** Identifier of the data source providing the regulatory region to gene prediction */ + /** Chromosome containing the regulatory region. */ + chromosome: Chromosome; + /** Identifier of the data source providing the regulatory region to gene prediction. */ datasourceId: Scalars['String']['output']; - /** Distance from the regulatory region to the transcription start site */ + /** Distance from the regulatory region to the transcription start site. */ distanceToTss: Scalars['Int']['output']; - /** Genomic end position of the regulatory region */ + /** Genomic end position of the regulatory region. */ end: Scalars['Int']['output']; - /** Type of regulatory region (e.g., enhancer, promoter) */ + /** Type of regulatory region (e.g., enhancer, promoter). */ intervalType: Scalars['String']['output']; - meta_total: Scalars['Long']['output']; - /** PubMed identifier for the study providing the evidence [bioregistry:pubmed] */ + /** PubMed identifier for the study providing the evidence [bioregistry:pubmed]. */ pmid: Scalars['String']['output']; /** Quality control flags for this interval. */ - qualityControls?: Maybe>; - /** Scores from individual resources used in prediction */ + qualityControls: Array; + /** Scores from individual resources used in prediction. */ resourceScore: Array; - /** Combined score for the enhancer/promoter region to gene prediction */ + /** Combined score for the enhancer/promoter region to gene prediction. */ score: Scalars['Float']['output']; - /** Genomic start position of the regulatory region */ + /** Genomic start position of the regulatory region. */ start: Scalars['Int']['output']; - /** Identifier of the study providing the experimental data */ + /** Identifier of the study providing the experimental data. */ studyId: Scalars['String']['output']; - /** Predicted gene (target) */ - target: Target; + /** Predicted gene (target). */ + target?: Maybe; }; -/** Collection of regulatory enhancer/promoter regions to gene (target) predictions for a specific tissue/cell type based on the integration of experimental sources */ -export type EnhancerToGenes = { - __typename?: 'EnhancerToGenes'; - /** Total number of enhancer/promoter region to gene predictions */ - count: Scalars['Long']['output']; - /** List of enhancer/promoter region to gene predictions */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type EnhancerToGenePage = { + __typename?: 'EnhancerToGenePage'; + count: Scalars['Int']['output']; rows: Array; }; -/** Union of core Platform entities returned by search or mappings (Target, Drug, Disease, Variant, Study) */ -export type EntityUnionType = Disease | Drug | Study | Target | Variant; +/** Union of core Platform entities (target, disease, drug, variant, study). */ +export type EntityObject = Disease | Study; -/** Target - disease evidence from all data sources. Every piece of evidence supporting an association between a target (gene or protein) and a disease or phenotype is reported and scored according to the confidence we have in the association. Multiple target-disease evidence from the same source can be reported in this dataset. The dataset is partitioned by data source, therefore evidence for individual sources can be retrieved separately. The dataset schema is a superset of all the schemas for all sources. */ export type Evidence = { __typename?: 'Evidence'; - /** Origin of the variant allele */ - alleleOrigins?: Maybe>; - /** Inheritance patterns */ - allelicRequirements?: Maybe>; - /** Genetic origin of a population */ + /** Origin of the variant allele. */ + alleleOrigins: Array; + /** Inheritance patterns. */ + allelicRequirements: Array; + /** Genetic origin of a population. */ ancestry?: Maybe; - /** Identifier of the ancestry in the HANCESTRO ontology [bioregistry:hancestro] */ + /** Identifier of the ancestry in the HANCESTRO ontology [bioregistry:hancestro]. */ ancestryId?: Maybe; - /** Assays used in the study */ - assays?: Maybe>; - /** Assessments */ - assessments?: Maybe>; - /** Effect size of numberic traits */ + /** Assays used in the study. */ + assays: Array; + /** Short name of the assay. */ + assessments: Array; + /** Effect size of numeric traits. */ beta?: Maybe; - /** Lower value of the confidence interval */ + /** Lower value of the confidence interval. */ betaConfidenceIntervalLower?: Maybe; - /** Upper value of the confidence interval */ + /** Upper value of the confidence interval. */ betaConfidenceIntervalUpper?: Maybe; - /** Allelic composition of the model organism */ + /** Allelic composition of the model organism. */ biologicalModelAllelicComposition?: Maybe; - /** Genetic background of the model organism */ + /** Genetic background of the model organism. */ biologicalModelGeneticBackground?: Maybe; - /** Identifier of the biological model (eg. in MGI) */ + /** Identifier of the biological model (eg. in MGI). */ biologicalModelId?: Maybe; - /** List of biomarkers associated with the biological model */ - biomarkerList?: Maybe>; - /** Altered characteristics that influences the disease process */ + /** List of biomarkers associated with the biological model. */ + biomarkerList: Array; + /** Altered characteristics that influences the disease process. */ biomarkerName?: Maybe; - /** List of biomarkers */ - biomarkers?: Maybe; - /** Identifier of the referenced biological material */ - biosamplesFromSource?: Maybe>; - /** Background of the derived cell lines */ + /** List of biomarkers. */ + biomarkers: Biomarkers; + /** Identifier of the referenced biological material. */ + biosamplesFromSource: Array; + /** Background of the derived cell lines. */ cellLineBackground?: Maybe; - /** The studied cell type. Preferably the cell line ontology label */ + /** The studied cell type. Preferably the cell line ontology label. */ cellType?: Maybe; - /** Identifier of the clinical report */ + /** Identifier of the clinical report. */ clinicalReportId?: Maybe; - /** Standard terms to define clinical significance */ - clinicalSignificances?: Maybe>; - /** Clinical stage of the drug-disease pair */ + /** Standard terms to define clinical significance. */ + clinicalSignificances: Array; + /** Clinical stage of the drug-disease pair. */ clinicalStage?: Maybe; - /** Description of the studied cohort */ + /** Description of the studied cohort. */ cohortDescription?: Maybe; /** Identifier of the studied cohort */ cohortId?: Maybe; - /** Clinical features/phenotypes observed in studied individuals */ - cohortPhenotypes?: Maybe>; - /** Short name of the studied cohort */ + /** Clinical features/phenotypes observed in studied individuals. */ + cohortPhenotypes: Array; + /** Short name of the studied cohort. */ cohortShortName?: Maybe; - /** Confidence qualifier on the reported evidence */ + /** Confidence qualifier on the reported evidence. */ confidence?: Maybe; - /** Experiment contrast */ + /** Experiment contrast. */ contrast?: Maybe; - /** Credible set (StudyLocus) supporting this evidence */ - credibleSet?: Maybe; - /** The applied screening library in the CRISPR/CAS9 project */ + /** Applied screening library in the CRISPR/Cas9 project. */ crisprScreenLibrary?: Maybe; - /** Identifer of the evidence source */ + /** Identifer of the evidence source. */ datasourceId: Scalars['String']['output']; - /** Type of the evidence */ + /** Datatype of the evidence. */ datatypeId: Scalars['String']['output']; - /** Gain or loss of function effect of the evidence on the target resulting from genetic variants, pharmacological modulation, or other perturbations */ + /** + * Gain or loss of function effect of the evidence on the target resulting from genetic + * variants, pharmacological modulation, or other perturbations. + */ directionOnTarget?: Maybe; - /** Direction On Trait */ + /** Predicted direction of effect on the trait. */ directionOnTrait?: Maybe; - /** Disease for which the target is associated in this evidence */ - disease: Disease; - /** Cancer cell lines used to generate evidence */ - diseaseCellLines?: Maybe>; - /** Disease label from the original source */ + /** Disease for which the target is associated in this evidence. */ + disease?: Maybe; + /** Cancer cell lines used to generate evidence. */ + diseaseCellLines: Array; + /** Disease label from the original source. */ diseaseFromSource?: Maybe; - /** Disease identifier from the original source */ + /** Disease identifier from the original source. */ diseaseFromSourceId?: Maybe; - /** Mapped Open Targets disease identifier */ + /** Mapped Open Targets disease identifier. */ diseaseFromSourceMappedId?: Maybe; - /** Human phenotypes equivalent to those observed in animal models */ - diseaseModelAssociatedHumanPhenotypes?: Maybe>; - /** Phenotypes observed in genetically-modified animal models */ - diseaseModelAssociatedModelPhenotypes?: Maybe>; - /** Drug or clinical candidate targeting the target and studied/approved for the specific disease as potential indication [bioregistry:chembl] */ + /** Human phenotypes equivalent to those observed in animal models. */ + diseaseModelAssociatedHumanPhenotypes: Array; + /** Phenotypes observed in genetically modified animal models. */ + diseaseModelAssociatedModelPhenotypes: Array; + /** + * Drug or clinical candidate targeting the target and studied/approved for the specific + * disease as potential indication [bioregistry:chembl]. + */ drug?: Maybe; - /** Drug name/family in resource of origin */ + /** Drug name/family in resource of origin. */ drugFromSource?: Maybe; - /** Observed patterns of drug response */ - drugResponse?: Maybe; - /** Earliest data for the evidence */ + /** Observed patterns of drug response. */ + drugResponse?: Maybe; + /** Earliest data for the evidence. */ evidenceDate?: Maybe; - geneticInteractionFDR?: Maybe; - /** The strength of the genetic interaction. Directionality is captured as well: antagonistics < 0 < cooperative */ + /** + * The strength of the genetic interaction. Directionality is captured as well: antagonistics + * < 0 < cooperative. + */ geneticInteractionScore?: Maybe; - /** Description of the interaction between the two genes */ + /** Description of the interaction between the two genes. */ geneticInteractionType?: Maybe; - /** Identifer of the disease/target evidence */ + /** Identifer of the disease/target evidence. */ id: Scalars['String']['output']; - /** Identifer of the interacting target */ + /** Identifer of the interacting target. */ interactingTargetFromSourceId?: Maybe; - /** Role of a target in the genetic interaction test */ + /** Role of a target in the genetic interaction test. */ interactingTargetRole?: Maybe; - /** List of PubMed or preprint reference identifiers */ - literature?: Maybe>; - /** Percentile of top differentially regulated genes (transcripts) within experiment */ - log2FoldChangePercentileRank?: Maybe; - /** Log2 fold expression change in contrast experiment */ + /** List of PubMed or preprint reference identifiers. */ + literature: Array; + /** Percentile of top differentially regulated genes (transcripts) within experiment. */ + log2FoldChangePercentileRank?: Maybe; + /** Log 2 fold expression change in contrast experiment. */ log2FoldChangeValue?: Maybe; - metaTotal: Scalars['Int']['output']; - /** Samples with a given mutation tested */ - mutatedSamples?: Maybe>; - /** Size of effect captured as odds ratio */ + /** Samples with a given mutation tested. */ + mutatedSamples: Array; + /** Size of effect captured as odds ratio. */ oddsRatio?: Maybe; - /** Lower value of the confidence interval for odds ratio */ + /** Lower value of the confidence interval for odds ratio. */ oddsRatioConfidenceIntervalLower?: Maybe; - /** Upper value of the confidence interval for odds ratio */ + /** Upper value of the confidence interval for odds ratio. */ oddsRatioConfidenceIntervalUpper?: Maybe; - /** Exponent of the p-value */ - pValueExponent?: Maybe; - /** Mantissa of the p-value */ + /** Exponent of the p-value. */ + pValueExponent?: Maybe; + /** Mantissa of the p-value. */ pValueMantissa?: Maybe; - /** List of pooled pathways */ - pathways?: Maybe>; - /** Log 2 fold change of the cell survival */ + /** List of pooled pathways. */ + pathways: Array; + /** Log 2 fold change of the cell survival. */ phenotypicConsequenceLogFoldChange?: Maybe; + /** P-value of the the cell survival test. */ phenotypicConsequencePValue?: Maybe; - /** Primary Project Hit */ + /** If a given target was found to be a hit in the primary project. */ primaryProjectHit?: Maybe; - /** Primary Project Id */ + /** Open Targets project identifier of the primary project. */ primaryProjectId?: Maybe; - /** Description of the project that generated the data */ + /** Description of the project that generated the data. */ projectDescription?: Maybe; - /** The identifer of the project that generated the data */ + /** The identifer of the project that generated the data. */ projectId?: Maybe; - /** List of PubMed Central identifiers of full text publication [bioregistry:pmc] */ - pubMedCentralIds?: Maybe>; - /** Publication date of the literature reference */ + /** Date of the earliest publication supporting the evidence. */ publicationDate?: Maybe; - /** Last name and initials of the first author of the publication that references the evidence */ + /** Last name and initials of the author of the publication that references the study. */ publicationFirstAuthor?: Maybe; - /** Year of the publication */ - publicationYear?: Maybe; - /** Evidence quality flags */ + /** Year of publication. */ + publicationYear?: Maybe; + /** Evidence quality flags. */ qualityControls: Array; - /** Pathway, gene set or reaction identifier in Reactome */ + /** Pathway, gene set or reaction identifier in Reactome. */ reactionId?: Maybe; - /** Name of the reaction, patway or gene set in Reactome */ + /** Name of the reaction, patway or gene set in Reactome. */ reactionName?: Maybe; - /** Date of the release of the data in a 'YYYY-MM-DD' format */ + /** Date of the release of the data in a 'YYYY-MM-DD' format. */ releaseDate?: Maybe; /** Open Targets data release version */ releaseVersion?: Maybe; - /** Score provided by datasource indicating strength of target-disease association */ + /** Score provided by datasource indicating strength of target-disease association. */ resourceScore?: Maybe; - /** Score of the evidence reflecting the strength of the disease/target relationship */ + /** Score of the evidence reflecting the strength of the disease/target relationship. */ score: Scalars['Float']['output']; - /** Methods to detect cancer driver genes producing significant results */ - significantDriverMethods?: Maybe>; - /** The statistical method used to calculate the association */ + /** Methods to detect cancer driver genes producing significant results. */ + significantDriverMethods: Array; + /** Statistical method used to calculate the association. */ statisticalMethod?: Maybe; - /** Overview of the statistical method used to calculate the association */ + /** Overview of the statistical method used to calculate the association. */ statisticalMethodOverview?: Maybe; - /** End of the distribution the target was picked from */ + /** End of the distribution the target was picked from. */ statisticalTestTail?: Maybe; - /** Number of cases in case-control study */ - studyCases?: Maybe; - /** Number of cases in a case-control study that carry at least one allele of the qualifying variant */ - studyCasesWithQualifyingVariants?: Maybe; - /** Identifier of the study generating the data */ + /** Number of cases in case-control study. */ + studyCases?: Maybe; + /** + * Number of cases in case-control study that carry at least one allele of the qualifying + * variant. + */ + studyCasesWithQualifyingVariants?: Maybe; + /** Identifier of the study generating the data. */ studyId?: Maybe; - /** Description of the study */ + /** Description of the study. */ studyOverview?: Maybe; - /** Sample size of study */ - studySampleSize?: Maybe; - /** Start date of study in a YYYY-MM-DD format */ + /** Sample size of study. */ + studySampleSize?: Maybe; + /** Start date of study in a YYYY-MM-DD format. */ studyStartDate?: Maybe; - /** Target for which the disease is associated in this evidence */ - target: Target; - /** Target name/synonym or non HGNC symbol in resource of origin */ + /** Target for which the disease is associated in this evidence. */ + target?: Maybe; + /** Target name/synonym or non HGNC symbol in resource of origin. */ targetFromSource?: Maybe; - /** Target ID in resource of origin (accepted sources include Ensembl gene ID, Uniprot ID, gene symbol), only capital letters are accepted */ + /** + * Target ID in resource of origin (accepted sources include Ensembl gene ID, Uniprot ID, gene + * symbol), only capital letters are accepted. + */ targetFromSourceId?: Maybe; - /** Target name/synonym in animal model */ + /** Target name/synonym in animal model. */ targetInModel?: Maybe; - /** Description of target modulation event */ + /** Description of target modulation event. */ targetModulation?: Maybe; - /** Role of a target in the genetic interaction test */ + /** Role of a target in the genetic interaction test. */ targetRole?: Maybe; - /** Text mining sentences extracted from literature */ - textMiningSentences?: Maybe>; - /** Categorised reason(s) why the trial was stopped */ - trialStopReasonCategories?: Maybe>; - /** Reason why the trial was stopped, as reported */ + /** Sentences of a publication supporting the disease/target relationship. */ + textMiningSentences: Array; + /** Categorised reason(s) why the trial was stopped. */ + trialStopReasonCategories: Array; + /** Reason why the trial was stopped, as reported. */ trialWhyStopped?: Maybe; - /** Reference to linked external resource (e.g. clinical trials, studies, package inserts, reports, etc.) */ - urls?: Maybe>; - validationReadouts?: Maybe>; - /** Variant supporting the relationship between the target and the disease */ - variant?: Maybe; - /** Descriptions of variant consequences at protein level */ - variantAminoacidDescriptions?: Maybe>; - /** Sequence ontology (SO) term of the functional consequence of the variant */ + /** + * Reference to linked external resource (e.g. clinical trials, studies, package inserts, + * reports, etc.). + */ + urls: Array; + /** Descriptions of variant consequences at protein level. */ + variantAminoacidDescriptions: Array; + /** Sequence ontology (SO) term of the functional consequence of the variant. */ variantFunctionalConsequence?: Maybe; - /** Sequence ontology (SO) term of the functional consequence of the variant from QTL */ - variantFunctionalConsequenceFromQtlId?: Maybe; - /** Variant reference SNP cluster ID (Rsid) */ + /** Sequence ontology (SO) term of the functional consequence of the variant from QTL. */ + variantFunctionalConsequenceFromQtl?: Maybe; + /** Variant reference SNP cluster ID (Rsid). */ variantRsId?: Maybe; - /** Warning message */ + /** @deprecated empty */ warningMessage?: Maybe; }; -/** Evidence datasource and datatype metadata */ -export type EvidenceSource = { - __typename?: 'EvidenceSource'; - /** Name of the evidence datasource */ - datasource: Scalars['String']['output']; - /** Datatype/category of the evidence (e.g., Genetic association, Somatic, Literature) */ - datatype: Scalars['String']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type EvidencePage = { + __typename?: 'EvidencePage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Extracted text snippet from literature supporting a target–disease statement */ +/** Sentences of a publication supporting the disease/target relationship. */ export type EvidenceTextMiningSentence = { __typename?: 'EvidenceTextMiningSentence'; - /** End character offset of the disease mention in the sentence */ - dEnd: Scalars['Long']['output']; - /** Start character offset of the disease mention in the sentence */ - dStart: Scalars['Long']['output']; - /** Publication section where the sentence was found (e.g., abstract, results) */ + /** End position of the disease label in sentence. */ + dEnd: Scalars['Int']['output']; + /** Start position of the disease label in the sentence. */ + dStart: Scalars['Int']['output']; + /** Section of the publication the sentence was extracted from. */ section: Scalars['String']['output']; - /** End character offset of the target mention in the sentence */ - tEnd: Scalars['Long']['output']; - /** Start character offset of the target mention in the sentence */ - tStart: Scalars['Long']['output']; - /** Sentence text supporting the association */ + /** End position of the target label in the sentence. */ + tEnd: Scalars['Int']['output']; + /** Start position of the target label in the sentence. */ + tStart: Scalars['Int']['output']; + /** Text of the sentence with the disease/target relationship. */ text: Scalars['String']['output']; }; -/** Summary of mutation counts by functional consequence in the cohort */ +/** Mutation counts for a single functional consequence, across a tested sample cohort. */ export type EvidenceVariation = { __typename?: 'EvidenceVariation'; - /** Sequence ontology (SO) identifier of the functional consequence of the variant [bioregistry:so] */ + /** Functional consequene of the pooled mutations [bioregistry:so]. */ functionalConsequence?: Maybe; - /** Number of cohort samples in which the target is mutated with a mutation of any type */ - numberMutatedSamples?: Maybe; - /** Number of cohort samples tested */ - numberSamplesTested?: Maybe; - /** Number of cohort samples in which the target is mutated with a specific mutation type */ - numberSamplesWithMutationType?: Maybe; -}; - -/** Target–disease evidence items with total count and pagination cursor */ -export type Evidences = { - __typename?: 'Evidences'; - /** Total number of evidence items available for the query */ - count: Scalars['Int']['output']; - /** Opaque pagination cursor to request the next page of results */ - cursor?: Maybe; - /** List of evidence items supporting the target–disease association */ - rows: Array; -}; - -export type Exon = { - __typename?: 'Exon'; - chromosome: Scalars['String']['output']; - end: Scalars['Int']['output']; - exonId: Scalars['String']['output']; - start: Scalars['Int']['output']; - strand: Strand; -}; - -export type Flag = { - __typename?: 'Flag'; - label?: Maybe; - value?: Maybe; -}; + /** Number of cohort samples in which target is mutated with a mutation of any type. */ + numberMutatedSamples?: Maybe; + /** Number of cohort samples tested. */ + numberSamplesTested?: Maybe; + /** Number of cohort samples in which target is mutated with a specific mutation type. */ + numberSamplesWithMutationType?: Maybe; +}; + +/** The different product flavors served by the API (platform/ppp). */ +export enum Flavor { + /** Open Targets Platform Public version. */ + Platform = 'PLATFORM', + /** Open Targets Partner Preview Platform version. */ + Ppp = 'PPP' +} -/** CRISPR screening experiments supporting the essentiality assessment. Represents individual cell line assays from DepMap. */ export type GeneEssentialityScreen = { __typename?: 'GeneEssentialityScreen'; - /** Name of the cancer cell line in which the gene essentiality was assessed */ + /** Name of the cancer cell line in which the gene essentiality was assessed. */ cellLineName?: Maybe; - /** Unique identifier of the assay in DepMap */ + /** Unique identifier of the assay in DepMap. */ depmapId?: Maybe; - /** Cell model passport identifier of a cell line modelling a disease */ + /** Cell model passport identifier of a cell line modelling a disease. */ diseaseCellLineId?: Maybe; - /** Disease associated with the cell line as reported in the source data */ + /** Disease associated with the cell line as reported in the source data. */ diseaseFromSource?: Maybe; - /** Gene expression level in the corresponding cell line */ + /** Gene expression level in the corresponding cell line. */ expression?: Maybe; - /** Gene effect score indicating the impact of gene knockout */ + /** Gene effect score indicating the impact of gene knockout. */ geneEffect?: Maybe; - /** Background mutation the tested cell line have */ + /** Background mutation in the tested cell line. */ mutation?: Maybe; }; -/** Gene Ontology (GO) annotations related to the target */ +/** A term from the Gene Ontology (GO) TODO DESCRIPTION */ export type GeneOntology = { __typename?: 'GeneOntology'; - /** Type of the GO annotation: molecular function (F), biological process (P) and cellular localisation (C) */ + /** Gene Ontology term identifier [bioregistry:so]. */ + id: Scalars['String']['output']; + /** Human-readable label for the term (e.g. `missense_variant`). */ + label: Scalars['String']['output']; +}; + +/** Gene Ontology (GO) annotations related to the target. */ +export type GeneOntologyAnnotation = { + __typename?: 'GeneOntologyAnnotation'; + /** + * Type of the GO annotation: molecular function (F), biological process (P) and cellular + * localisation (C). + */ aspect: Scalars['String']['output']; - /** Evidence supporting the GO annotation */ + /** Evidence supporting the GO annotation. */ evidence: Scalars['String']['output']; - /** Gene product associated with the GO annotation [bioregistry:uniprot] */ + /** Gene product associated with the GO annotation [bioregistry:uniprot]. */ geneProduct: Scalars['String']['output']; - /** Source database and identifier where the ontology term was sourced from */ + /** Source database and identifier where the ontology term was sourced from. */ source: Scalars['String']['output']; - /** Gene ontology term */ - term: GeneOntologyTerm; }; -/** Gene ontology (GO) term [bioregistry:go] */ -export type GeneOntologyTerm = { - __typename?: 'GeneOntologyTerm'; - /** Gene ontology term identifier [bioregistry:go] */ - id: Scalars['String']['output']; - /** Gene ontology term label */ - label: Scalars['String']['output']; +/** List of gene expression altering biomarkers. */ +export type GeneticVariation = { + __typename?: 'GeneticVariation'; + functionalConsequence?: Maybe; + /** Variant identifier. */ + id?: Maybe; + /** Name of the variant biomarker. */ + name?: Maybe; }; -/** Genomic location information of the target gene */ +/** Genomic location information of the target gene. */ export type GenomicLocation = { __typename?: 'GenomicLocation'; - /** Chromosome on which the target is located */ + /** Chromosome on which the target is located. */ chromosome: Scalars['String']['output']; - /** Genomic end position of the target gene */ - end: Scalars['Long']['output']; - /** Genomic start position of the target gene */ - start: Scalars['Long']['output']; + /** Genomic end position of the target gene. */ + end: Scalars['Int']['output']; + /** Genomic start position of the target gene. */ + start: Scalars['Int']['output']; + /** Strand orientation of the canonical transcript. */ strand: Strand; }; -/** Human Phenotype Ontology subset of information included in the Platform. */ -export type Hpo = { - __typename?: 'HPO'; - /** Phenotype description */ - description?: Maybe; - /** Open Targets hpo id */ - id: Scalars['String']['output']; - /** Phenotype name */ - name: Scalars['String']['output']; - /** namespace */ - namespace?: Maybe>; -}; - -/** Attributes of the hallmark annotation */ -export type HallmarkAttribute = { - __typename?: 'HallmarkAttribute'; - /** Description of the hallmark attribute */ - description: Scalars['String']['output']; - /** Name of the hallmark attribute */ - name: Scalars['String']['output']; - /** PubMed ID of the supporting literature for the hallmark attribute [bioregistry:pubmed] */ - pmid?: Maybe; -}; - -/** Hallmarks related to the target gene sourced from COSMIC */ -export type Hallmarks = { - __typename?: 'Hallmarks'; - /** Attributes of the hallmark annotation */ - attributes: Array; - /** Cancer hallmarks associated with the target gene */ - cancerHallmarks: Array; +/** Hallmarks related to the target gene sourced from COSMIC. */ +export type Hallmark = { + __typename?: 'Hallmark'; + /** Attributes of the hallmark annotation. */ + attributes: Array; + /** Cancer hallmarks associated with the target gene. */ + cancerHallmarks: Array; }; -/** Homologues of the target gene in other species according to Ensembl Compara */ +/** Homologues of the target gene in other species according to Ensembl Compara. */ export type Homologue = { __typename?: 'Homologue'; - /** Type of homology relationship */ + /** Type of homology relationship. */ homologyType: Scalars['String']['output']; - /** Indicates if the homology is high confidence according to Ensembl Compara */ + /** Indicates if the homology is high confidence according to Ensembl Compara. */ isHighConfidence?: Maybe; - /** Percentage identity of the query gene in the homologue */ + /** Percentage identity of the query gene in the homologue. */ queryPercentageIdentity: Scalars['Float']['output']; - /** Species ID for the homologue */ + /** Species ID for the homologue. */ speciesId: Scalars['String']['output']; - /** Species name for the homologue */ + /** Species name for the homologue. */ speciesName: Scalars['String']['output']; - /** Gene ID of the homologue */ + /** Gene ID of the homologue. */ targetGeneId: Scalars['String']['output']; - /** Gene symbol of the homologous target */ + /** Gene symbol of the homologous target. */ targetGeneSymbol: Scalars['String']['output']; - /** Percentage identity of the homologue in the query gene */ + /** Percentage identity of the homologue in the query gene. */ targetPercentageIdentity: Scalars['Float']['output']; }; -/** Identifier with source information */ +/** Human Phenotype Ontology subset of information included in the Platform. */ +export type Hpo = { + __typename?: 'Hpo'; + /** Description of the disease. */ + description?: Maybe; + /** Unique identifier for the disease in the Human Phenotype Ontology (HPO). */ + id: Scalars['String']['output']; + /** Name of the disease (in HPO). */ + name: Scalars['String']['output']; + /** @deprecated empty */ + namespace: Array; +}; + +/** Identifier with source information. */ export type IdAndSource = { __typename?: 'IdAndSource'; - /** Identifier value */ + /** Identifier value. */ id: Scalars['String']['output']; - /** Source database or organization providing the identifier */ + /** Source database or organization providing the identifier. */ source: Scalars['String']['output']; }; -/** Integration of molecular interactions reporting experimental or functional interactions between molecules represented as Platform targets. This dataset contains pair-wise interactions deposited in several databases capturing: physical interactions (e.g. IntAct), directional interactions (e.g. Signor), pathway relationships (e.g. Reactome) or functional interactions (e.g. STRINGdb). */ +/** Filter for an integer field. */ +export type IntFilter = { + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + ne?: InputMaybe; +}; + +/** + * Molecular interactions reporting experimental or functional interactions between this target and + * other molecules. This dataset contains pair-wise interactions deposited in several databases + * capturing: physical interactions (e.g. IntAct), directional interactions (e.g. Signor), pathway + * relationships (e.g. Reactome) or functional interactions (e.g. STRINGdb). + */ export type Interaction = { __typename?: 'Interaction'; - /** Number of evidence entries supporting this interaction */ - count: Scalars['Long']['output']; + /** Number of interaction occurrences reported in the source databases. */ + count: Scalars['Int']['output']; + /** Evidence supporting the molecular interaction. */ evidences: Array; - /** Identifier for target A in source */ + /** Identifier for target A in source. */ intA: Scalars['String']['output']; - /** Biological role of target A in the interaction */ + /** Biological role of target A in the interaction. */ intABiologicalRole: Scalars['String']['output']; - /** Identifier for target B in source */ + /** Identifier for target B in source. */ intB: Scalars['String']['output']; - /** Biological role of target B in the interaction */ + /** Biological role of target B in the interaction. */ intBBiologicalRole: Scalars['String']['output']; - /** Scoring or confidence value assigned to the interaction. Scores are normalized to a range of 0-1. The higher the score, the stronger the support for the interaction. In IntAct, scores are captured with the MI score. */ + /** Scoring or confidence value assigned to the interaction. */ score?: Maybe; - /** Name of the source database reporting the interaction */ - sourceDatabase: Scalars['String']['output']; - /** Taxonomic annotation of target A */ - speciesA?: Maybe; - /** Taxonomic annotation of target B */ - speciesB?: Maybe; - /** Target (gene/protein) of the first molecule (target A) in the interaction */ + /** Source database reporting the molecular interaction. */ + sourceDatabase: InteractionSourceDatabase; + /** Taxonomic annotation of target A. */ + speciesA: InteractionSpeciesA; + /** Taxonomic annotation of target B. */ + speciesB: InteractionSpeciesB; targetA?: Maybe; - /** Target (gene/protein) of the second molecule (target B) in the interaction */ targetB?: Maybe; }; -/** Evidence supporting molecular interactions between targets. Contains detailed information about how the interaction was detected, the experimental context, and supporting publications. */ +/** + * Evidence supporting molecular interactions between targets. Contains detailed information about + * how the interaction was detected, the experimental context, and supporting publications. + */ export type InteractionEvidence = { __typename?: 'InteractionEvidence'; - /** Score indicating the confidence or strength of the interaction evidence */ + /** Score indicating the confidence or strength of the interaction evidence. */ evidenceScore?: Maybe; - /** Molecular Interactions (MI) identifier for the expansion method used [bioregistry:mi] */ + /** Molecular Interactions (MI) identifier for the expansion method used [bioregistry:mi]. */ expansionMethodMiIdentifier?: Maybe; - /** Short name of the method used to expand the interaction dataset */ + /** Short name of the method used to expand the interaction dataset. */ expansionMethodShortName?: Maybe; - /** Scientific name of the host organism in which the interaction was observed */ + /** Scientific name of the host organism in which the interaction was observed. */ hostOrganismScientificName?: Maybe; - /** NCBI taxon ID of the host organism */ - hostOrganismTaxId?: Maybe; - /** Molecular Interactions (MI) identifier for the interaction detection method [bioregistry:mi] */ + /** NCBI taxon ID of the host organism. */ + hostOrganismTaxId?: Maybe; + /** + * Molecular Interactions (MI) identifier for the interaction detection method + * [bioregistry:mi]. + */ interactionDetectionMethodMiIdentifier: Scalars['String']['output']; - /** Short name of the method used to detect the interaction */ + /** Short name of the method used to detect the interaction. */ interactionDetectionMethodShortName: Scalars['String']['output']; - /** Unique identifier for the interaction evidence entry at the source */ + /** Unique identifier for the interaction evidence entry at the source. */ interactionIdentifier?: Maybe; - /** Molecular Interactions (MI) identifier for the type of interaction [bioregistry:mi] */ + /** Molecular Interactions (MI) identifier for the type of interaction [bioregistry:mi]. */ interactionTypeMiIdentifier?: Maybe; - /** Short name of the interaction type */ + /** Short name of the interaction type. */ interactionTypeShortName?: Maybe; - /** Detection method used to identify participant A in the interaction */ - participantDetectionMethodA?: Maybe>; - /** Detection method used to identify participant B in the interaction */ - participantDetectionMethodB?: Maybe>; - /** PubMed ID of the publication supporting the interaction evidence [bioregistry:pubmed] */ + /** Detection method used to identify participant A in the interaction. */ + participantDetectionMethodA: Array; + /** Detection method used to identify participant B in the interaction. */ + participantDetectionMethodB: Array; + /** PubMed ID of the publication supporting the interaction evidence. */ pubmedId?: Maybe; }; -/** Detection method used to identify participants in the interaction */ -export type InteractionEvidencePdm = { - __typename?: 'InteractionEvidencePDM'; - /** Molecular Interactions (MI) identifier for the detection method [bioregistry:mi] */ - miIdentifier?: Maybe; - /** Short name of the detection method */ - shortName?: Maybe; -}; - -/** Databases providing evidence for the interaction */ -export type InteractionResources = { - __typename?: 'InteractionResources'; - /** Version of the source database providing interaction evidence */ - databaseVersion: Scalars['String']['output']; - /** Name of the source database reporting the interaction evidence */ - sourceDatabase: Scalars['String']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type InteractionPage = { + __typename?: 'InteractionPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Source database for molecular interaction evidence */ -export enum InteractionSourceEnum { - /** IntAct molecular interaction database */ +/** Source database reporting the molecular interaction. */ +export enum InteractionSourceDatabase { + /** IntAct: . */ Intact = 'intact', - /** Reactome pathway database */ + /** Reactome: . */ Reactome = 'reactome', - /** SIGNOR, the SIGnaling Network Open Resource database */ + /** Signor: . */ Signor = 'signor', - /** STRING, protein-protein interactions database */ + /** String: . */ String = 'string' } -/** Taxonomic annotation of the interaction participants */ -export type InteractionSpecies = { - __typename?: 'InteractionSpecies'; - /** Short mnemonic name of the species */ +/** Taxonomic annotation of the first interaction participant. */ +export type InteractionSpeciesA = { + __typename?: 'InteractionSpeciesA'; + /** Short mnemonic name of the associated species. */ + mnemonic: Scalars['String']['output']; + /** Scientific name of the associated species. */ + scientificName: Scalars['String']['output']; + /** NCBI taxon ID of the associated species. */ + taxonId: Scalars['Int']['output']; +}; + +/** Taxonomic annotation of the second interaction participant. */ +export type InteractionSpeciesB = { + __typename?: 'InteractionSpeciesB'; + /** Short mnemonic name of the associated species. */ mnemonic: Scalars['String']['output']; - /** Scientific name of the species */ + /** Scientific name of the associated species. */ scientificName?: Maybe; - /** NCBI taxon ID of the species */ - taxonId?: Maybe; + /** NCBI taxon ID of the associated species. */ + taxonId?: Maybe; }; -/** Molecular interactions reported between targets, with total count and rows */ -export type Interactions = { - __typename?: 'Interactions'; - /** Total number of interaction entries available for the query */ - count: Scalars['Long']['output']; +/** Relevance of a publication to one of the queried ids. */ +export type KeywordRelevance = { + __typename?: 'KeywordRelevance'; + /** Queried id. */ id: Scalars['String']['output']; - /** List of molecular interaction entries */ - rows: Array; + /** Relevance of the publication to this id. */ + relevance: Scalars['Float']['output']; }; -/** A key-value pair */ -export type KeyValuePair = { - __typename?: 'KeyValuePair'; - /** Key or attribute name */ - key: Scalars['String']['output']; - /** String representation of the value */ - value: Scalars['String']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type L2GPredictionPage = { + __typename?: 'L2GPredictionPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Feature used in Locus2gene model predictions */ -export type L2GFeature = { - __typename?: 'L2GFeature'; - /** Name of the feature */ +/** Feature used in Locus2gene model predictions. */ +export type L2Gfeature = { + __typename?: 'L2Gfeature'; + /** Name of the feature. */ name: Scalars['String']['output']; - /** SHAP (SHapley Additive exPlanations) value indicating the feature's contribution to the prediction */ + /** + * SHAP (Shapley Additive exPlanations) value indicating the feature's contribution to the + * prediction. + */ shapValue: Scalars['Float']['output']; - /** Value of the feature */ + /** Value of the feature. */ value: Scalars['Float']['output']; }; -/** Predictions from Locus2gene model integrating multiple functional genomic features to estimate the most likely causal gene for a given credible set. The dataset contains all predictions for every combination of credible set and genes in the region as well as statistics to explain the model interpretation of the predictions. */ -export type L2GPrediction = { - __typename?: 'L2GPrediction'; - /** Features used in the Locus2gene model prediction */ - features?: Maybe>; - /** Locus2gene prediction score for the gene assignment. Higher scores indicate a stronger association between the credible set and the gene. Scores range from 0 to 1. */ +/** + * Predictions from Locus2gene gene assignment model. The dataset contains all predictions for + * every combination of credible set and genes in the region as well as statistics to explain the + * model interpretation of the predictions. + */ +export type L2Gprediction = { + __typename?: 'L2Gprediction'; + /** Features used in the Locus2gene model prediction. */ + features: Array; + /** + * Locus2gene prediction score for the gene assignment. Higher scores indicate a stronger + * association between the credible set and the gene. Scores range from 0 to 1. + */ score: Scalars['Float']['output']; - /** SHAP base value for the prediction. This value is common to all predictions for a given credible set. */ + /** + * SHAP base value for the prediction. This value is common to all predictions for a given + * credible set. + */ shapBaseValue: Scalars['Float']['output']; - /** Study-locus identifier for the credible set */ + /** Study-locus identifier for the credible set. */ studyLocusId: Scalars['String']['output']; - /** Target entity of the L2G predicted gene */ + /** Target entity of the L2G predicted gene. */ target?: Maybe; }; -/** Predictions from Locus2gene gene assignment model. The dataset contains all predictions for every combination of credible set and genes in the region as well as statistics to explain the model interpretation of the predictions. */ -export type L2GPredictions = { - __typename?: 'L2GPredictions'; - /** Total number of Locus2gene predictions */ - count: Scalars['Long']['output']; - /** Study-locus identifier for the credible set */ - id: Scalars['String']['output']; - /** List of Locus2gene predictions for credible set and gene combinations */ - rows: Array; -}; - -/** Label with source information */ -export type LabelAndSource = { - __typename?: 'LabelAndSource'; - /** Label value (e.g., synonym, symbol) */ +/** Label with source information. */ +export type LabelSource = { + __typename?: 'LabelSource'; + /** Label value (e.g., synonym, symbol). */ label: Scalars['String']['output']; - /** Source database of the label */ + /** Source database of the label. */ source: Scalars['String']['output']; }; -/** Identifier and human-readable label pair */ +/** An element with a label. */ export type LabelledElement = { __typename?: 'LabelledElement'; - /** Identifier value */ + /** The unique identifier of the element. */ id: Scalars['String']['output']; - /** Human-readable label */ + /** The human-readable label of the element. */ label: Scalars['String']['output']; }; -/** External resource link with an optional display name */ +/** + * Reference to linked external resource (e.g. clinical trials, studies, package inserts, reports, + * etc.). + */ export type LabelledUri = { __typename?: 'LabelledUri'; - /** Optional human-readable label for the URL */ + /** Human readable label of the remote reference. */ niceName?: Maybe; - /** URL to the external resource */ + /** URL to remote resource. */ url?: Maybe; }; -/** Collection of populations referenced by the study. Used to describe the linkage disequilibrium (LD) population structure of GWAS studies. */ +/** Collection of populations. */ export type LdPopulationStructure = { __typename?: 'LdPopulationStructure'; - /** Population identifier */ + /** Population identifier. */ ldPopulation: Scalars['String']['output']; - /** Fraction of the total sample represented by the population */ + /** Fraction of the total sample represented by the population. */ relativeSampleSize?: Maybe; }; /** Variants in linkage disequilibrium (LD) with the credible set lead variant. */ -export type LdSet = { - __typename?: 'LdSet'; - /** The R-squared value for the tag variants with the credible set lead variant */ +export type Ldset = { + __typename?: 'Ldset'; + /** The R-squared value for the tag variants with the credible set lead variant. */ r2Overall: Scalars['Float']['output']; - /** The variant ID for tag variants in LD with the credible set lead variant */ + /** The variant ID for tag variants in LD with the credible set lead variant. */ tagVariantId: Scalars['String']['output']; }; -/** Subcellular location information with source */ +/** Subcellular location information with source. */ export type LocationAndSource = { __typename?: 'LocationAndSource'; - /** Subcellular location category from SwissProt */ + /** Subcellular location category from SwissProt. */ labelSL?: Maybe; - /** Name of the subcellular compartment where the protein was found */ + /** Name of the subcellular compartment where the protein was found. */ location: Scalars['String']['output']; - /** Source database for the subcellular location */ + /** Source database for the subcellular location. */ source: Scalars['String']['output']; + /** Protein isoform or modification that specific for the given subcellular location. */ targetModifier?: Maybe; - /** Subcellular location term identifier from SwissProt [bioregistry:sl] */ + /** Subcellular location term identifier from SwissProt [bioregistry:sl]. */ termSL?: Maybe; }; -/** Collection of variants within a credible set (locus) */ -export type Loci = { - __typename?: 'Loci'; - /** Total number of variants in the credible set */ - count: Scalars['Long']['output']; - /** Variants within the credible set and their associated statistics */ - rows?: Maybe>; -}; - -/** List of variants within the credible set */ +/** List of variants within the credible set. */ export type Locus = { __typename?: 'Locus'; - /** Beta coefficient of this variant in the credible set */ + /** Beta coefficient of this variant in the credible set. */ beta?: Maybe; - /** Boolean for if the variant is part of the 95% credible set */ + /** Boolean for if the variant is part of the 95% credible set. */ is95CredibleSet: Scalars['Boolean']['output']; - /** Boolean for if the variant is part of the 99% credible set */ + /** Boolean for if the variant is part of the 99% credible set. */ is99CredibleSet: Scalars['Boolean']['output']; - /** Log (natural) Bayes factor for the variant from fine-mapping */ + /** Log (natural) Bayes factor for the variant from fine-mapping. */ logBF?: Maybe; - /** Exponent of the P-value for this variant in the credible set */ + /** Exponent of the P-value for this variant in the credible set. */ pValueExponent?: Maybe; - /** Mantissa of the P-value for this variant in the credible set */ + /** Mantissa of the P-value for this variant in the credible set. */ pValueMantissa?: Maybe; - /** Posterior inclusion probability for the variant within this credible set */ + /** Posterior inclusion probability for the variant within this credible set. */ posteriorProbability: Scalars['Float']['output']; - /** R-squared (LD) between this credible set variant and the lead variant */ + /** R-squared (LD) between this credible set variant and the lead variant. */ r2Overall?: Maybe; - /** Standard error of this variant in the credible set */ + /** Standard error of this variant in the credible set. */ standardError?: Maybe; - /** Variant in the credible set */ + /** Variant in the credible set. */ variant?: Maybe; }; -/** Mapping result for a single input term */ -export type MappingResult = { - __typename?: 'MappingResult'; - /** Search hits that the term maps to, if any */ - hits?: Maybe>; - /** Input term submitted for mapping */ - term: Scalars['String']['output']; +/** Filter for locus. */ +export type LocusFilter = { + /** Keep loci whose variant ID is one of these. */ + variantIds?: InputMaybe>; }; -/** Mapping results for multiple terms with total hit count and aggregations */ -export type MappingResults = { - __typename?: 'MappingResults'; - /** Facet aggregations over mapped entities and categories */ - aggregations?: Maybe; - /** Per-term mapping results */ - mappings: Array; - /** Total number of mapped hits across all terms */ - total: Scalars['Long']['output']; +/** The result of a paginated query, containing the total number of items and the items. */ +export type LocusPage = { + __typename?: 'LocusPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Mechanism of action information for a drug */ +/** Mechanism of action information for a drug. */ export type MechanismOfActionRow = { __typename?: 'MechanismOfActionRow'; - /** Classification of how the drug interacts with its target (e.g., ACTIVATOR, INHIBITOR) */ + /** Classification of how the drug interacts with its target (e.g., ACTIVATOR, INHIBITOR). */ actionType?: Maybe; - /** Description of the mechanism of action */ + /** Description of the mechanism of action. */ mechanismOfAction: Scalars['String']['output']; - /** Reference information supporting the mechanism of action */ - references?: Maybe>; - /** Name of the target molecule */ + /** Reference information supporting the mechanism of action. */ + references: Array; + /** Name of the target molecule. */ targetName?: Maybe; - /** List of on-target (genes or proteins) involved in the drug or clinical candidate mechanism of action */ + /** + * List of on-target (genes or proteins) involved in the drug or clinical candidate + * mechanism of action. + */ targets: Array; }; -/** Collection of mechanisms of action for a drug molecule */ +/** Collection of mechanisms of action for a drug molecule. */ export type MechanismsOfAction = { __typename?: 'MechanismsOfAction'; - /** List of mechanism of action entries */ + /** List of mechanism of action entries. */ rows: Array; - /** Unique list of action types across all mechanisms */ + /** Unique list of action types across all mechanisms. */ uniqueActionTypes: Array; - /** Unique list of target types across all mechanisms */ + /** Unique list of target types across all mechanisms. */ uniqueTargetTypes: Array; }; -/** Metadata about the Open Targets Platform API including version information */ +/** Metadata for the API and its underlying data sources. */ export type Meta = { __typename?: 'Meta'; - /** API version information */ - apiVersion: ApiVersion; - /** Data release prefix */ - dataPrefix: Scalars['String']['output']; - /** Data release version information */ - dataVersion: DataVersion; - /** Platform datasets described following MLCroissant metadata format. Datasets are described in a JSONLD file containing extensive metadata including table and column descriptions, schemas, location and relationships. */ + /** API version information. */ + apiVersion: Version; + /** Data release namespace. */ + dataNamespace: Scalars['String']['output']; + /** Data release version information. */ + dataVersion: Version; + /** Platform datasets described following MLCroissant metadata format. */ downloads?: Maybe; - /** Flag indicating whether data release prefix is enabled */ - enableDataReleasePrefix: Scalars['Boolean']['output']; - /** Name of the platform */ + /** Name of the API. */ name: Scalars['String']['output']; - /** Open Targets product */ - product: Scalars['String']['output']; + /** Open Targets platform API product name. */ + product: Flavor; }; -/** Container for phenotype class-related attributes */ +/** Container for phenotype class-related attributes. */ export type ModelPhenotypeClasses = { __typename?: 'ModelPhenotypeClasses'; - /** Unique identifier for the phenotype class [bioregistry:mp] */ + /** Unique identifier for the phenotype class [bioregistry:mp]. */ id: Scalars['String']['output']; - /** Descriptive label for the phenotype class */ + /** Descriptive label for the phenotype class. */ label: Scalars['String']['output']; }; -/** Mouse phenotype information linking human targets to observed phenotypes in mouse models */ +/** Mouse phenotype information linking human targets to observed phenotypes in mouse models. */ export type MousePhenotype = { __typename?: 'MousePhenotype'; - /** Container for all biological model-related attributes */ + /** Container for all biological model-related attributes. */ biologicalModels: Array; - /** Container for phenotype class-related attributes */ + /** Container for phenotype class-related attributes. */ modelPhenotypeClasses: Array; - /** Identifier for the specific phenotype observed in the model [bioregistry:mp] */ + /** Identifier for the specific phenotype observed in the model [bioregistry:mp]. */ modelPhenotypeId: Scalars['String']['output']; - /** Human-readable label describing the observed phenotype */ + /** Human-readable label describing the observed phenotype. */ modelPhenotypeLabel: Scalars['String']['output']; - /** Name of the target gene as represented in the mouse model */ + /** Name of the target gene as represented in the mouse model. */ targetInModel: Scalars['String']['output']; - /** Ensembl identifier for the target gene in the mouse model */ + /** Ensembl identifier for the target gene in the mouse model. */ targetInModelEnsemblId?: Maybe; - /** MGI identifier for the target gene in the mouse model [bioregistry:mgi] */ + /** MGI identifier for the target gene in the mouse model [bioregistry:mgi]. */ targetInModelMgiId: Scalars['String']['output']; }; -/** Generic pair of a name and its description */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type MousePhenotypePage = { + __typename?: 'MousePhenotypePage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** An element with name and description. */ export type NameDescription = { __typename?: 'NameDescription'; - /** Human-readable description of the element */ + /** Description of the element. */ description: Scalars['String']['output']; - /** Name or label of the element */ + /** Name of the element. */ name: Scalars['String']['output']; }; -/** Open Targets (OTAR) project information associated with a disease. Data only available in Partner Platform Preview (PPP) */ -export type OtarProject = { - __typename?: 'OtarProject'; - /** Whether the project integrates data in the Open Targets Partner Preview (PPP) */ - integratesInPPP?: Maybe; - /** OTAR project code identifier */ - otarCode: Scalars['String']['output']; - /** Name of the OTAR project */ - projectName?: Maybe; - /** Reference or citation for the OTAR project */ - reference: Scalars['String']['output']; - /** Status of the OTAR project */ - status?: Maybe; -}; - -/** Pagination settings for controlling result set size and page navigation. Uses zero-based indexing to specify which page of results to retrieve. */ -export type Pagination = { - /** Zero-based page index */ - index: Scalars['Int']['input']; - /** Number of items per page [Default: 25, Max: 3000] */ - size: Scalars['Int']['input']; +/** A bucket for a distribution of values. */ +export type OptBoolBucket = { + __typename?: 'OptBoolBucket'; + /** The number of occurrences of the value. */ + count: Scalars['Int']['output']; + /** The value of the bucket. */ + value?: Maybe; }; -/** Pathway metadata from Reactome pathway database. */ +/** Nature of the record the report originates from. */ +export enum Origin { + /** TODO DESCRIPTION: Clinical trial record. */ + ClinicalTrial = 'CLINICAL_TRIAL', + /** TODO DESCRIPTION: Curated resource record. */ + CuratedResource = 'CURATED_RESOURCE', + /** TODO DESCRIPTION: Drug label record. */ + DrugLabel = 'DRUG_LABEL', + /** TODO DESCRIPTION: Regulatory agency record. */ + RegulatoryAgency = 'REGULATORY_AGENCY' +} + +/** Represents a paginated list of items. */ +export type Page = { + /** The index of the page to fetch, starting from 0. */ + index?: Scalars['Int']['input']; + /** The number of items per page. */ + size?: Scalars['Int']['input']; +}; + +/** Detection method used to identify participants in the interaction. */ +export type ParticipantDetectionMethod = { + __typename?: 'ParticipantDetectionMethod'; + /** + * Molecular Interactions (MI) identifier for participant B's detection method + * [bioregistry:mi]. + */ + miIdentifier?: Maybe; + /** Short name of participant A's detection method. */ + shortName?: Maybe; +}; + +/** Pathway annotations for a target. */ export type Pathway = { __typename?: 'Pathway'; - /** Reactome pathway identifier [bioregistry:reactome] */ + /** Name of the pathway. */ id?: Maybe; - /** Reactome pathway name */ - name: Scalars['String']['output']; + /** Unique identifier for the pathway. */ + name?: Maybe; }; -/** Pharmacogenomics data linking genetic variants to drug responses. Data is integrated from sources including ClinPGx. */ +/** + * Pharmacogenomics data linking genetic variants to drug responses. Data is integrated from + * sources including ClinPGx. + */ export type Pharmacogenomics = { __typename?: 'Pharmacogenomics'; - /** Identifier for the data provider */ - datasourceId?: Maybe; - /** Classification of the type of pharmacogenomic data (e.g., clinical_annotation) */ - datatypeId?: Maybe; - /** List of drugs or clinical candidates associated with the pharmacogenomic data */ + /** Identifier for the data provider. */ + datasourceId: Scalars['String']['output']; + /** Classification of the type of pharmacogenomic data (e.g., `clinical_annotation`). */ + datatypeId: Scalars['String']['output']; + /** List of drugs or clinical candidates associated with the pharmacogenomic data. */ drugs: Array; - /** Strength of the scientific support for the variant/drug response */ - evidenceLevel?: Maybe; - /** Genetic variant configuration */ + /** Strength of the scientific support for the variant/drug response. */ + evidenceLevel: Scalars['String']['output']; + /** Genetic variant configuration. */ genotype?: Maybe; - /** Explanation of the genotype's clinical significance */ + /** Explanation of the genotype's clinical significance. */ genotypeAnnotationText?: Maybe; - /** Identifier for the specific genetic variant combination (e.g., 1_1500_A_A,T) */ + /** Identifier for the specific genetic variant combination (e.g., `1_1500_A_A,T`). */ genotypeId?: Maybe; - /** Haplotype ID in the ClinPGx dataset */ + /** Haplotype ID in the ClinPGx dataset. */ haplotypeFromSourceId?: Maybe; - /** Combination of genetic variants that constitute a particular allele of a gene (e.g., CYP2C9*3) */ + /** + * Combination of genetic variants that constitute a particular allele of a gene (e.g., + * CYP2C9*3). + */ haplotypeId?: Maybe; - /** Whether the target is directly affected by the variant */ + /** Whether the target is directly affected by the variant. */ isDirectTarget: Scalars['Boolean']['output']; - /** PubMed identifier (PMID) of the literature entry [bioregistry:pubmed] */ - literature?: Maybe>; - /** Classification of the drug response type (e.g., Toxicity) */ - pgxCategory?: Maybe; - /** Phenotype identifier from the source */ + /** PubMed identifier (PMID) of the literature entry [bioregistry:pubmed]. */ + literature: Array; + /** Classification of the drug response type (e.g., Toxicity). */ + pgxCategory: Scalars['String']['output']; + /** Phenotype identifier from the source. */ phenotypeFromSourceId?: Maybe; - /** Description of the phenotype associated with the variant */ + /** Description of the phenotype associated with the variant. */ phenotypeText?: Maybe; - /** Identifier of the study providing the pharmacogenomic evidence */ + /** Identifier of the study providing the pharmacogenomic evidence. */ studyId?: Maybe; - /** Target entity */ + /** Target entity. */ target?: Maybe; - /** Target (gene/protein) identifier as reported by the data source */ + /** Target (gene/protein) identifier as reported by the data source. */ targetFromSourceId?: Maybe; - /** Annotation details about the variant effect on drug response */ - variantAnnotation?: Maybe>; - /** The sequence ontology identifier of the consequence of the variant based on Ensembl VEP in the context of the transcript [bioregistry:so] */ + /** Annotation details about the variant effect on drug response. */ + variantAnnotation: Array; + /** + * The sequence ontology identifier of the consequence of the variant based on Ensembl VEP in + * the context of the transcript [bioregistry:so] + */ variantFunctionalConsequence?: Maybe; - /** The sequence ontology identifier of the consequence of the variant based on Ensembl VEP in the context of the transcript [bioregistry:so] */ + /** + * The sequence ontology identifier of the consequence of the variant based on Ensembl VEP in + * the context of the transcript [bioregistry:so]. + */ variantFunctionalConsequenceId?: Maybe; - /** Variant identifier in CHROM_POS_REF_ALT notation */ + /** Variant identifier in CHROM_POS_REF_ALT notation. */ variantId?: Maybe; - /** dbSNP rsID identifier for the variant */ + /** dbSNP rsID identifier for the variant. */ variantRsId?: Maybe; }; -/** Descriptions of variant consequences at protein level. Protein coding coordinates link variants to their amino acid-level consequences in protein products. */ -export type ProteinCodingCoordinate = { - __typename?: 'ProteinCodingCoordinate'; - /** Amino acid resulting from the variant */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type PharmacogenomicsPage = { + __typename?: 'PharmacogenomicsPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** A container for all evidence-related attributes supporting the disease-phenotype association. */ +export type PhenotypeEvidence = { + __typename?: 'PhenotypeEvidence'; + /** The category of biological information being provided (e.g., clinical, genetic, etc.). */ + aspect?: Maybe; + /** Indicates whether the evidence has been manually curated. */ + bioCuration?: Maybe; + /** The disease name as recorded in the original source. */ + diseaseFromSource: Scalars['String']['output']; + /** Unique identifier for the disease from the original source. */ + diseaseFromSourceId: Scalars['String']['output']; + /** Standardised disease name. */ + diseaseName: Scalars['String']['output']; + /** The type of evidence supporting the disease-phenotype relationship. */ + evidenceType?: Maybe; + /** The observed frequency of the phenotype in individuals with the disease. */ + frequency?: Maybe; + /** Additional characteristics or modifiers related to the phenotype. */ + modifiers: Array; + /** Age or stage of disease onset for the phenotype. */ + onset: Array; + /** Specifies if a phenotype is not observed in a given disease. */ + qualifierNot: Scalars['Boolean']['output']; + /** References or citations supporting the evidence [bioregistry:pubmed]. */ + references: Array; + /** The data source from which the evidence was obtained. */ + resource: Scalars['String']['output']; + /** Indicates if the association is specific to a biological sex. */ + sex?: Maybe; +}; + +/** Data source information for protein coding coordinates. */ +export type ProteinCodingCoordinateDatasource = { + __typename?: 'ProteinCodingCoordinateDatasource'; + /** Count of evidence from this data source. */ + datasourceCount: Scalars['Int']['output']; + /** Identifier of the data source. */ + datasourceId: Scalars['String']['output']; + /** Human-readable name of the data source. */ + datasourceNiceName: Scalars['String']['output']; +}; + +/** + * Protein coding coordinates linking this variant to its amino acid-level consequences in protein + * products. Describes variant consequences at the protein level including amino acid changes and + * their positions. + */ +export type ProteinCodingCoordinates = { + __typename?: 'ProteinCodingCoordinates'; + /** Amino acid resulting from the variant. */ alternateAminoAcid: Scalars['String']['output']; - /** Position of the amino acid affected by the variant in the protein sequence */ + /** Position of the amino acid affected by the variant in the protein sequence. */ aminoAcidPosition: Scalars['Int']['output']; - /** Data sources providing evidence for the protein coding coordinate */ - datasources: Array; - /** Disease the protein coding variant has been associated with */ + /** Data sources providing evidence for the protein coding coordinate. */ + datasources: Array; + /** Disease the protein coding variant has been associated with. */ diseases: Array; - /** Reference amino acid at this position */ + /** Reference amino acid at this position. */ referenceAminoAcid: Scalars['String']['output']; - /** Target (gene/protein) the protein coding variant has been associated with */ + /** Target (gene/protein) the protein coding variant has been associated with. */ target?: Maybe; - /** Therapeutic areas associated with the variant-consequence relationship */ + /** Therapeutic areas associated with the variant-consequence relationship. */ therapeuticAreas: Array; - /** UniProt protein accessions for the affected protein [bioregistry:uniprot] */ + /** UniProt protein accessions for the affected protein [bioregistry:uniprot]. */ uniprotAccessions: Array; /** Protein coding variant */ variant?: Maybe; - /** The sequence ontology term capturing the consequence of the variant based on Ensembl VEP in the context of the transcript [bioregistry:so] */ + /** + * The sequence ontology term capturing the consequence of the variant based on Ensembl VEP in + * the context of the transcript [bioregistry:so].\ + */ variantConsequences: Array; - /** Score indicating the predicted effect of the variant on the protein */ + /** Score indicating the predicted effect of the variant on the protein. */ variantEffect?: Maybe; + variantFunctionalConsequenceIds: Array; }; -/** Collection of protein coding coordinates linking variants to their amino acid-level consequences */ -export type ProteinCodingCoordinates = { - __typename?: 'ProteinCodingCoordinates'; - /** Total number of phenotype-associated protein coding variants */ - count: Scalars['Long']['output']; - id: Scalars['String']['output']; - /** List of phenotype-associated protein coding variants */ - rows: Array; -}; +/** The result of a paginated query, containing the total number of items and the items. */ +export type ProteinCodingCoordinatesPage = { + __typename?: 'ProteinCodingCoordinatesPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** Source that provided the clinical report. */ +export enum Provider { + /** Aggregate Analysis of ClinicalTrials.gov. */ + Aact = 'AACT', + /** ChEMBL. */ + Chembl = 'CHEMBL', + /** European Medicines Agency. */ + Ema = 'EMA', + /** Pharmaceuticals and Medical Devices Agency. */ + Pmda = 'PMDA', + /** Therapeutic Target Database. */ + Ttd = 'TTD' +} -/** Referenced publication information */ +/** Referenced publication information. */ export type Publication = { __typename?: 'Publication'; - /** PubMed Central identifier (if available) [bioregistry:pmc] */ + /** PubMed Central identifier (if available) [bioregistry:pmc]. */ pmcid?: Maybe; - /** PubMed identifier [bioregistry:pubmed] */ + /** PubMed identifier [bioregistry:pubmed]. */ pmid: Scalars['String']['output']; - /** Publication date */ + /** Publication date. */ publicationDate: Scalars['String']['output']; + /** Relevance to each queried id. */ + relevances: Array; }; -/** List of referenced publications with total counts, earliest year and pagination cursor */ -export type Publications = { - __typename?: 'Publications'; - /** Total number of publications matching the query */ - count: Scalars['Long']['output']; - /** Opaque pagination cursor to request the next page of results */ - cursor?: Maybe; - /** Earliest publication year */ - earliestPubYear: Scalars['Int']['output']; - /** Number of publications after applying filters */ - filteredCount: Scalars['Long']['output']; - /** List of publications */ +/** + * The result of a paginated query, containing the total number of items, the items, and statistics + * about the query. + */ +export type PublicationPage = { + __typename?: 'PublicationPage'; + count: Scalars['Int']['output']; rows: Array; + stats: PublicationStats; +}; + +/** Statistics for a set of publications. */ +export type PublicationStats = { + __typename?: 'PublicationStats'; + /** Earliest publication date for the target without considering the time range. */ + earliestPubDate: Scalars['Int']['output']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type Query = { __typename?: 'Query'; - /** List of available evidence datasources and their datatypes */ - associationDatasources: Array; + /** Retrieve a clinical report by an identifier. */ clinicalReport?: Maybe; + /** Retrieve a list of clinical reports by identifiers. */ clinicalReports: Array; - /** Retrieve a 95% credible set (study-locus) by identifier */ + /** Retrieve a credible set by its identifier. */ credibleSet?: Maybe; - /** List credible sets filtered by study-locus IDs, study IDs, variant IDs, study types or regions */ - credibleSets: CredibleSets; - /** Retrieve a disease or phenotype by identifier (e.g. EFO_0000400) */ + /** Retrieve a list of credible sets by their identifier. */ + credibleSets: CredibleSetPage; disease?: Maybe; - /** Retrieve multiple diseases by disease or phenotype identifiers */ - diseases: Array; - /** Retrieve a drug or clinical candidate by identifier (e.g. CHEMBL112) */ + /** Fetch diseases by EFO ID. */ + diseases: DiseasePage; + /** Retrieve a drug or a clinical candidate by an identifier. */ drug?: Maybe; - /** Retrieve multiple drugs or clinical candidates by identifiers */ - drugs: Array; - /** Search sets of targets or diseases used to facet associations */ + /** Retrieve multiple drugs or clinical candidates by identifiers. */ + drugs: DrugPage; + /** Search sets of targets or diseases used to facet associations. */ facets: SearchFacetsResults; - /** Fetch Gene Ontology terms by GO identifiers */ - geneOntologyTerms: Array>; - /** List of molecular interaction resources and their versions */ - interactionResources: Array; - /** Map free-text terms to canonical IDs used as primary identifiers in the Platform (targets, diseases, drugs, variants or studies). For example, mapping 'diabetes' to EFO_0000400 or 'BRCA1' to ENSG00000139618 */ - mapIds: MappingResults; - /** Open Targets API metadata, including version and configuration information */ meta: Meta; - region: Region; - /** Full-text, multi-entity search across all types of entities (targets, diseases, drugs, variants or studies) */ + /** + * Full-text, multi-entity search across all types of entities (targets, diseases, drugs, + * variants or studies). + */ search: SearchResults; - /** List GWAS or molecular QTL studies filtered by ID(s) and/or disease(s); supports ontology expansion */ - studies: Studies; - /** Retrieve a GWAS or molecular QTL study by ID (e.g. GCST004131) */ + studies: StudyPage; study?: Maybe; - /** Retrieve a target (gene/protein) by target identifier (e.g. ENSG00000139618) */ + /** Retrieve a target (gene/protein) by target identifier (e.g. ENSG00000139618). */ target?: Maybe; - /** Retrieve multiple targets by target identifiers */ - targets: Array; - /** Retrieve a variant by identifier in the format of CHROM_POS_REF_ALT for SNPs and short indels (e.g. 19_44908684_T_C) */ + /** Retrieve multiple targets by target identifiers. */ + targets: TargetPage; + /** + * Retrieve a variant by identifier in the format of CHROM_POS_REF_ALT for SNPs and short + * indels (e.g. 19_44908684_T_C). + */ variant?: Maybe; + /** + * Retrieve a list of variants by their identifier in the format of CHROM_POS_REF_ALT for SNPs + * and short indels (e.g. 19_44908684_T_C). + */ + variants: VariantPage; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryClinicalReportArgs = { clinicalReportId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryClinicalReportsArgs = { clinicalReportsIds: Array; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryCredibleSetArgs = { studyLocusId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryCredibleSetsArgs = { - page?: InputMaybe; - regions?: InputMaybe>; - studyIds?: InputMaybe>; - studyLocusIds?: InputMaybe>; - studyTypes?: InputMaybe>; - variantIds?: InputMaybe>; + page?: Page; + studyLocusIds: Array; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryDiseaseArgs = { efoId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryDiseasesArgs = { efoIds: Array; + page?: Page; + search?: InputMaybe; + sort: Array; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryDrugArgs = { chemblId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryDrugsArgs = { chemblIds: Array; + page?: Page; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryFacetsArgs = { category?: InputMaybe; entityNames?: InputMaybe>; - page?: InputMaybe; - queryString?: InputMaybe; -}; - - -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ -export type QueryGeneOntologyTermsArgs = { - goIds: Array; -}; - - -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ -export type QueryMapIdsArgs = { - entityNames?: InputMaybe>; - queryTerms: Array; -}; - - -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ -export type QueryRegionArgs = { - chromosome: ChromosomeEnum; - positionEnd: Scalars['Int']['input']; - positionStart: Scalars['Int']['input']; + page?: Page; + queryString: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QuerySearchArgs = { entityNames?: InputMaybe>; - page?: InputMaybe; + page?: Page; queryString: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryStudiesArgs = { diseaseIds?: InputMaybe>; - enableIndirect?: InputMaybe; - page?: InputMaybe; - studyId?: InputMaybe; + enableIndirect?: Scalars['Boolean']['input']; + filter?: InputMaybe; + page?: Page; + search?: InputMaybe; + sort: Array; + studyIds?: InputMaybe>; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryStudyArgs = { - studyId?: InputMaybe; + studyId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryTargetArgs = { ensemblId: Scalars['String']['input']; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryTargetsArgs = { ensemblIds: Array; + page?: Page; }; -/** Root query type providing access to all entities and search functionality in the Open Targets Platform. Supports retrieval of targets, diseases, drugs, variants, studies, credible sets, and their associations. Includes full-text search, mapping, and filtering capabilities. */ +/** The query root for the `Platform` product. */ export type QueryVariantArgs = { variantId: Scalars['String']['input']; }; -/** Reactome pathway information for the target */ + +/** The query root for the `Platform` product. */ +export type QueryVariantsArgs = { + page?: Page; + variantIds: Array; +}; + +/** Pathway metadata from Reactome pathway database. */ export type ReactomePathway = { __typename?: 'ReactomePathway'; - /** Pathway name */ + /** Reactome pathway name. */ pathway: Scalars['String']['output']; - /** Reactome pathway identifier */ + /** Reactome pathway identifier [bioregistry:reactome]. */ pathwayId: Scalars['String']['output']; - /** Top-level pathway term */ topLevelTerm: Scalars['String']['output']; }; -/** Reference information supporting the drug mechanisms of action */ +/** Reference information supporting the drug mechanisms of action. */ export type Reference = { __typename?: 'Reference'; - /** List of reference identifiers */ - ids?: Maybe>; - /** Source of the reference (e.g., PubMed, FDA, package inserts) */ + /** List of reference identifiers. */ + ids: Array; + /** Source of the reference (e.g., PubMed, FDA, package inserts). */ source: Scalars['String']['output']; - /** List of URLs linking to the reference */ - urls?: Maybe>; -}; - -/** Region with chromosome, start, and end positions */ -export type Region = { - __typename?: 'Region'; - /** Chromosome */ - chromosome: ChromosomeEnum; - /** End position */ - end: Scalars['Int']['output']; - /** Start position */ - start: Scalars['Int']['output']; - /** Targets overlapping this region */ - targets: Targets; + /** List of URLs linking to the reference. */ + urls: Array; }; - -/** Region with chromosome, start, and end positions */ -export type RegionTargetsArgs = { - page?: InputMaybe; -}; - -/** Score from a specific datasource */ +/** Score from a specific datasource. */ export type ResourceScore = { __typename?: 'ResourceScore'; - /** Name of the resource providing the score */ + /** Name of the resource providing the score. */ name: Scalars['String']['output']; - /** Score value from the resource */ + /** Score value from the resource. */ value: Scalars['Float']['output']; }; -/** Biosamples used in safety assessments */ -export type SafetyBiosample = { - __typename?: 'SafetyBiosample'; - /** Format of the biosample cells */ +/** Biosamples used in safety assessments. */ +export type SafetyBiosamples = { + __typename?: 'SafetyBiosamples'; + /** Format of the biosample cells. */ cellFormat?: Maybe; - /** Cell identifier for the biosample */ + /** Cell identifier for the biosample. */ cellId?: Maybe; - /** Label of the biosample cell */ + /** Label of the biosample cell. */ cellLabel?: Maybe; - /** Tissue ID for the biosample */ + /** Tissue ID for the biosample. */ tissueId?: Maybe; - /** Label of the biosample tissue */ + /** Label of the biosample tissue. */ tissueLabel?: Maybe; }; -/** Effects reported for safety events */ +/** Effects reported for safety events. */ export type SafetyEffects = { __typename?: 'SafetyEffects'; - /** Direction of the reported effect (e.g., increase or decrease) */ + /** Direction of the reported effect (e.g., increase or decrease). */ direction: Scalars['String']['output']; - /** Dosing conditions related to the reported effect */ + /** Dosing conditions related to the reported effect. */ dosing?: Maybe; }; -/** Safety liabilities associated with the target */ +/** Safety liabilities associated with the target. */ export type SafetyLiability = { __typename?: 'SafetyLiability'; - /** Biosamples used in safety assessments */ - biosamples?: Maybe>; - /** Data source reporting the safety liability */ + /** Biosamples used in safety assessments. */ + biosamples: Array; + /** Data source reporting the safety liability. */ datasource: Scalars['String']['output']; - /** Effects reported for the safety event */ - effects?: Maybe>; - /** Safety event associated with the target */ + /** Effects reported for the safety event. */ + effects: Array; + /** Safety event associated with the target. */ event?: Maybe; - /** Unique identifier for the safety event */ + /** Unique identifier for the safety event. */ eventId?: Maybe; - /** Literature references for the safety liability */ + /** Literature references for the safety liability. */ literature?: Maybe; - /** Studies related to safety assessments */ - studies?: Maybe>; - /** URL linking to more details on safety liabilities */ + /** Studies related to safety assessments. */ + studies: Array; + /** URL linking to more details on safety liabilities. */ url?: Maybe; }; -/** Studies related to safety assessments */ -export type SafetyStudy = { - __typename?: 'SafetyStudy'; - /** Description of the safety study */ +/** Studies related to safety assessments. */ +export type SafetyStudies = { + __typename?: 'SafetyStudies'; + /** Description of the safety study. */ description?: Maybe; - /** Name of the safety study */ + /** Name of the safety study. */ name?: Maybe; - /** Type of safety study */ + /** Type of safety study. */ type?: Maybe; }; -/** Sample information including ancestry and sample size. Used for both discovery and replication phases of GWAS studies. */ +/** Represents a sample of biological material. */ export type Sample = { __typename?: 'Sample'; - /** Sample ancestry name */ + /** Sample ancestry name. */ ancestry: Scalars['String']['output']; - /** Sample size */ + /** Sample size. */ sampleSize: Scalars['Int']['output']; }; -/** Scored component used in association scoring */ -export type ScoredComponent = { - __typename?: 'ScoredComponent'; - /** Component identifier (e.g., datatype or datasource name) */ +/** A score for a datasource, used in association scoring. */ +export type Score = { + __typename?: 'Score'; + /** Identifier of the Datasource (e.g., `impc`, `chembl`). */ id: Scalars['String']['output']; - /** Association score for the component. Scores are normalized to a range of 0-1. The higher the score, the stronger the association. */ + /** + * Association score for the Datasource. Scores are normalized to a range of 0-1. The higher + * the score, the stronger the association. + */ score: Scalars['Float']['output']; }; -/** Facet category with result count */ -export type SearchFacetsCategory = { - __typename?: 'SearchFacetsCategory'; - /** Facet category name */ - name: Scalars['String']['output']; - /** Number of results in this category */ - total: Scalars['Long']['output']; -}; - -/** Facet search hit for a single category item */ -export type SearchFacetsResult = { - __typename?: 'SearchFacetsResult'; - /** Facet category this item belongs to (e.g., target, disease) */ +/** Facet search hit for a single category item. */ +export type SearchFacetResult = { + __typename?: 'SearchFacetResult'; + /** Facet category this item belongs to (e.g., target, disease). */ category: Scalars['String']['output']; - /** Optional identifier of the datasource contributing this facet */ - datasourceId?: Maybe; - /** Optional list of underlying entity identifiers represented by this facet */ - entityIds?: Maybe>; - /** Highlighted text snippets showing why this facet matched the query */ + /** Identifier of the datasource contributing this facet. */ + datasourceId: Scalars['String']['output']; + /** Optional list of underlying entity identifiers represented by this facet. */ + entityIds: Array; + /** Highlighted text snippets showing why this facet matched the query. */ highlights: Array; - /** Facet identifier, which can be inputted in the associations query to filter by this facet */ + /** Facet identifier. */ id: Scalars['String']['output']; - /** Human-readable facet label */ + /** Human-readable facet label. */ label: Scalars['String']['output']; - /** Relevance score of the facet hit for the current query */ + /** Relevance score of the facet hit for the current query. */ score: Scalars['Float']['output']; }; -/** Facet search results including hits and category counts */ +/** Facet search category with result count. */ +export type SearchFacetsCategory = { + __typename?: 'SearchFacetsCategory'; + /** Facet category name. */ + name: Scalars['String']['output']; + /** Total number of results in this category. */ + total: Scalars['Int']['output']; +}; + +/** Facet search results including hits and category counts. */ export type SearchFacetsResults = { __typename?: 'SearchFacetsResults'; - /** Facet categories with their result counts */ + /** Facet categories with their result counts. */ categories: Array; - /** List of facetable hits matching the query */ - hits: Array; - /** Total number of facetable results for the current query */ - total: Scalars['Long']['output']; + /** List of facetable hits matching the query. */ + hits: Array; + /** Total number of facetable results for the current query. */ + total: Scalars['Int']['output']; }; -/** Full-text search hit describing a single entity and its relevance to the query */ +/** + * Full-text search hit describing a single entity and its relevance to the + * query. + */ export type SearchResult = { __typename?: 'SearchResult'; - /** List of categories the hit belongs to (e.g., TARGET, DISEASE, DRUG) */ + /** List of categories the hit belongs to. */ category: Array; - /** Short description or summary of the entity */ + /** Short description or summary of the entity. */ description?: Maybe; - /** Entity type of the hit (e.g., target, disease, drug, variant, study) */ + /** Entity type (target, disease, drug, variant, study). */ entity: Scalars['String']['output']; - /** Highlighted text snippets showing where the query matched */ + /** Highlighted text snippets showing where the query matched. */ highlights: Array; - /** Entity identifier (e.g., Ensembl, EFO, ChEMBL, variant or study ID) */ + /** Entity identifier (e.g., Ensembl, EFO, ChEMBL, variant or study ID). */ id: Scalars['String']['output']; - /** Additional keywords associated with the entity to improve search */ - keywords?: Maybe>; - /** Score boosting multiplier applied to the hit during search ranking */ + /** Additional keywords associated with the entity. */ + keywords: Array; + /** Score boosting multiplier applied to the hit during ranking. */ multiplier: Scalars['Float']['output']; - /** Primary display name for the entity */ + /** Primary display name for the entity. */ name: Scalars['String']['output']; - /** List of n-grams derived from the name used for fuzzy matching */ - ngrams?: Maybe>; - /** Resolved Platform entity corresponding to this search hit */ - object?: Maybe; - /** List of name prefixes used for prefix matching */ - prefixes?: Maybe>; - /** Relevance score returned by the search engine for this hit */ + /** List of n-grams derived from the name used for fuzzy matching. */ + ngrams: Array; + /** Resolved entity corresponding to the search hit. */ + object?: Maybe; + /** List of name prefixes used for prefix matching. */ + prefixes: Array; + /** Relevance score returned from the search engine for this hit. */ score: Scalars['Float']['output']; }; -/** Search result aggregation category with result count */ +/** Search result aggregation category with result count. */ export type SearchResultAggCategory = { __typename?: 'SearchResultAggCategory'; - /** Category name (e.g., target, disease, drug) */ + /** Category name (e.g., target, disease, drug). */ name: Scalars['String']['output']; - /** Total number of search results in this category */ - total: Scalars['Long']['output']; + /** Total number of search results in this category. */ + total: Scalars['Int']['output']; }; -/** Search result aggregation by entity type with category breakdown */ +/** Search result aggregation by entity type with category breakdown. */ export type SearchResultAggEntity = { __typename?: 'SearchResultAggEntity'; - /** List of category aggregations within this entity type */ + /** List of category aggregations within this entity type. */ categories: Array; - /** Entity type name (e.g., target, disease, drug, variant, study) */ + /** Entity type name (e.g., target, disease, drug, variant, study). */ name: Scalars['String']['output']; - /** Total number of search results for this entity type */ - total: Scalars['Long']['output']; + /** Total number of search results in this entity type. */ + total: Scalars['Int']['output']; }; -/** Search result aggregations grouped by entity type */ +/** Search result aggregations grouped by entity type. */ export type SearchResultAggs = { __typename?: 'SearchResultAggs'; - /** List of entity type aggregations with category breakdowns */ + /** List of entity type aggregations with category breakdowns. */ entities: Array; - /** Total number of search results across all entities */ - total: Scalars['Long']['output']; + /** Total number of search results across all entities. */ + total: Scalars['Int']['output']; }; -/** Search results including hits and facet aggregations */ +/** Search results including hits and facet aggregations. */ export type SearchResults = { __typename?: 'SearchResults'; - /** Facet aggregations by entity and category for the current query */ + /** Facet aggregations by entity and category for the current query. */ aggregations?: Maybe; - /** Combined list of search hits across requested entities */ + /** Combined list of search hits across requested entities. */ hits: Array; - /** Total number of results for the current query and entity filter */ - total: Scalars['Long']['output']; + /** Total number of results for the current query and entity filter. */ + total: Scalars['Int']['output']; }; -/** Sequence ontology term identifier and name */ +/** + * A term from the Sequence Ontology (SO), a controlled vocabulary of sequence features and variant + * consequences. + */ export type SequenceOntologyTerm = { __typename?: 'SequenceOntologyTerm'; - /** Sequence ontology term identifier [bioregistry:so] */ + /** Sequence Ontology term identifier [bioregistry:so]. */ id: Scalars['String']['output']; - /** Sequence ontology term label (e.g. 'missense_variant') */ + /** Human-readable label for the term (e.g. `missense_variant`). */ label: Scalars['String']['output']; }; -/** Semantic similarity score between labels, used to suggest related entities */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type SimilarEntityPage = { + __typename?: 'SimilarEntityPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** Semantic similarity score between labels, used to suggest related entities. */ export type Similarity = { __typename?: 'Similarity'; - /** Entity category this similarity refers to (e.g., target, disease, drug) */ - category: Scalars['String']['output']; - /** Identifier of the similar entity (e.g., Ensembl, EFO, ChEMBL ID) */ + /** Entity category this similarity refers to (`Target`, `Disease` or `Drug`). */ + category: Category; + /** Identifier of the similar entity (e.g., Ensembl, EFO, ChEMBL ID). */ id: Scalars['String']['output']; - /** Resolved Platform entity corresponding to this similar label */ - object?: Maybe; - /** Similarity score between this entity and the query label. Scores are normalised between 0 and 1; higher scores indicate more similar entities. */ + /** Resolved Platform entity corresponding to this similar label. */ + object?: Maybe; + /** + * Similarity score between this entity and the query label. Scores are normalised between 0 + * and 1; higher scores indicate more similar entities. + */ score: Scalars['Float']['output']; }; -/** Strand orientation of a genomic feature */ +/** The union of `Target`, `Disease` and `Drug` entities. */ +export type SimilarityUnion = Disease | Drug | Target; + +/** Sort direction: ascending or descending. */ +export enum SortDirection { + /** Ascending order. */ + Ascending = 'ASCENDING', + /** Descending order. */ + Descending = 'DESCENDING' +} + +/** Strand orientation of a genomic feature. */ export enum Strand { - /** Negative strand */ + /** Negative strand orientation. */ Negative = 'NEGATIVE', - /** Positive strand */ + /** Positive strand orientation. */ Positive = 'POSITIVE', - /** Unknown strand */ + /** Unknown strand orientation. */ Unknown = 'UNKNOWN' } -/** List of GWAS and molecular QTL studies with total count */ -export type Studies = { - __typename?: 'Studies'; - /** Total number of studies matching the query */ - count: Scalars['Long']['output']; - /** List of GWAS or molecular QTL studies */ - rows: Array; -}; - -/** Metadata for all complex trait and molecular QTL GWAS studies in the Platform. The dataset includes study metadata, phenotype information, sample sizes, publication information and more. Molecular QTL studies are splitted by the affected gene, tissue or cell type and condition, potentially leading to many studies in the same publication. */ +/** Filter for a string field. */ +export type StringFilter = { + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + ne?: InputMaybe; + notContains?: InputMaybe; +}; + +/** + * Metadata for all complex trait GWAS and molecular QTL studies in the Platform. The dataset + * includes study metadata, phenotype information, sample sizes, publication information and more. + * Molecular QTL studies are split by their target trait (e.g. gene, splice junction, etc), + * biosample (tissue, cell type or cell line) and condition (e.g. stimulation, time period, etc), + * potentially leading to tens of thousands of studies derived from the same publication. + */ export type Study = { __typename?: 'Study'; - /** Collection of flags indicating the type of the analysis conducted in the association study */ - analysisFlags?: Maybe>; - /** Any background trait(s) shared by all individuals in the study */ - backgroundTraits?: Maybe>; - /** Tissue or cell type in which the molQTL has been detected */ - biosample?: Maybe; - /** List of cohort(s) represented in the discovery sample */ - cohorts?: Maybe>; - /** Reported sample conditions */ + /** Mapping of quality control flags. */ + SumstatQCValues: Array; + /** Collection of flags indicating the type of the analysis conducted in the association study. */ + analysisFlags: Array; + /** List of cohort(s) represented in the discovery sample. */ + cohorts: Array; + /** Reported sample conditions. */ condition?: Maybe; - /** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set as well as the fine-mapping method and statistics used to estimate the credible set. */ - credibleSets: CredibleSets; - /** Collection of ancestries reported by the study discovery phase */ - discoverySamples?: Maybe>; - /** Phenotypic trait ids that map to the analysed trait reported by study */ - diseases?: Maybe>; - /** Indication whether the summary statistics exist in the source */ + /** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set as well as the fine-mapping method and statistics used to estimate the credible + * set. + */ + credibleSets: CredibleSetPage; + /** Collection of ancestries reported by the study discovery phase. */ + discoverySamples: Array; + /** Disease associated with a studied trait. */ + diseases: Array; + /** Indication whether the summary statistics exist in the source. */ hasSumstats?: Maybe; - /** The GWAS or molQTL study identifier (e.g. GCST004132) */ + /** The GWAS or molQTL study identifier (e.g. GCST004132). */ id: Scalars['String']['output']; - /** Study initial sample size */ + /** Study initial sample size. */ initialSampleSize?: Maybe; - /** Collection of populations referenced by the study */ - ldPopulationStructure?: Maybe>; - /** The number of cases in this broad ancestry group */ + /** Collection of populations referenced by the study. */ + ldPopulationStructure: Array; + /** The number of cases in this broad ancestry group. */ nCases?: Maybe; - /** The number of controls in this broad ancestry group */ + /** The number of controls in this broad ancestry group. */ nControls?: Maybe; - /** The number of samples tested in GWAS analysis */ + /** The number of samples tested in GWAS analysis. */ nSamples?: Maybe; - /** Identifier of the source project collection that the study information is derived from */ + /** Identifier of the source project collection that the study information is derived from. */ projectId: Scalars['String']['output']; - /** Date of the publication that references study */ + /** Publication in the narrative-in-text author-date style. */ + publicationAuthorDate?: Maybe; + /** Date of the publication that references the study. */ publicationDate?: Maybe; - /** Last name and initials of the author of the publication that references the study */ + /** First name and initials of the author of the publication that references the study. */ publicationFirstAuthor?: Maybe; - /** Abbreviated journal name where the publication referencing study was published */ + /** Abbreviated journal name where the publication referencing study was published. */ publicationJournal?: Maybe; - /** Title of the publication that references the study */ + /** Title of the publication that references the study. */ publicationTitle?: Maybe; - /** PubMed identifier of the publication hat references the study [bioregistry:pubmed] */ + /** PubMed identifier of the publication that references the study [bioregistry:pubmed]. */ pubmedId?: Maybe; - /** Control metrics refining study validation */ - qualityControls?: Maybe>; - /** Collection of ancestries reported by the study replication phase */ - replicationSamples?: Maybe>; - /** The study type (e.g. gwas, eqtl, pqtl, sceqtl) */ - studyType?: Maybe; - /** Path to the source study summary statistics (if exists at the source) */ + /** Control metrics refining study validation. */ + qualityControls: Array; + /** Collection of ancestries reported by the study replication phase. */ + replicationSamples: Array; + /** Field specifying if study contains phenotype/disease or molecular genetic associations. */ + studyType: StudyType; + /** Path to the source study summary statistics (if exists at the source). */ summarystatsLocation?: Maybe; - /** Quality control flags for the study (if any) */ - sumstatQCValues?: Maybe>; - /** In molQTL studies, the gene under study for changes in expression, abundance, etc. */ - target?: Maybe; - /** Molecular or phenotypic trait, derived from source, analysed in the study */ + /** Molecular or phenotypic trait, derived from source, analysed in the study. */ traitFromSource: Scalars['String']['output']; - /** Phenotypic trait ids that map to the analysed trait reported by study */ - traitFromSourceMappedIds?: Maybe>; + /** Phenotypic trait IDs that map to the analysed trait reported by study. */ + traitFromSourceMappedIds: Array; }; -/** Metadata for all complex trait and molecular QTL GWAS studies in the Platform. The dataset includes study metadata, phenotype information, sample sizes, publication information and more. Molecular QTL studies are splitted by the affected gene, tissue or cell type and condition, potentially leading to many studies in the same publication. */ +/** + * Metadata for all complex trait GWAS and molecular QTL studies in the Platform. The dataset + * includes study metadata, phenotype information, sample sizes, publication information and more. + * Molecular QTL studies are split by their target trait (e.g. gene, splice junction, etc), + * biosample (tissue, cell type or cell line) and condition (e.g. stimulation, time period, etc), + * potentially leading to tens of thousands of studies derived from the same publication. + */ export type StudyCredibleSetsArgs = { - page?: InputMaybe; + page?: Page; +}; + +/** Filter for studies. */ +export type StudyFilter = { + /** Keep studies whose number of samples matches this filter. */ + nSamples?: InputMaybe; + /** Keep studies whose project ID matches this filter. */ + projectId?: InputMaybe; + /** Keep studies whose type is one of these. */ + studyType?: InputMaybe>; +}; + +/** + * The result of a paginated query, containing the total number of items, the items, and statistics + * about the query. + */ +export type StudyPage = { + __typename?: 'StudyPage'; + count: Scalars['Int']['output']; + rows: Array; + stats: StudyStats; +}; + +/** Sort types. Contain the sort field and direction. */ +export type StudySort = { + /** The direction to sort in. */ + direction?: SortDirection; + /** The field to sort by. */ + key: StudySortField; }; -/** Study type, distinguishing GWAS from different classes of molecular QTL studies */ -export enum StudyTypeEnum { - /** Bulk tissue expression quantitative trait locus (eQTL) study */ +/** Contains the fields available for sorting studies. */ +export enum StudySortField { + NCases = 'N_CASES', + NControls = 'N_CONTROLS', + NSamples = 'N_SAMPLES', + PublicationAuthorDate = 'PUBLICATION_AUTHOR_DATE', + StudyType = 'STUDY_TYPE', + TraitFromSource = 'TRAIT_FROM_SOURCE' +} + +/** Statistics for a set of studies. */ +export type StudyStats = { + __typename?: 'StudyStats'; + /** The distribution of studies with sumstats. */ + hasSumstats: Array; + /** The summary statistics of sample sizes. */ + nSamples: Sumstats; + /** The samples to cases ratio. */ + samplesByCase: Sumstats; + /** The distribution of study types. */ + studyType: Array; +}; + +/** Field specifying if study contains phenotype/disease or molecular genetic associations. */ +export enum StudyType { + /** Bulk tissue expression quantitative trait locus (eQTL) study. */ Eqtl = 'eqtl', - /** Genome-wide association study (GWAS) of complex traits or diseases */ + /** Genome-wide association study (GWAS) of complex traits or diseases. */ Gwas = 'gwas', - /** Bulk tissue protein quantitative trait locus (pQTL) study */ + /** Bulk tissue protein quantitative trait locus (pQTL) study. */ Pqtl = 'pqtl', - /** Single-cell expression quantitative trait locus (sc-eQTL) study */ + /** Single-cell expression quantitative trait locus (sc-eQTL) study. */ Sceqtl = 'sceqtl', - /** Single-cell protein quantitative trait locus (sc-pQTL) study */ + /** Single-cell protein quantitative trait locus (sc-pQTL) study. */ Scpqtl = 'scpqtl', - /** Single-cell splicing quantitative trait locus (sc-sQTL) study */ + /** Single-cell splicing quantitative trait locus (sc-sQTL) study. */ Scsqtl = 'scsqtl', - /** Single-cell transcript uptake quantitative trait locus (sc-tuQTL) study */ + /** Single-cell transcript uptake quantitative trait locus (sc-tuQTL) study. */ Sctuqtl = 'sctuqtl', - /** Bulk tissue splicing quantitative trait locus (sQTL) study */ + /** Bulk tissue splicing quantitative trait locus (sQTL) study. */ Sqtl = 'sqtl', - /** Bulk tissue transcript uptake quantitative trait locus (tuQTL) study */ + /** Bulk tissue transcript uptake quantitative trait locus (tuQTL) study. */ Tuqtl = 'tuqtl' } -/** Quality control flags for summary statistics. Mapping of quality control metric names to their corresponding values. */ +/** A bucket for a distribution of values. */ +export type StudyTypeBucket = { + __typename?: 'StudyTypeBucket'; + /** The number of occurrences of the value. */ + count: Scalars['Int']['output']; + /** The value of the bucket. */ + value: StudyType; +}; + +/** Mapping of quality control flags. */ export type SumStatQc = { __typename?: 'SumStatQC'; - /** Quality control metric identifier */ + /** Quality control metric identifier. */ QCCheckName: Scalars['String']['output']; - /** Quality control metric value */ + /** Quality control metric value. */ QCCheckValue: Scalars['Float']['output']; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** Summary statistics for a set of values. */ +export type Sumstats = { + __typename?: 'Sumstats'; + /** The 25th percentile value. */ + _25: Scalars['Float']['output']; + /** The 50th percentile value. */ + _50: Scalars['Float']['output']; + /** The 75th percentile value. */ + _75: Scalars['Float']['output']; + /** The number of values. */ + count: Scalars['Int']['output']; + /** The maximum value. */ + max: Scalars['Float']['output']; + /** The mean of the values. */ + mean: Scalars['Float']['output']; + /** The minimum value. */ + min: Scalars['Float']['output']; + /** The standard deviation of the values. */ + std: Scalars['Float']['output']; +}; + +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type Target = { __typename?: 'Target'; - /** List of alternative Ensembl gene identifiers mapped to non-canonical chromosomes */ + /** List of alternative Ensembl gene identifiers mapped to non-canonical chromosomes. */ alternativeGenes: Array; - /** Approved full name of the target gene */ + /** Approved full name of the target gene. */ approvedName: Scalars['String']['output']; - /** Approved gene symbol of the target */ + /** Approved gene symbol of the target. */ approvedSymbol: Scalars['String']['output']; - /** Target-disease associations calculated on-the-fly using configurable data source weights and evidence filters. Returns associations with aggregated scores and evidence counts supporting the target-disease relationship. */ - associatedDiseases: AssociatedDiseases; - /** Association time series */ - associationTimeSeries: AssociationTimeSeriesResults; + /** + * Target-disease associations calculated on-the-fly using configurable data source weights and + * evidence filters. Returns associations with aggregated scores and evidence counts supporting + * the target-disease relationship. + */ + associatedDiseases: DiseaseAssociationPage; + /** Association time series. */ + associationTimeSeries: AssociationTimeseriesPage; /** Baseline expression */ - baselineExpression: BaselineExpression; - /** Biotype classification of the target gene, indicating if the gene is protein coding */ + baselineExpression: BaselineExpressionPage; + /** Biotype classification of the target gene, indicating if the gene is protein coding. */ biotype: Scalars['String']['output']; - /** The Ensembl canonical transcript of the target gene */ - canonicalTranscript?: Maybe; + /** The Ensembl canonical transcript of the target gene. */ + canonicalTranscript: CanonicalTranscript; /** Chemical probes with high selectivity and specificity for the target. */ chemicalProbes: Array; - /** 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the credible set as well as the fine-mapping method and statistics used to estimate the credible set. */ - credibleSets: CredibleSets; - /** Database cross-references for the target */ + /** + * 95% credible sets for GWAS and molQTL studies. Credible sets include all variants in the + * credible set as well as the fine-mapping method and statistics used to estimate the credible + * set. + */ + credibleSets: CredibleSetPage; + /** Database cross-references for the target. */ dbXrefs: Array; - /** Essentiality measurements extracted from DepMap, stratified by tissue or anatomical units. Gene essentiality is assessed based on dependencies exhibited when knocking out genes in cancer cellular models using CRISPR screenings from the Cancer Dependency Map (DepMap) Project. Gene effects below -1 can be considered dependencies. */ - depMapEssentiality?: Maybe>; - drugAndClinicalCandidates: ClinicalTargets; - /** Target-disease evidence from all data sources supporting associations between this target and diseases or phenotypes. Evidence entries are reported and scored according to confidence in the association. */ - evidences: Evidences; - /** Functional descriptions of the target gene sourced from UniProt */ + /** + * Essentiality measurements extracted from DepMap, stratified by tissue or anatomical units. + * Gene essentiality is assessed based on dependencies exhibited when knocking out genes in + * cancer cellular models using CRISPR screenings from the Cancer Dependency Map (DepMap) + * Project. Gene effects below -1 can be considered dependencies. + */ + depMapEssentiality: DepMapEssentialityPage; + /** + * Target-disease evidence from all data sources supporting associations between this target + * and diseases or phenotypes. Evidence entries are reported and scored according to confidence + * in the association. + */ + evidences: EvidencePage; + /** Functional descriptions of the target gene sourced from UniProt. */ functionDescriptions: Array; - /** List of Gene Ontology (GO) annotations related to the target */ - geneOntology: Array; + /** List of Gene Ontology (GO) annotations related to the target. */ + geneOntology: Array; /** Constraint scores for the target gene from GnomAD based on loss-of-function intolerance. */ geneticConstraint: Array; - /** Genomic location information of the target gene */ + /** Genomic location information of the target gene. */ genomicLocation: GenomicLocation; - /** Hallmarks related to the target gene sourced from COSMIC */ - hallmarks?: Maybe; - /** Homologues of the target gene in other species */ + /** Hallmarks related to the target gene sourced from COSMIC. */ + hallmarks: Hallmark; + /** Homologues of the target gene in other species. */ homologues: Array; - /** Unique identifier for the target [bioregistry:ensembl] */ + /** Unique identifier for the target [bioregistry:ensembl]. */ id: Scalars['String']['output']; - /** Molecular interactions reporting experimental or functional interactions between this target and other molecules. Interactions are integrated from multiple databases capturing physical interactions (e.g., IntAct), directional interactions (e.g., Signor), pathway relationships (e.g., Reactome), or functional interactions (e.g., STRINGdb). */ - interactions?: Maybe; - /** Flag indicating whether this target is essential based on CRISPR screening data from cancer cell line models. Essential genes are those that show dependency when knocked out in cellular models. */ + /** + * Molecular interactions reporting experimental or functional interactions between this target + * and other molecules. This dataset contains pair-wise interactions deposited in several + * databases capturing: physical interactions (e.g. IntAct), directional interactions (e.g. + * Signor), pathway relationships (e.g. Reactome) or functional interactions (e.g. + * STRINGdb). + */ + interactions: InteractionPage; + /** + * Flag indicating whether this target is essential based on CRISPR screening data from cancer + * cell line models. Essential genes are those that show dependency when knocked out in + * cellular models. + */ isEssential?: Maybe; - /** Return the list of publications that mention the main entity, alone or in combination with other entities */ - literatureOcurrences: Publications; - /** Mouse phenotype information linking this human target to observed phenotypes in mouse models. Provides data on phenotypes observed when the target gene is modified in mouse models. */ - mousePhenotypes: Array; - /** List of name-based synonyms for the target gene */ - nameSynonyms: Array; - /** List of obsolete names previously used for the target gene */ - obsoleteNames: Array; - /** List of obsolete symbols previously used for the target gene */ - obsoleteSymbols: Array; - /** Pathway annotations for the target */ + /** + * Return the list of publications that mention the main entity, alone or in combination with + * other entities. + */ + literatureOcurrences: PublicationPage; + /** + * Mouse phenotype information linking this human target to observed phenotypes in mouse + * models. Provides data on phenotypes observed when the target gene is modified in mouse + * models. + */ + mousePhenotypes: MousePhenotypePage; + /** List of name-based synonyms for the target gene. */ + nameSynonyms: Array; + /** List of obsolete names previously used for the target gene. */ + obsoleteNames: Array; + /** List of obsolete symbols previously used for the target gene. */ + obsoleteSymbols: Array; + /** Pathway annotations for the target. */ pathways: Array; - /** Pharmacogenomics data linking genetic variants affecting this target to drug responses. Data is integrated from sources including ClinPGx and describes how genetic variants influence individual drug responses when targeting this gene product. */ - pharmacogenomics: Array; - /** Target-specific properties used to prioritise targets for further investigation. Prioritisation factors cover several areas around clinical precedence, tractability, do-ability, and safety of the target. Values range from -1 (unfavourable/deprioritised) to 1 (favourable/prioritised). */ - prioritisation?: Maybe; - /** Protein coding coordinates linking variants affecting this target to their amino acid-level consequences in protein products. Describes variant consequences at the protein level including amino acid changes and their positions for this target. */ - proteinCodingCoordinates: ProteinCodingCoordinates; - /** Protein identifiers associated with the target */ + /** + * Pharmacogenomics data linking genetic variants affecting this target to drug responses. Data + * is integrated from sources including ClinPGx and describes how genetic variants influence + * individual drug responses when targeting this gene product. + */ + pharmacogenomics: PharmacogenomicsPage; + /** + * Target-specific properties used to prioritise targets for further investigation. + * Prioritisation factors cover several areas around clinical precedence, tractability, + * do-ability, and safety of the target. Values range from -1 (unfavourable/deprioritised) to 1 + * (favourable/prioritised). + */ + prioritisation: TargetPrioritisations; + /** Protein identifiers associated with the target. */ proteinIds: Array; - /** Known target safety effects and target safety risk information */ + /** Known target safety effects and target safety risk information. */ safetyLiabilities: Array; - /** Return similar labels using a model Word2CVec trained with PubMed */ - similarEntities: Array; - /** List of subcellular locations where the target protein is found */ + /** Return similar labels using a model Word2CVec trained with PubMed. */ + similarEntities: SimilarEntityPage; + /** List of subcellular locations where the target protein is found. */ subcellularLocations: Array; - /** List of symbol-based synonyms for the target gene */ - symbolSynonyms: Array; - /** List of synonyms for the target gene */ - synonyms: Array; - /** Target classification categories from ChEMBL */ + /** List of symbol-based synonyms for the target gene. */ + symbolSynonyms: Array; + /** List of synonyms for the target gene. */ + synonyms: Array; + /** Target classification categories from ChEMBL. */ targetClass: Array; - /** Tractability information for the target */ + /** Tractability information for the target. */ tractability: Array; - /** List of Ensembl transcript identifiers associated with the target */ + /** List of Ensembl transcript identifiers associated with the target. */ transcriptIds: Array; - transcripts: Transcripts; + /** List of transcripts associated with the target including protein and structure annotations. */ + transcripts: Array; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetAssociatedDiseasesArgs = { BFilter?: InputMaybe; - Bs?: InputMaybe>; - datasources?: InputMaybe>; - enableIndirect?: InputMaybe; - facetFilters?: InputMaybe>; - includeMeasurements?: InputMaybe; - orderByScore?: InputMaybe; - page?: InputMaybe; + Bs?: Array; + datasourcePolicyOverrides?: Array; + facetFilters?: Array; + includeMeasurements?: Scalars['Boolean']['input']; + page?: Page; + sort?: AssociationSort; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetAssociationTimeSeriesArgs = { - aggregationTypes?: InputMaybe>; + aggregationTypes?: InputMaybe>; efoId: Scalars['String']['input']; endYear?: InputMaybe; isDirect: Scalars['Boolean']['input']; - page?: InputMaybe; + page?: Page; startYear?: InputMaybe; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetBaselineExpressionArgs = { - page?: InputMaybe; + page?: Page; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetCredibleSetsArgs = { - page?: InputMaybe; + page?: Page; +}; + + +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ +export type TargetDepMapEssentialityArgs = { + page?: Page; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetEvidencesArgs = { - cursor?: InputMaybe; - datasourceIds?: InputMaybe>; + datasourceIds?: Array; efoIds: Array; - size?: InputMaybe; + page?: Page; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetInteractionsArgs = { - page?: InputMaybe; + page?: Page; scoreThreshold?: InputMaybe; - sourceDatabase?: InputMaybe; + sourceDatabase?: InputMaybe; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetLiteratureOcurrencesArgs = { additionalIds?: InputMaybe>; - cursor?: InputMaybe; endMonth?: InputMaybe; endYear?: InputMaybe; + page?: Page; startMonth?: InputMaybe; startYear?: InputMaybe; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ -export type TargetProteinCodingCoordinatesArgs = { - page?: InputMaybe; +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ +export type TargetMousePhenotypesArgs = { + page?: Page; +}; + + +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ +export type TargetPharmacogenomicsArgs = { + page?: Page; }; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ +/** + * Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl + * database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is + * considered potential drug target if included in the canonical assembly or if present alternative + * assemblies but encoding for a reviewed protein product according to the UniProt database. + */ export type TargetSimilarEntitiesArgs = { additionalIds?: InputMaybe>; entityNames?: InputMaybe>; - size?: InputMaybe; + page?: Page; threshold?: InputMaybe; }; +/** A scored association between a disease and a target or vice versa. */ +export type TargetAssociation = { + __typename?: 'TargetAssociation'; + /** Association scores computed for every datasource (e.g., IMPC, ChEMBL, Gene2Phenotype). */ + datasourceScores: Array; + /** + * Overall association score aggregated across all evidence types. A higher score indicates a + * stronger association between target and disease. Scores are normalized to a range of 0-1. + */ + score: Scalars['Float']['output']; + /** Associated target entity. */ + target?: Maybe; +}; -/** Core annotation for drug targets (gene/proteins). Targets are defined based on EMBL-EBI Ensembl database and uses the Ensembl gene ID as the primary identifier. An Ensembl gene ID is considered potential drug target if included in the canonical assembly or if present alternative assemblies but encoding for a reviewed protein product according to the UniProt database. */ -export type TargetTranscriptsArgs = { - canonical?: InputMaybe; - page?: InputMaybe; +/** The result of a paginated query, containing the total number of items and the items. */ +export type TargetAssociationPage = { + __typename?: 'TargetAssociationPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** Target classification categories from ChEMBL */ +/** Target classification categories from ChEMBL. */ export type TargetClass = { __typename?: 'TargetClass'; - /** Unique identifier for the target class */ - id: Scalars['Long']['output']; - /** Label for the target class */ + /** Unique identifier for the target class. */ + id: Scalars['Int']['output']; + /** Label for the target class. */ label: Scalars['String']['output']; - /** Hierarchical level of the target class */ + /** Hierarchical level of the target class. */ level: Scalars['String']['output']; }; -/** Target-specific properties used to prioritise targets for further investigation. Prioritisation factors cover several areas around clinical precedence, tractability, do-ability, and safety of the target. Values range from -1 (unfavourable/deprioritised) to 1 (favourable/prioritised). */ +/** The result of a paginated query, containing the total number of items and the items. */ +export type TargetPage = { + __typename?: 'TargetPage'; + count: Scalars['Int']['output']; + rows: Array; +}; + +/** A target prioritisation factor. */ export type TargetPrioritisation = { __typename?: 'TargetPrioritisation'; - /** List of key-value pairs representing prioritisation factors */ - items: Array; + /** Key for the area of prioritisation. */ + key: Scalars['String']['output']; + /** Score for the prioritisation factor. */ + value: Scalars['String']['output']; }; -/** Targets overlapping this region */ -export type Targets = { - __typename?: 'Targets'; - /** Count of hits */ - count: Scalars['Long']['output']; - /** List of targets */ - rows?: Maybe>; +/** + * Target-specific properties used to prioritise targets for further investigation. Prioritisation + * factors cover several areas around clinical precedence, tractability, do-ability, and safety of + * the target. Values range from -1 (unfavourable/deprioritised) to 1 (favourable/prioritised). + */ +export type TargetPrioritisations = { + __typename?: 'TargetPrioritisations'; + items: Array; }; -/** Tractability information for the target. Indicates the feasibility of targeting the gene/protein with different therapeutic modalities. */ +/** + * Tractability information for the target. Indicates the feasibility of targeting the gene/protein + * with different therapeutic modalities. + */ export type Tractability = { __typename?: 'Tractability'; - /** Tractability category label */ + /** Tractability category label. */ label: Scalars['String']['output']; - /** Modality of the tractability assessment */ + /** Modality of the tractability assessment. */ modality: Scalars['String']['output']; - /** Tractability value assigned to the target (true indicates tractable) */ + /** Tractability value assigned to the target (true indicates tractable). */ value: Scalars['Boolean']['output']; }; +/** Transcript annotation for a target gene. */ export type Transcript = { __typename?: 'Transcript'; - alphafoldIds: Array; + /** AlphaFold structure prediction identifier. */ + alphafoldId?: Maybe; + /** Biotype classification of the transcript. */ biotype: Scalars['String']['output']; - chromosome: Scalars['String']['output']; - end: Scalars['Int']['output']; - exons: Array; - flags: Array; - isEnsemblCanonical: Scalars['Boolean']['output']; - proteinId?: Maybe; - start: Scalars['Int']['output']; - strand: Strand; + /** Whether this is the Ensembl canonical transcript. */ + isEnsemblCanonical?: Maybe; + /** Whether the UniProt entry is reviewed (Swiss-Prot). */ + isUniprotReviewed?: Maybe; + /** Ensembl transcript identifier. */ transcriptId: Scalars['String']['output']; - transcriptionStartSite: Scalars['Int']['output']; - uniprotIsoformIds: Array; - uniprotSwissprotIds: Array; - uniprotTremblIds: Array; + /** Ensembl translation identifier. */ + translationId?: Maybe; + /** UniProt accession mapped to the transcript. */ + uniprotId?: Maybe; + /** UniProt isoform identifier. */ + uniprotIsoformId?: Maybe; }; -/** Predicted consequences of the variant on transcript context */ +/** Predicted consequences on transcript context. */ export type TranscriptConsequence = { __typename?: 'TranscriptConsequence'; - /** Amino acid change caused by the variant */ + /** Amino acid change caused by this variant on this gene. */ aminoAcidChange?: Maybe; - /** Codons affected by the variant */ + /** Affected codon in the transcript. */ codons?: Maybe; - /** Score indicating the severity of the consequence */ + /** Score assigned to transcript based on Ensembl VEP consequence. */ consequenceScore: Scalars['Float']['output']; - /** Distance from the variant to the footprint region */ + /** Distance of the variant from the transcript. */ distanceFromFootprint: Scalars['Int']['output']; - /** Distance from the variant to the transcription start site */ + /** Distance of the variant from the transcription start site. */ distanceFromTss: Scalars['Int']['output']; - /** Impact assessment of the variant (e.g., HIGH, MODERATE, LOW) */ + /** Ensembl VEP predicted impact of the variant on the transcript. */ impact?: Maybe; - /** Whether this is the canonical transcript according to Ensembl */ + /** Flagging if the transcript is the canonical transcript for the gene. */ isEnsemblCanonical: Scalars['Boolean']['output']; - /** Loss-of-function transcript effect estimator (LOFTEE) prediction */ + /** Loss-of-function prediction based on LOFTEE. */ lofteePrediction?: Maybe; - /** PolyPhen score predicting the impact of the variant on protein structure */ + /** Polyphen prediction of the variant impact on the transcript. */ polyphenPrediction?: Maybe; - /** SIFT score predicting whether the variant affects protein function */ + /** SIFT prediction of the variant impact on the transcript. */ siftPrediction?: Maybe; - /** The target (gene/protein) associated with the transcript */ + /** The target (gene/protein) associated with the transcript. */ target?: Maybe; - /** Ensembl transcript identifier [bioregistry:ensembl] */ + /** Ensembl transcript identifier [bioregistry:ensembl]. */ transcriptId?: Maybe; - /** Index of the transcript */ - transcriptIndex: Scalars['Long']['output']; - /** UniProt protein accessions for the transcript [bioregistry:uniprot] */ - uniprotAccessions?: Maybe>; - /** The sequence ontology term of the consequence of the variant based on Ensembl VEP in the context of the transcript */ + /** Index of the transcript in the list of transcripts around the gene. */ + transcriptIndex: Scalars['Int']['output']; + /** Uniprot identifiers of the gene product [bioregistry:uniprot]. */ + uniprotAccessions: Array; + /** + * The sequence ontology term of the consequence of the variant based on Ensembl VEP in the + * context of the transcript. + */ variantConsequences: Array; }; -export type Transcripts = { - __typename?: 'Transcripts'; - count: Scalars['Long']['output']; - rows: Array; +/** Sort types. Contain the sort field and direction. */ +export type TranscriptConsequenceSort = { + /** The direction to sort in. */ + direction?: SortDirection; + /** The field to sort by. */ + key: TranscriptConsequenceSortField; }; +export enum TranscriptConsequenceSortField { + /** Distance of the variant from the transcript. */ + DistanceFromFootprint = 'DISTANCE_FROM_FOOTPRINT', + /** Distance of the variant from the transcription start site. */ + DistanceFromTss = 'DISTANCE_FROM_TSS', + /** Approved gene symbol of the target (gene/protein) associated with the transcript. */ + TargetApprovedSymbol = 'TARGET_APPROVED_SYMBOL' +} + +/** Literature references associated with the clinical trial. */ export type TrialLiterature = { __typename?: 'TrialLiterature'; /** PubMed identifier of the reference, when the source records one. */ id: Scalars['String']['output']; - /** How the reference relates to the trial: RESULT and DERIVED report its outcome, BACKGROUND is literature its authors cited. */ - type: Scalars['String']['output']; + /** + * How the reference relates to the trial: RESULT and DERIVED report its outcome, BACKGROUND + * is literature its authors cited. + */ + referenceType: Scalars['String']['output']; }; +/** Lead sponsor associated with the clinical trial. */ export type TrialSponsor = { __typename?: 'TrialSponsor'; - /** Type of sponsor organisation. */ + /** Classification of the lead trial sponsor (e.g. INDUSTRY, NIH, OTHER). */ agencyClass?: Maybe; - /** Name of sponsor organisation. */ + /** Name of the lead sponsor associated with the clinical trial. */ name?: Maybe; }; -export type ValidationReadouts = { - __typename?: 'ValidationReadouts'; - hsaValue?: Maybe; - isValidated?: Maybe; - readoutMethodName?: Maybe; - screen?: Maybe; +/** Type of clinical study. */ +export enum TrialStudyType { + /** Expanded access. */ + ExpandedAccess = 'EXPANDED_ACCESS', + /** Interventional. */ + Interventional = 'INTERVENTIONAL', + /** Observational. */ + Observational = 'OBSERVATIONAL' +} + +/** External resource link with an optional display name. */ +export type Url = { + __typename?: 'Url'; + /** Optional human-readable label for the URL. */ + niceName: Scalars['String']['output']; + /** URL to the external resource. */ + url?: Maybe; }; -/** Core variant information for all variants in the Platform. Variants are included if any phenotypic information is available for the variant, including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. */ +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ export type Variant = { __typename?: 'Variant'; - /** The allele frequencies of the variant in different populations */ - alleleFrequencies?: Maybe>; - /** The alternate allele for the variant */ + /** Allele frequencies of the variant in different populations. */ + alleleFrequencies: Array; + /** Alternate allele for the variant. */ alternateAllele: Scalars['String']['output']; - /** The chromosome on which the variant is located */ - chromosome: Scalars['String']['output']; - /** 95% credible sets for GWAS and molQTL studies that contain this variant. Credible sets include all variants in the credible set (locus) as well as the fine-mapping method and derived statistics. */ - credibleSets: CredibleSets; - /** The list of cross-references for the variant in different databases */ - dbXrefs?: Maybe>; - /** Regulatory enhancer/promoter regions to gene (target) predictions overlapping with this variant's location. These intervals link regulatory regions to target genes based on experimental data for specific tissues or cell types. */ - enhancerToGenes: EnhancerToGenes; - /** Target-disease evidence from all data sources where this variant supports the association. Evidence entries report associations between targets (genes or proteins) and diseases or phenotypes, scored according to confidence in the association. */ - evidences: Evidences; - /** HGVS identifier of the variant */ + /** Chromosome on which the variant is located. */ + chromosome: Chromosome; + /** + * 95% credible sets for GWAS and molQTL studies that contain this variant. Credible sets + * include all variants in the credible set (locus) as well as the fine-mapping method and + * derived statistics. + */ + credibleSets: CredibleSetPage; + /** Cross-references for the variant in different databases. */ + dbXrefs: Array; + enhancerToGene: EnhancerToGenePage; + /** HGVS identifier of the variant. */ hgvsId?: Maybe; - /** The unique identifier for the variant following schema CHR_POS_REF_ALT for SNPs and short indels (e.g. 1_154453788_C_T) */ - id: Scalars['String']['output']; - /** The sequence ontology term of the most severe consequence of the variant based on Ensembl VEP */ + /** + * The sequence ontology term of the most severe consequence of the variant based on Ensembl + * VEP. + */ mostSevereConsequence?: Maybe; - /** Pharmacogenomics data linking this genetic variant to drug responses. Data is integrated from sources including ClinPGx and describes how genetic variants influence individual drug responses. */ - pharmacogenomics: Array; - /** The position on the chromosome of the variant */ + /** + * Pharmacogenomics data linking this genetic variant to drug responses. Data is integrated + * from sources including ClinPGx and describes how genetic variants influence individual drug + * responses. + */ + pharmacogenomics: PharmacogenomicsPage; + /** Variant's position on the chromosome. */ position: Scalars['Int']['output']; - /** Protein coding coordinates linking this variant to its amino acid-level consequences in protein products. Describes variant consequences at the protein level including amino acid changes and their positions. */ - proteinCodingCoordinates: ProteinCodingCoordinates; - /** The reference allele for the variant */ + /** + * Protein coding coordinates linking this variant to its amino acid-level consequences in + * protein products. Describes variant consequences at the protein level including amino acid + * changes and their positions. + */ + proteinCodingCoordinates: ProteinCodingCoordinatesPage; + /** Reference allele for the variant. */ referenceAllele: Scalars['String']['output']; - /** The list of rsId identifiers for the variant */ - rsIds?: Maybe>; - /** Predicted consequences on transcript context */ - transcriptConsequences?: Maybe>; - /** Short summary of the variant effect */ + /** `RsIds` for the variant. */ + rsIds: Array; + /** Predicted consequences on transcript context. */ + transcriptConsequences: Array; + /** Short summary of the variant effect. */ variantDescription: Scalars['String']['output']; - /** List of predicted or measured effects of the variant based on various methods */ - variantEffect?: Maybe>; + /** List of predicted or measured effects of the variant based on various methods. */ + variantEffect: Array; + /** + * Unique identifier for the variant following schema: + * {chromosome}-{position}-{referenceAllele}-{alternateAllele}. + */ + variantId: Scalars['String']['output']; +}; + + +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ +export type VariantCredibleSetsArgs = { + filter?: InputMaybe; + page?: Page; }; -/** Core variant information for all variants in the Platform. Variants are included if any phenotypic information is available for the variant, including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. */ -export type VariantCredibleSetsArgs = { - page?: InputMaybe; - studyTypes?: InputMaybe>; +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ +export type VariantEnhancerToGeneArgs = { + page?: Page; }; -/** Core variant information for all variants in the Platform. Variants are included if any phenotypic information is available for the variant, including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. */ -export type VariantEnhancerToGenesArgs = { - page?: InputMaybe; +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ +export type VariantPharmacogenomicsArgs = { + page?: Page; }; -/** Core variant information for all variants in the Platform. Variants are included if any phenotypic information is available for the variant, including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. */ -export type VariantEvidencesArgs = { - cursor?: InputMaybe; - datasourceIds?: InputMaybe>; - size?: InputMaybe; +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ +export type VariantProteinCodingCoordinatesArgs = { + page?: Page; }; -/** Core variant information for all variants in the Platform. Variants are included if any phenotypic information is available for the variant, including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. */ -export type VariantProteinCodingCoordinatesArgs = { - page?: InputMaybe; +/** + * Core variant information for all variants in the Platform. + * Variants are included if any phenotypic information is available for the variant, + * including GWAS or molQTL credible sets, ClinVar, Uniprot or ClinPGx. + * The dataset includes variant metadata as well as variant effects derived from Ensembl VEP. + */ +export type VariantTranscriptConsequencesArgs = { + sort?: Array; }; -/** Genetic variants influencing individual drug responses. Pharmacogenetics data is integrated from sources including Pharmacogenomics Knowledgebase (PharmGKB). */ +/** + * Genetic variants influencing individual drug responses. Pharmacogenetics data is integrated from + * sources including Pharmacogenomics Knowledgebase (`PharmGKB`). + */ export type VariantAnnotation = { __typename?: 'VariantAnnotation'; /** Allele or genotype in the base case. */ baseAlleleOrGenotype?: Maybe; /** Allele or genotype in the comparison case. */ comparisonAlleleOrGenotype?: Maybe; - /** Indicates in which direction the genetic variant increases or decreases drug response */ + /** Indicates in which direction the genetic variant increases or decreases drug response. */ directionality?: Maybe; /** Allele observed effect. */ effect?: Maybe; @@ -2870,83 +3618,798 @@ export type VariantAnnotation = { effectType?: Maybe; /** Entity affected by the effect. */ entity?: Maybe; - /** PubMed identifier (PMID) of the literature entry */ + /** PubMed identifier (PMID) of the literature entry. */ literature?: Maybe; }; -/** Predicted or measured effect of the variant based on various methods */ +/** Predicted or measured effect of the variant based on various methods. */ export type VariantEffect = { __typename?: 'VariantEffect'; - /** Assessment of the variant effect */ + /** Textual assessment of the variant effect. */ assessment?: Maybe; - /** Flag indicating the reliability of the assessment */ + /** Flagging if the variant effect is considered pathogenic. */ assessmentFlag?: Maybe; - /** Method used to predict or measure the variant effect (e.g. VEP, SIFT, GERP, AlphaMissense, FoldX) */ + /** Method name used to predict the effect of the variant. */ method?: Maybe; - /** Normalised score for the variant effect */ + /** Variant effect normalised between -1 and 1. */ normalisedScore?: Maybe; - /** Score indicating the severity or impact of the variant effect */ + /** Score of the variant effect. */ score?: Maybe; - /** The target (gene/protein) on which the variant effect is interpreted */ + /** The target (gene/protein) on which the variant effect is interpreted. */ target?: Maybe; }; -/** Assays used in the study */ -export type Assays = { - __typename?: 'assays'; - /** Description of the assay */ - description?: Maybe; - /** Indicating if the assay was positive or negative for the target */ - isHit?: Maybe; - /** Short name of the assay */ - shortName?: Maybe; +/** The result of a paginated query, containing the total number of items and the items. */ +export type VariantPage = { + __typename?: 'VariantPage'; + count: Scalars['Int']['output']; + rows: Array; }; -/** List of biomarkers associated with evidence */ -export type Biomarkers = { - __typename?: 'biomarkers'; - /** List of gene expression altering biomarkers */ - geneExpression?: Maybe>; - /** List of genetic variation biomarkers */ - geneticVariation?: Maybe>; +/** Version information for the API and its underlying data sources. */ +export type Version = { + __typename?: 'Version'; + /** Month of the version, e.g. `06`. */ + month: Scalars['String']['output']; + /** + * Revision of the version, e.g. `0`. This field is optional for data releases and may be + * omitted, but not for the API version, which always has a revision even if it is `0`. + */ + revision: Scalars['String']['output']; + /** Year of the version, e.g. `23`. */ + year: Scalars['String']['output']; }; -export type ClinicalIndicationsFromDiseaseImp = { - __typename?: 'clinicalIndicationsFromDiseaseImp'; - /** Total number of indications results matching the query filters */ - count: Scalars['Long']['output']; - /** List of clinical indications results between drug-disease pairs */ - rows: Array; -}; +export type InteractionsSectionQueryVariables = Exact<{ + ensgId: Scalars['String']['input']; + sourceDatabase?: InputMaybe; + index?: InputMaybe; + size?: InputMaybe; + scoreThreshold?: InputMaybe; +}>; -export type ClinicalIndicationsFromDrugImp = { - __typename?: 'clinicalIndicationsFromDrugImp'; - /** Total number of indications results matching the query filters */ - count: Scalars['Long']['output']; - /** List of clinical indications results between drug-disease pairs */ - rows: Array; -}; -export type ClinicalTargets = { - __typename?: 'clinicalTargets'; - /** Total number of clinical targets results matching the query filters */ - count: Scalars['Long']['output']; - /** List of clinical clinical targets results between drug-target pairs */ - rows: Array; -}; +export type InteractionsSectionQuery = { __typename?: 'Query', target?: { __typename?: 'Target', id: string, approvedName: string, approvedSymbol: string, interactions: { __typename?: 'InteractionPage', count: number, rows: Array<{ __typename?: 'Interaction', intA: string, intABiologicalRole: string, intB: string, intBBiologicalRole: string, score?: number | null, count: number, sourceDatabase: InteractionSourceDatabase, targetA?: { __typename?: 'Target', id: string, approvedSymbol: string } | null, speciesA: { __typename?: 'InteractionSpeciesA', mnemonic: string }, targetB?: { __typename?: 'Target', id: string, approvedSymbol: string } | null, speciesB: { __typename?: 'InteractionSpeciesB', mnemonic: string }, evidences: Array<{ __typename?: 'InteractionEvidence', evidenceScore?: number | null, hostOrganismScientificName?: string | null, interactionDetectionMethodMiIdentifier: string, interactionDetectionMethodShortName: string, interactionIdentifier?: string | null, interactionTypeShortName?: string | null, expansionMethodShortName?: string | null, pubmedId?: string | null, participantDetectionMethodA: Array<{ __typename?: 'ParticipantDetectionMethod', miIdentifier?: string | null, shortName?: string | null }>, participantDetectionMethodB: Array<{ __typename?: 'ParticipantDetectionMethod', miIdentifier?: string | null, shortName?: string | null }> }> }> } } | null }; + +export type GeneEnrichmentAnalysisDiseaseAssociationsQueryVariables = Exact<{ + efoId: Scalars['String']['input']; + index: Scalars['Int']['input']; + size: Scalars['Int']['input']; + sortBy: Scalars['String']['input']; + datasources?: Array | DatasourcePolicyOverride; + rowsFilter?: Array | Scalars['String']['input']; + facetFilters?: Array | Scalars['String']['input']; + entitySearch: Scalars['String']['input']; +}>; + + +export type GeneEnrichmentAnalysisDiseaseAssociationsQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, name: string, associatedTargets: { __typename?: 'TargetAssociationPage', count: number, rows: Array<{ __typename?: 'TargetAssociation', score: number, target?: { __typename?: 'Target', id: string, approvedSymbol: string, approvedName: string, prioritisation: { __typename?: 'TargetPrioritisations', items: Array<{ __typename?: 'TargetPrioritisation', key: string, value: string }> } } | null, datasourceScores: Array<{ __typename?: 'Score', score: number, componentId: string }> }> } } | null }; + +export type DiseaseAssociationsQueryVariables = Exact<{ + id: Scalars['String']['input']; + index: Scalars['Int']['input']; + size: Scalars['Int']['input']; + sortBy: Scalars['String']['input']; + datasources?: Array | DatasourcePolicyOverride; + rowsFilter?: Array | Scalars['String']['input']; + facetFilters?: Array | Scalars['String']['input']; + entitySearch: Scalars['String']['input']; +}>; -/** List of genetic variation biomarkers */ -export type GeneticVariation = { - __typename?: 'geneticVariation'; - /** Functional consequence identifier of the variant biomarker [bioregistry:so] */ - functionalConsequenceId?: Maybe; - /** Variation identifier */ - id?: Maybe; - /** Name of the variant biomarker */ - name?: Maybe; -}; +export type DiseaseAssociationsQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, name: string, associatedTargets: { __typename?: 'TargetAssociationPage', count: number, rows: Array<{ __typename?: 'TargetAssociation', score: number, target?: { __typename?: 'Target', id: string, approvedSymbol: string, approvedName: string, prioritisation: { __typename?: 'TargetPrioritisations', items: Array<{ __typename?: 'TargetPrioritisation', key: string, value: string }> } } | null, datasourceScores: Array<{ __typename?: 'Score', score: number, componentId: string }> }> } } | null }; +export type DiseasePageQueryVariables = Exact<{ + efoId: Scalars['String']['input']; +}>; + + +export type DiseasePageQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, name: string, dbXRefs: Array } | null }; + +export type DiseaseProfileHeaderFragment = { __typename?: 'Disease', description?: string | null, synonyms: Array<{ __typename?: 'DiseaseSynonym', relation: string, terms: Array }> }; + +export type TargetAssociationsQueryVariables = Exact<{ + id: Scalars['String']['input']; + index: Scalars['Int']['input']; + size: Scalars['Int']['input']; + sortBy: Scalars['String']['input']; + datasources?: Array | DatasourcePolicyOverride; + rowsFilter?: Array | Scalars['String']['input']; + facetFilters?: Array | Scalars['String']['input']; + entitySearch: Scalars['String']['input']; + includeMeasurements?: Scalars['Boolean']['input']; +}>; + + +export type TargetAssociationsQuery = { __typename?: 'Query', target?: { __typename?: 'Target', id: string, approvedSymbol: string, associatedDiseases: { __typename?: 'DiseaseAssociationPage', count: number, rows: Array<{ __typename?: 'DiseaseAssociation', score: number, disease?: { __typename?: 'Disease', id: string, name: string } | null, datasourceScores: Array<{ __typename?: 'Score', score: number, componentId: string }> }> } } | null }; + +export type DiseaseBibliographyQueryVariables = Exact<{ + id: Scalars['String']['input']; + ids?: InputMaybe | Scalars['String']['input']>; + startYear?: InputMaybe; + startMonth?: InputMaybe; + endYear?: InputMaybe; + endMonth?: InputMaybe; + threshold?: InputMaybe; + size?: Scalars['Int']['input']; + entityNames?: InputMaybe | Scalars['String']['input']>; + index?: Scalars['Int']['input']; + pageSize?: Scalars['Int']['input']; +}>; + + +export type DiseaseBibliographyQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, name: string, similarEntities: { __typename?: 'SimilarEntityPage', count: number, rows: Array<{ __typename?: 'Similarity', score: number, id: string, object?: { __typename?: 'Disease', id: string, name: string } | { __typename?: 'Drug', id: string, name: string } | { __typename?: 'Target', id: string, approvedSymbol: string } | null }> }, literatureOcurrences: { __typename?: 'PublicationPage', count: number, stats: { __typename?: 'PublicationStats', earliestPubDate: number }, rows: Array<{ __typename?: 'Publication', pmid: string, pmcid?: string | null, publicationDate: string }> } } | null }; + +export type DiseaseBibliography = { __typename?: 'Disease', literatureOcurrences: { __typename?: 'PublicationPage', count: number } }; + +export type DrugsQueryVariables = Exact<{ + efoId: Scalars['String']['input']; + index?: Scalars['Int']['input']; + size?: Scalars['Int']['input']; +}>; + + +export type DrugsQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', name: string, drugAndClinicalCandidates: { __typename?: 'ClinicalIndicationPage', count: number, rows: Array<{ __typename?: 'ClinicalIndication', id: string, maxClinicalStage: string, drug: { __typename?: 'Drug', id: string, name: string }, clinicalReports: Array<{ __typename?: 'ClinicalReport', id: string }> }> } } | null }; + +export type DrugsSummaryFragment = { __typename?: 'Disease', drugAndClinicalCandidates: { __typename?: 'ClinicalIndicationPage', count: number } }; + +export type GwasStudiesQueryVariables = Exact<{ + diseaseIds: Array | Scalars['String']['input']; + size: Scalars['Int']['input']; + index: Scalars['Int']['input']; + sort?: Array | StudySort; + search?: InputMaybe; +}>; + + +export type GwasStudiesQuery = { __typename?: 'Query', studies: { __typename?: 'StudyPage', count: number, rows: Array<{ __typename?: 'Study', id: string, projectId: string, traitFromSource: string, publicationFirstAuthor?: string | null, publicationDate?: string | null, publicationJournal?: string | null, nSamples?: number | null, cohorts: Array, pubmedId?: string | null, ldPopulationStructure: Array<{ __typename?: 'LdPopulationStructure', ldPopulation: string, relativeSampleSize?: number | null }>, credibleSets: { __typename?: 'CredibleSetPage', count: number } }> } }; + +export type OntologyAncestorsQueryVariables = Exact<{ + ids: Array | Scalars['String']['input']; + size: Scalars['Int']['input']; +}>; + + +export type OntologyAncestorsQuery = { __typename?: 'Query', diseases: { __typename?: 'DiseasePage', count: number, rows: Array<{ __typename?: 'Disease', id: string, name: string, isTherapeuticArea: boolean, parents: Array<{ __typename?: 'Disease', id: string }> }> } }; + +export type OntologyQueryVariables = Exact<{ + efoId: Scalars['String']['input']; +}>; + + +export type OntologyQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, name: string, isTherapeuticArea: boolean, ancestors: Array, parents: Array<{ __typename?: 'Disease', id: string }>, children: Array<{ __typename?: 'Disease', id: string, name: string, isTherapeuticArea: boolean, parents: Array<{ __typename?: 'Disease', id: string }> }> } | null }; + +export type OntologySummaryFragment = { __typename?: 'Disease', id: string, name: string, isTherapeuticArea: boolean, therapeuticAreas: Array }; + +export type PhenotypesQueryVariables = Exact<{ + efoId: Scalars['String']['input']; + index?: Scalars['Int']['input']; + size?: Scalars['Int']['input']; +}>; + + +export type PhenotypesQuery = { __typename?: 'Query', disease?: { __typename?: 'Disease', id: string, phenotypes: { __typename?: 'DiseasePhenotypePage', count: number, rows: Array<{ __typename?: 'DiseasePhenotype', phenotypeHPO?: { __typename?: 'Hpo', id: string, name: string, description?: string | null, namespace: Array } | null, phenotypeEFO?: { __typename?: 'Disease', id: string, name: string } | null, evidence: Array<{ __typename?: 'PhenotypeEvidence', aspect?: string | null, bioCuration?: string | null, diseaseFromSourceId: string, diseaseFromSource: string, evidenceType?: string | null, frequency?: string | null, qualifierNot: boolean, references: Array, sex?: string | null, resource: string, onset: Array<{ __typename?: 'Hpo', name: string, id: string }>, modifiers: Array<{ __typename?: 'Hpo', name: string, id: string }> }> }> } } | null }; + +export type PhenotypesSummaryFragment = { __typename?: 'Disease', phenotypes: { __typename?: 'DiseasePhenotypePage', count: number } }; + +export type DrugBibliographyQueryVariables = Exact<{ + id: Scalars['String']['input']; + ids?: InputMaybe | Scalars['String']['input']>; + startYear?: InputMaybe; + startMonth?: InputMaybe; + endYear?: InputMaybe; + endMonth?: InputMaybe; + threshold?: InputMaybe; + size?: Scalars['Int']['input']; + entityNames?: InputMaybe | Scalars['String']['input']>; + index?: Scalars['Int']['input']; + pageSize?: Scalars['Int']['input']; +}>; + + +export type DrugBibliographyQuery = { __typename?: 'Query', drug?: { __typename?: 'Drug', id: string, name: string, similarEntities: { __typename?: 'SimilarEntityPage', count: number, rows: Array<{ __typename?: 'Similarity', score: number, id: string, object?: { __typename?: 'Disease', id: string, name: string } | { __typename?: 'Drug', id: string, name: string } | { __typename?: 'Target', id: string, approvedSymbol: string } | null }> }, literatureOcurrences: { __typename?: 'PublicationPage', count: number, stats: { __typename?: 'PublicationStats', earliestPubDate: number }, rows: Array<{ __typename?: 'Publication', pmid: string, pmcid?: string | null, publicationDate: string }> } } | null }; + +export type DrugBibliography = { __typename?: 'Drug', literatureOcurrences: { __typename?: 'PublicationPage', count: number } }; + +export type TargetBibliographyQueryVariables = Exact<{ + id: Scalars['String']['input']; + ids?: InputMaybe | Scalars['String']['input']>; + startYear?: InputMaybe; + startMonth?: InputMaybe; + endYear?: InputMaybe; + endMonth?: InputMaybe; + threshold?: InputMaybe; + size?: Scalars['Int']['input']; + entityNames?: InputMaybe | Scalars['String']['input']>; + index?: Scalars['Int']['input']; + pageSize?: Scalars['Int']['input']; +}>; + + +export type TargetBibliographyQuery = { __typename?: 'Query', target?: { __typename?: 'Target', id: string, approvedName: string, similarEntities: { __typename?: 'SimilarEntityPage', count: number, rows: Array<{ __typename?: 'Similarity', score: number, id: string, object?: { __typename?: 'Disease', id: string, name: string } | { __typename?: 'Drug', id: string, name: string } | { __typename?: 'Target', id: string, approvedSymbol: string } | null }> }, literatureOcurrences: { __typename?: 'PublicationPage', count: number, stats: { __typename?: 'PublicationStats', earliestPubDate: number }, rows: Array<{ __typename?: 'Publication', pmid: string, pmcid?: string | null, publicationDate: string }> } } | null }; + +export type EntitiesSummaryFragment = { __typename?: 'Target', literatureOcurrences: { __typename?: 'PublicationPage', count: number } }; + +export type ClinicalRecordsQueryVariables = Exact<{ + clinicalReportsIds: Array | Scalars['String']['input']; +}>; + + +export type ClinicalRecordsQuery = { __typename?: 'Query', clinicalReports: Array<{ __typename?: 'ClinicalReport', clinicalStage: ClinicalStage, id: string, source: string, title?: string | null, trialOverallStatus?: string | null, trialStartDate?: any | null, year?: number | null, type?: string | null }> }; + +export type RecordDetailQueryVariables = Exact<{ + clinicalReportId: Scalars['String']['input']; +}>; + + +export type RecordDetailQuery = { __typename?: 'Query', clinicalReport?: { __typename?: 'ClinicalReport', clinicalStage: ClinicalStage, countries: Array, id: string, phaseFromSource?: string | null, source: string, trialDescription?: string | null, title?: string | null, trialOverallStatus?: string | null, trialPrimaryPurpose?: string | null, trialStartDate?: any | null, trialWhyStopped?: string | null, trialStopReasonCategories: Array, trialStudyType?: TrialStudyType | null, url?: string | null, year?: number | null, type?: string | null, diseases: Array<{ __typename?: 'ClinicalDiseaseListItem', diseaseFromSource: string, disease: { __typename?: 'Disease', id: string, name: string } }>, drugs: Array<{ __typename?: 'ClinicalReportDrugListItem', drugFromSource: string }>, sideEffects: Array<{ __typename?: 'ClinicalSideEffectListItem', diseaseFromSource?: string | null, disease?: { __typename?: 'Disease', name: string } | null }>, trialLiterature: Array<{ __typename?: 'TrialLiterature', id: string, type: string }>, trialSponsor: { __typename?: 'TrialSponsor', agencyClass?: string | null, name?: string | null } } | null }; + +export const DiseaseProfileHeaderFragment = gql` + fragment DiseaseProfileHeaderFragment on Disease { + description + synonyms { + relation + terms + } +} + `; +export const DiseaseBibliography = gql` + fragment DiseaseBibliography on Disease { + literatureOcurrences(page: {index: 0, size: 1}) { + count + } +} + `; +export const DrugsSummaryFragment = gql` + fragment DrugsSummaryFragment on Disease { + drugAndClinicalCandidates { + count + } +} + `; +export const OntologySummaryFragment = gql` + fragment OntologySummaryFragment on Disease { + id + name + isTherapeuticArea + therapeuticAreas +} + `; +export const PhenotypesSummaryFragment = gql` + fragment PhenotypesSummaryFragment on Disease { + phenotypes(page: {index: 0, size: 1}) { + count + } +} + `; +export const DrugBibliography = gql` + fragment DrugBibliography on Drug { + literatureOcurrences(page: {index: 0, size: 1}) { + count + } +} + `; +export const EntitiesSummaryFragment = gql` + fragment EntitiesSummaryFragment on Target { + literatureOcurrences(page: {index: 0, size: 1}) { + count + } +} + `; +export const InteractionsSectionQueryDocument = gql` + query InteractionsSectionQuery($ensgId: String!, $sourceDatabase: InteractionSourceDatabase, $index: Int = 0, $size: Int = 10, $scoreThreshold: Float) { + target(ensemblId: $ensgId) { + id + approvedName + approvedSymbol + interactions( + sourceDatabase: $sourceDatabase + scoreThreshold: $scoreThreshold + page: {index: $index, size: $size} + ) { + count + rows { + intA + intABiologicalRole + targetA { + id + approvedSymbol + } + speciesA { + mnemonic + } + intB + intBBiologicalRole + targetB { + id + approvedSymbol + } + speciesB { + mnemonic + } + score + count + sourceDatabase + evidences { + evidenceScore + hostOrganismScientificName + interactionDetectionMethodMiIdentifier + interactionDetectionMethodShortName + interactionIdentifier + interactionTypeShortName + participantDetectionMethodA { + miIdentifier + shortName + } + participantDetectionMethodB { + miIdentifier + shortName + } + interactionDetectionMethodShortName + expansionMethodShortName + pubmedId + } + } + } + } +} + `; +export const GeneEnrichmentAnalysisDiseaseAssociationsQueryDocument = gql` + query GeneEnrichmentAnalysisDiseaseAssociationsQuery($efoId: String!, $index: Int!, $size: Int!, $sortBy: String!, $datasources: [DatasourcePolicyOverride!]! = [], $rowsFilter: [String!]! = [], $facetFilters: [String!]! = [], $entitySearch: String!) { + disease(efoId: $efoId) { + id + name + associatedTargets( + page: {index: $index, size: $size} + sort: {key: $sortBy, direction: DESCENDING} + datasourcePolicyOverrides: $datasources + Bs: $rowsFilter + facetFilters: $facetFilters + BFilter: $entitySearch + ) { + count + rows { + target { + id + approvedSymbol + approvedName + prioritisation { + items { + key + value + } + } + } + score + datasourceScores { + componentId: id + score + } + } + } + } +} + `; +export const DiseaseAssociationsQueryDocument = gql` + query DiseaseAssociationsQuery($id: String!, $index: Int!, $size: Int!, $sortBy: String!, $datasources: [DatasourcePolicyOverride!]! = [], $rowsFilter: [String!]! = [], $facetFilters: [String!]! = [], $entitySearch: String!) { + disease(efoId: $id) { + id + name + associatedTargets( + page: {index: $index, size: $size} + sort: {key: $sortBy, direction: DESCENDING} + datasourcePolicyOverrides: $datasources + Bs: $rowsFilter + facetFilters: $facetFilters + BFilter: $entitySearch + ) { + count + rows { + target { + id + approvedSymbol + approvedName + prioritisation { + items { + key + value + } + } + } + score + datasourceScores { + componentId: id + score + } + } + } + } +} + `; +export const DiseasePageQueryDocument = gql` + query DiseasePageQuery($efoId: String!) { + disease(efoId: $efoId) { + id + name + dbXRefs + } +} + `; +export const TargetAssociationsQueryDocument = gql` + query TargetAssociationsQuery($id: String!, $index: Int!, $size: Int!, $sortBy: String!, $datasources: [DatasourcePolicyOverride!]! = [], $rowsFilter: [String!]! = [], $facetFilters: [String!]! = [], $entitySearch: String!, $includeMeasurements: Boolean! = false) { + target(ensemblId: $id) { + id + approvedSymbol + associatedDiseases( + page: {index: $index, size: $size} + sort: {key: $sortBy, direction: DESCENDING} + datasourcePolicyOverrides: $datasources + Bs: $rowsFilter + facetFilters: $facetFilters + BFilter: $entitySearch + includeMeasurements: $includeMeasurements + ) { + count + rows { + disease { + id + name + } + score + datasourceScores { + componentId: id + score + } + } + } + } +} + `; +export const DiseaseBibliographyQueryDocument = gql` + query DiseaseBibliographyQuery($id: String!, $ids: [String!] = [], $startYear: Int = null, $startMonth: Int = null, $endYear: Int = null, $endMonth: Int = null, $threshold: Float = 0.5, $size: Int! = 15, $entityNames: [String!] = [], $index: Int! = 0, $pageSize: Int! = 5) { + disease(efoId: $id) { + id + name + similarEntities( + additionalIds: $ids + threshold: $threshold + page: {index: 0, size: $size} + entityNames: $entityNames + ) { + count + rows { + score + id + object { + ... on Target { + id + approvedSymbol + } + ... on Drug { + id + name + } + ... on Disease { + id + name + } + } + } + } + literatureOcurrences( + additionalIds: $ids + page: {index: $index, size: $pageSize} + startYear: $startYear + startMonth: $startMonth + endYear: $endYear + endMonth: $endMonth + ) { + count + stats { + earliestPubDate + } + rows { + pmid + pmcid + publicationDate + } + } + } +} + `; +export const DrugsQueryDocument = gql` + query drugsQuery($efoId: String!, $index: Int! = 0, $size: Int! = 10) { + disease(efoId: $efoId) { + name + drugAndClinicalCandidates(page: {index: $index, size: $size}) { + count + rows { + id + maxClinicalStage + drug { + id + name + } + clinicalReports { + id + } + } + } + } +} + `; +export const GwasStudiesQueryDocument = gql` + query GWASStudiesQuery($diseaseIds: [String!]!, $size: Int!, $index: Int!, $sort: [StudySort!]! = [], $search: String) { + studies( + diseaseIds: $diseaseIds + page: {size: $size, index: $index} + sort: $sort + search: $search + ) { + count + rows { + id + projectId + traitFromSource + publicationFirstAuthor + publicationDate + publicationJournal + nSamples + cohorts + pubmedId + ldPopulationStructure { + ldPopulation + relativeSampleSize + } + credibleSets { + count + } + } + } +} + `; +export const OntologyAncestorsQueryDocument = gql` + query OntologyAncestorsQuery($ids: [String!]!, $size: Int!) { + diseases(efoIds: $ids, page: {index: 0, size: $size}, sort: []) { + count + rows { + id + name + isTherapeuticArea + parents { + id + } + } + } +} + `; +export const OntologyQueryDocument = gql` + query OntologyQuery($efoId: String!) { + disease(efoId: $efoId) { + id + name + isTherapeuticArea + ancestors + parents { + id + } + children { + id + name + isTherapeuticArea + parents { + id + } + } + } +} + `; +export const PhenotypesQueryDocument = gql` + query PhenotypesQuery($efoId: String!, $index: Int! = 0, $size: Int! = 10) { + disease(efoId: $efoId) { + id + phenotypes(page: {index: $index, size: $size}) { + count + rows { + phenotypeHPO { + id + name + description + namespace + } + phenotypeEFO { + id + name + } + evidence { + aspect + bioCuration + diseaseFromSourceId + diseaseFromSource + evidenceType + frequency + qualifierNot + onset { + name + id + } + modifiers { + name + id + } + references + sex + resource + } + } + } + } +} + `; +export const DrugBibliographyQueryDocument = gql` + query DrugBibliographyQuery($id: String!, $ids: [String!] = [], $startYear: Int = null, $startMonth: Int = null, $endYear: Int = null, $endMonth: Int = null, $threshold: Float = 0.5, $size: Int! = 15, $entityNames: [String!] = [], $index: Int! = 0, $pageSize: Int! = 5) { + drug(chemblId: $id) { + id + name + similarEntities( + additionalIds: $ids + threshold: $threshold + page: {index: 0, size: $size} + entityNames: $entityNames + ) { + count + rows { + score + id + object { + ... on Target { + id + approvedSymbol + } + ... on Drug { + id + name + } + ... on Disease { + id + name + } + } + } + } + literatureOcurrences( + additionalIds: $ids + page: {index: $index, size: $pageSize} + startYear: $startYear + startMonth: $startMonth + endYear: $endYear + endMonth: $endMonth + ) { + count + stats { + earliestPubDate + } + rows { + pmid + pmcid + publicationDate + } + } + } +} + `; +export const TargetBibliographyQueryDocument = gql` + query TargetBibliographyQuery($id: String!, $ids: [String!] = [], $startYear: Int = null, $startMonth: Int = null, $endYear: Int = null, $endMonth: Int = null, $threshold: Float = 0.5, $size: Int! = 15, $entityNames: [String!] = [], $index: Int! = 0, $pageSize: Int! = 5) { + target(ensemblId: $id) { + id + approvedName + similarEntities( + additionalIds: $ids + threshold: $threshold + page: {index: 0, size: $size} + entityNames: $entityNames + ) { + count + rows { + score + id + object { + ... on Target { + id + approvedSymbol + } + ... on Drug { + id + name + } + ... on Disease { + id + name + } + } + } + } + literatureOcurrences( + additionalIds: $ids + page: {index: $index, size: $pageSize} + startYear: $startYear + startMonth: $startMonth + endYear: $endYear + endMonth: $endMonth + ) { + count + stats { + earliestPubDate + } + rows { + pmid + pmcid + publicationDate + } + } + } +} + `; +export const ClinicalRecordsQueryDocument = gql` + query ClinicalRecordsQuery($clinicalReportsIds: [String!]!) { + clinicalReports(clinicalReportsIds: $clinicalReportsIds) { + clinicalStage + id + source + title + trialOverallStatus + trialStartDate + type: evidenceType + year + } +} + `; +export const RecordDetailQueryDocument = gql` + query RecordDetailQuery($clinicalReportId: String!) { + clinicalReport(clinicalReportId: $clinicalReportId) { + clinicalStage + countries + diseases { + diseaseFromSource + disease { + id + name + } + } + drugs { + drugFromSource + } + id + phaseFromSource + sideEffects { + diseaseFromSource + disease { + name + } + } + source + trialDescription + trialLiterature { + id + type: referenceType + } + title + trialOverallStatus + trialPrimaryPurpose + trialSponsor { + agencyClass + name + } + trialStartDate + trialWhyStopped + trialStopReasonCategories + type: evidenceType + trialStudyType + url + year + } +} + `; export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string, operationType?: string, variables?: any) => Promise; @@ -2955,7 +4418,51 @@ const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationTy export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { - + InteractionsSectionQuery(variables: InteractionsSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: InteractionsSectionQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'InteractionsSectionQuery', 'query', variables); + }, + GeneEnrichmentAnalysisDiseaseAssociationsQuery(variables: GeneEnrichmentAnalysisDiseaseAssociationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: GeneEnrichmentAnalysisDiseaseAssociationsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GeneEnrichmentAnalysisDiseaseAssociationsQuery', 'query', variables); + }, + DiseaseAssociationsQuery(variables: DiseaseAssociationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: DiseaseAssociationsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'DiseaseAssociationsQuery', 'query', variables); + }, + DiseasePageQuery(variables: DiseasePageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: DiseasePageQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'DiseasePageQuery', 'query', variables); + }, + TargetAssociationsQuery(variables: TargetAssociationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: TargetAssociationsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'TargetAssociationsQuery', 'query', variables); + }, + DiseaseBibliographyQuery(variables: DiseaseBibliographyQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: DiseaseBibliographyQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'DiseaseBibliographyQuery', 'query', variables); + }, + drugsQuery(variables: DrugsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: DrugsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'drugsQuery', 'query', variables); + }, + GWASStudiesQuery(variables: GwasStudiesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: GwasStudiesQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'GWASStudiesQuery', 'query', variables); + }, + OntologyAncestorsQuery(variables: OntologyAncestorsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: OntologyAncestorsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'OntologyAncestorsQuery', 'query', variables); + }, + OntologyQuery(variables: OntologyQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: OntologyQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'OntologyQuery', 'query', variables); + }, + PhenotypesQuery(variables: PhenotypesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: PhenotypesQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'PhenotypesQuery', 'query', variables); + }, + DrugBibliographyQuery(variables: DrugBibliographyQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: DrugBibliographyQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'DrugBibliographyQuery', 'query', variables); + }, + TargetBibliographyQuery(variables: TargetBibliographyQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: TargetBibliographyQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'TargetBibliographyQuery', 'query', variables); + }, + ClinicalRecordsQuery(variables: ClinicalRecordsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: ClinicalRecordsQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'ClinicalRecordsQuery', 'query', variables); + }, + RecordDetailQuery(variables: RecordDetailQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit['signal']): Promise { + return withWrapper((wrappedRequestHeaders) => client.request({ document: RecordDetailQueryDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), 'RecordDetailQuery', 'query', variables); + } }; } export type Sdk = ReturnType; \ No newline at end of file