# Targets: pharma targets

The pharma targets commands, with each dataset's columns, units and source credit.

A molecular target: a gene (Open Targets roster, Ensembl id) with its protein, the drugs that act on it, the development programs and trials against it, and the companies pursuing it.

Id: An Ensembl gene id (ENSG00000133703). Every targets dataset takes this same id in its target_id column. A gene symbol (KRAS) is accepted and redirected to the Ensembl id when exactly one target carries it. The biomarkers datasets enter on the gene symbol: a caller crossing from a target to its biomarker page uses the symbol column of targets, and joins on target_id for data.

## Commands

| Command | Reads |
| --- | --- |
| pharma targets list | Targets |
| pharma targets get <id> | One target and the datasets reachable from it |
| pharma targets get <id> biomarker-evidence | Biomarker evidence |
| pharma targets get <id> company-targets | Targets a company pursues |
| pharma targets get <id> target-associations | Target-disease associations by datasource |
| pharma targets get <id> target-crowding | Target crowding by phase |
| pharma targets get <id> target-drugs | Drugs acting on a target |
| pharma targets get <id> target-evidence | Target evidence |
| pharma targets get <id> target-investigators | Investigators on a target's trials |
| pharma targets get <id> target-literature | Target literature (MeSH-indexed, 2016 onward) |
| pharma targets get <id> target-literature-orgs | Target literature, most active institutions |
| pharma targets get <id> target-literature-people | Target literature, most active authors |
| pharma targets get <id> target-patent-mentions | Target patent mentions |
| pharma targets get <id> target-programs | Target development programs |
| pharma targets get <id> target-publications | Target publications |
| pharma targets get <id> target-regulatory-precedent | Target regulatory precedent |
| pharma targets get <id> target-trials | Trials targeting a target |

Every command takes the paging, sorting and output flags described on the CLI page; the CLI prints the source credit with every result.

- [Pharma Observatory CLI](https://pharmaobservatory.com/cli)

## Targets

**Command**

```sh
pharma targets list
```

The targets object type's primary dataset: one row per gene in the Open Targets roster, with its protein identity and the headline counts of drugs, trials, development programs and publications that the target page shows.

One row per: target (an Ensembl gene in the Open Targets roster). Key columns: `target_id`.

Source: Open Targets Platform (CC0); UniProt (CC BY 4.0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY); RCSB Protein Data Bank and SIFTS, EMBL-EBI (CC0)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| symbol | text |  | The target's HGNC gene symbol; the target page address accepts it. |
| name | text |  | The gene's name. |
| biotype | text |  | Open Targets biotype of the gene (protein_coding and so on); null where the source gives none. |
| uniprot_accession | text |  | The UniProt accession of the gene's canonical protein; null where there is none. |
| protein_name | text |  | The protein's recommended name from UniProt; null where the gene has no protein record. |
| hgnc_id | text |  | The HGNC gene id (HGNC:nnnn) from UniProt; null where the gene has no protein record. |
| ncbi_gene_id | text |  | The NCBI Gene id from UniProt; null where the gene has no protein record. |
| has_biomarker | boolean |  | Whether the gene has a biomarker record; the biomarkers datasets enter on the gene symbol. |
| n_drugs | bigint | drugs | Distinct drugs that act on the target, any evidence tier. |
| n_drugs_curated | bigint | drugs | Of n_drugs, those with a curated Open Targets mechanism edge (the floor). |
| n_drugs_investigational | bigint | drugs | Of n_drugs, those found only through ChEMBL or the curated investigational assets. |
| moa_floor_only | boolean |  | True when no drug beyond the curated floor is known for the target. |
| n_trials | bigint | trials | Distinct trials whose drug interventions act on the target. |
| n_trials_curated | bigint | trials | Of n_trials, those reached through a curated mechanism edge. |
| n_trials_investigational | bigint | trials | Of n_trials, those reached only through ChEMBL or curated investigational assets. |
| n_programs | numeric | programs | Distinct drug and indication programs against the target (a specific indication with at least two trials); the crowding headline. |
| n_active_programs | numeric | programs | Of n_programs, those with no terminated, withdrawn or suspended trial. |
| lead_phase | integer |  | The furthest phase band (0 to 4) that carries any program; 0 when the target has none. |
| programs_rank | bigint |  | Rank of n_programs among targets that have programs (1 is the most crowded); null when the target has none. |
| programs_pctile | double |  | Share of programmed targets with fewer programs than this one, 0 to 1; null when the target has none. |
| n_approved_drugs | bigint | drugs | Distinct approved drugs with a curated mechanism edge to the target. |
| n_publication_mention_papers | bigint | papers | Distinct papers with a gene mention in the trial-cited PubMed corpus. |
| has_ot_association | boolean |  | True when any Open Targets datasource has a target-disease association for the gene. |
| n_pdb | integer | structures | Protein Data Bank structures mapped to the gene's protein. |
| has_pdb | boolean |  | True when at least one Protein Data Bank structure maps to the gene's protein. |

## Biomarker evidence

**Command**

```sh
pharma targets get <id> biomarker-evidence
```

One evidence dataset in place of the cgi, ot_association and trial_mention sections: filter by evidence_type.

One row per: evidence assertion. Key columns: `biomarker_evidence_id`.

Source: Cancer Genome Interpreter, IRB Barcelona/ICREA/UPF (CC BY 4.0); Open Targets Platform (CC0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| biomarker_evidence_id | text |  | The evidence assertion id. |
| route_key | text |  | The biomarker route key of the gene this evidence is about (the gene symbol); the entry key for the biomarkers object type. |
| gene_symbol | text |  | The gene symbol the evidence is about. |
| target_id | text |  | The target's Ensembl gene id. |
| uniprot_accession | text |  | The UniProt accession. |
| biomarker | text |  | The biomarker as the source names it (the gene or the variant). |
| evidence_type | text |  | cancer_actionable_cgi, ot_association or trial_mention. |
| source | text |  | The source the assertion comes from. |
| condition_id | text |  | The condition key. |
| condition_name | text |  | The condition as the source names it. |
| therapeutic_area | text |  | The therapeutic area. |
| drug_name | text |  | The drug as filed. |
| drug_id | text |  | The drug key. |
| molecule_id | text |  | The molecule key. Null on every row: no evidence row carries a molecule. |
| response | text |  | The reported response (for example Responsive, Resistant). |
| score | double |  | The association score, for an Open Targets row. |
| variant_count | integer | variants | Variants the assertion covers. |
| trial_id | text |  | The trial registry id, for a trial-mention row. |
| sample_type | text |  | The sample type, for a trial-mention row. |

## Targets a company pursues

**Command**

```sh
pharma targets get <id> company-targets
```

The targets a company pursues, at company grain: a specific indication with at least two trials, with the phase reached.

One row per: company and target. Key columns: `sponsor_company_id`, `target_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| sponsor_company_id | text |  | Company level: the company whose lead-sponsored trials pursue the target. |
| sponsor_company_name | text |  | Display name of the sponsor's company. |
| sponsor_group_id | text |  | Group level: the sponsor's current ultimate parent company; a root company's group is itself. |
| sponsor_group_name | text |  | Display name of the sponsor's group. |
| target_id | text |  | The target's gene identifier (Ensembl). |
| target_symbol | text |  | The target's gene symbol. |
| target_name | text |  | The target's name. |
| max_phase | integer |  | The furthest phase any qualifying program of the company reached against the target. |
| n_drugs | integer | drugs | Distinct drugs of the company's qualifying programs against the target. |
| n_conditions | integer | conditions | Distinct conditions of the company's qualifying programs against the target. |
| n_trials | integer | trials | Distinct trials the company leads in those programs. |
| n_programs | integer | programs | Distinct drug and indication programs (a specific indication with at least two trials) the company leads against the target. |
| last_year | integer |  | The latest start year among the company's trials against the target in those programs. |

## Target-disease associations by datasource

**Command**

```sh
pharma targets get <id> target-associations
```

How many diseases each Open Targets datasource associates with a target, one row per target and datasource, with the score range.

One row per: target and Open Targets datasource. Key columns: `target_id`, `datasource`.

Source: Open Targets Platform (CC0)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| datasource | text |  | The Open Targets datasource name (for example genetic_association or literature). |
| n_disease_associations | bigint | associations | Distinct disease associations the datasource holds for the target. |
| min_association_score | double |  | The lowest association score in the datasource for the target. |
| max_association_score | double |  | The highest association score in the datasource for the target. |

## Target crowding by phase

**Command**

```sh
pharma targets get <id> target-crowding
```

How crowded a target is: the drug and indication programs against it, banded by the furthest phase reached and split live from discontinued, one row per target and phase band.

One row per: target and phase band. Key columns: `target_id`, `max_phase`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| max_phase | integer |  | The band: the furthest phase a program reached, 0 to 4 (0 is phase not reported). |
| n_programs | integer | programs | Distinct drug and indication programs whose furthest phase is the band. |
| n_active_programs | integer | programs | Programs in the band with no terminated, withdrawn or suspended trial. |
| n_discontinued | integer | programs | Programs in the band with at least one terminated, withdrawn or suspended trial. |
| n_drugs | integer | drugs | Distinct drugs among the band's programs. |

## Drugs acting on a target

**Command**

```sh
pharma targets get <id> target-drugs
```

The drugs that act on a target, one row per target and drug, with the evidence tier, the action type and the drug's trial count.

One row per: target and drug. Key columns: `target_id`, `drug_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| drug_id | text |  | The drug's canonical id (the same id the drug datasets use as drug_id). |
| molecule_id | text |  | The molecule the drug resolves to, the id condition_drugs also calls molecule_id; equal to drug_id for a drug that resolves to no other. |
| drug_name | text |  | The drug's name. |
| primary_action_type | text |  | The action type of the best-evidence mechanism (INHIBITOR, AGONIST and so on); null where the source gives none. |
| evidence_source | text |  | The best evidence tier that links the drug to the target: curated_app (a human decision recorded in the app ledger), curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism), intervention_seed (a curated investigational asset) or curated_agent (an agent decision recorded in the app ledger). |
| evidence_rank | integer |  | The rank of evidence_source, 0 for curated_app, 1 for curated_moa, 2 for chembl_moa, 3 for intervention_seed, 4 for curated_agent. |
| evidence_sources | text[] |  | Every evidence tier that links the drug to the target; more than one is a corroboration signal. |
| approved_anywhere | boolean |  | Whether the drug is approved by any authority we hold. |
| drug_n_trials | numeric | trials | Distinct trials of the drug, on any target. |

## Target evidence

**Command**

```sh
pharma targets get <id> target-evidence
```

The atomic target evidence rows: one row per qualifying connection of target, drug, indication, trial and the trial's lead sponsor organization as filed. A qualifying program is a specific indication with at least two trials. Group by any column for a landscape cut.

One row per: target, drug, indication, trial and lead sponsor organization. Key columns: `target_evidence_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_evidence_id | text |  | The row id: a hash of the target, drug, indication, trial and sponsor organization. |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| drug_id | text |  | The drug's canonical id (the same id the drug datasets use as drug_id). |
| drug_name | text |  | The drug's name. |
| approved_anywhere | boolean |  | Whether the drug is approved by any authority we hold. |
| primary_action_type | text |  | The action type of the drug's best-evidence mechanism on the target; null where the source gives none. |
| evidence_source | text |  | The best evidence tier that links the drug to the target: curated_app (a human decision recorded in the app ledger), curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism), intervention_seed (a curated investigational asset) or curated_agent (an agent decision recorded in the app ledger). |
| condition_id | text |  | The condition as a MeSH descriptor id (D followed by digits), the id the conditions datasets use. |
| condition_name | text |  | The condition's name. |
| trial_id | text |  | The ClinicalTrials.gov NCT id, the id the trials datasets use. |
| max_phase | integer |  | The furthest phase the program (drug and indication) reached, 0 to 4 (0 is phase not reported). |
| sponsor_org_id | text |  | Legal-entity level: the trial's lead sponsor organization as filed; null when it does not resolve. |
| sponsor_name | text |  | The lead sponsor organization record's display name. |
| sponsor_company_id | text |  | Company level: the company the lead sponsor organization belongs to; null when none. |
| sponsor_company_name | text |  | Display name of the sponsor's company. |
| sponsor_group_id | text |  | Group level: the sponsor's current ultimate parent company; a root company's group is itself. |
| sponsor_group_name | text |  | Display name of the sponsor's group. |

## Investigators on a target's trials

**Command**

```sh
pharma targets get <id> target-investigators
```

The investigators named on trials of a target, one row per target and resolved investigator, with the distinct trial count, the person's principal investigator flag and the roles held on those trials.

One row per: target and resolved investigator named on a trial of the target. Key columns: `target_id`, `investigator_person_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. |
| investigator_person_id | text |  | The investigator's resolved person key, the id in the web page address (/people/<id>). The entry key of the investigators object type. |
| investigator_person_name | text |  | The investigator's name as the registry filed it, resolved across the person's merged name fragments. |
| investigator_affiliation | text |  | The investigator's affiliation as filed (the most-trialled affiliation across the merged fragments). |
| n_trials | bigint | trials | Distinct trials the person is named on that are in scope of the row (the target's trials, or the drug's). |
| is_principal_investigator | boolean |  | True when the person holds the principal investigator role on any registered trial (the person-level flag the investigators dataset and the people page publish), not only the trials of this row. |
| roles | text[] |  | The distinct roles the person holds on the trials of this row, as the registry filed them (PRINCIPAL_INVESTIGATOR, STUDY_DIRECTOR, STUDY_CHAIR, SUB_INVESTIGATOR). |

## Target literature (MeSH-indexed, 2016 onward)

**Command**

```sh
pharma targets get <id> target-literature
```

Recent MeSH-indexed literature (2016 onward) whose PubTator annotation names the target's gene, one row per target and PubMed id, with a flag for the papers a registered trial cites.

One row per: target and PubMed id. Key columns: `target_id`, `pmid`.

Source: US National Library of Medicine, PubMed (Public domain); iCite, NIH Office of Portfolio Analysis (CC0)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. |
| target_symbol | text |  | The target's HGNC gene symbol. |
| pmid | text |  | The PubMed id. |
| title | text |  | The paper's title. |
| journal_title | text |  | The journal's title. |
| pub_year | integer | calendar year | The publication year (2016 or later: the dataset holds recent MeSH-indexed literature). |
| evidence_type | text |  | The paper's study-design label, one normalized publication type by study-design priority. |
| is_trial_linked | boolean |  | True when a registered clinical trial cites the paper; false for literature no registered trial cites. |
| citation_count | integer | citations | Citations where iCite (the National Institutes of Health citation-metrics service) carries them; null is not measured, never zero. |
| relative_citation_ratio | numeric |  | The iCite Relative Citation Ratio (RCR) where measured; null is not measured. |

## Target literature, most active institutions

**Command**

```sh
pharma targets get <id> target-literature-orgs
```

Organizations on the author bylines of the MeSH-indexed papers (2016 onward) that name the target's gene, one row per target and organization, counted in distinct papers.

One row per: target and organization. Key columns: `target_id`, `org_id`.

Source: US National Library of Medicine, PubMed (Public domain)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. |
| org_id | text |  | Legal-entity level: the resolved parent organization record the byline names. |
| org_name | text |  | The organization's name. |
| org_type | text |  | The organization's type. |
| org_country | text |  | The organization's country code (null when not recorded). |
| n_papers | integer | papers | Distinct papers naming the organization on a byline. |
| n_trial_linked_papers | integer | papers | The part of n_papers a registered clinical trial cites. |
| latest_pub_year | integer | calendar year | The newest publication year among those papers. |
| org_arm | text |  | company when the organization is company-typed; institution for every other organization. |

## Target literature, most active authors

**Command**

```sh
pharma targets get <id> target-literature-people
```

Authors of the MeSH-indexed papers (2016 onward) tagged with target, one row per target and author, counted in distinct papers. An author is a row only where a resolution-ledger decision links a byline to the person.

One row per: target and author. Key columns: `target_id`, `investigator_person_id`.

Source: US National Library of Medicine, PubMed (Public domain); ORCID (CC0)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. |
| investigator_person_id | text |  | The author's resolved person key, the id in the web page address (/people/<id>). The entry key of the investigators object type. |
| person_name | text |  | The person's name, resolved across the person's merged name fragments. |
| person_affiliation | text |  | The person's affiliation as the person record holds it (null when not recorded). |
| orcid | text |  | The person's ORCID iD (Open Researcher and Contributor ID) when the person record carries one (null when none). |
| n_papers | integer | papers | Distinct papers on which a ledger decision links a byline to the person. |
| n_trial_linked_papers | integer | papers | The part of n_papers a registered clinical trial cites. |
| latest_pub_year | integer | calendar year | The newest publication year among those papers. |
| n_first_author | integer | papers | The part of n_papers on which the person's linked byline is the first author position. |
| n_last_author | integer | papers | The part of n_papers on which the person's linked byline is the last author position. |

## Target patent mentions

**Command**

```sh
pharma targets get <id> target-patent-mentions
```

The patents that cover a target's drugs, one row per target, drug and patent. Group by patent_number for the page's one-row-per-patent list.

One row per: target, drug and patent. Key columns: `target_id`, `drug_id`, `patent_number`.

Source: SureChEMBL, EMBL-EBI (CC BY-SA 4.0); Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| drug_id | text |  | The drug's canonical id (the same id the drug datasets use as drug_id). |
| drug_name | text |  | The drug's name. |
| patent_number | text |  | The patent number. |
| country | text |  | The patent office's country code. |
| publication_date | date |  | The patent's publication date. |
| title | text |  | The patent's title. |
| assignee | text |  | The patent's assignee as filed; null where none. |

## Target development programs

**Command**

```sh
pharma targets get <id> target-programs
```

The development programs against a target, one row per target, drug and indication, with the furthest phase, the trial counts and the discontinuation facts. A program is a specific indication with at least two trials.

One row per: target, drug and indication. Key columns: `target_id`, `drug_id`, `condition_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| drug_id | text |  | The drug's canonical id (the same id the drug datasets use as drug_id). |
| drug_name | text |  | The drug's name. |
| condition_id | text |  | The condition as a MeSH descriptor id (D followed by digits), the id the conditions datasets use. |
| condition_name | text |  | The condition's name. |
| max_phase | integer |  | The furthest phase the program reached, 0 to 4 (0 is phase not reported). |
| n_trials | integer | trials | Distinct trials of the drug in the indication. |
| n_completed | integer | trials | Of n_trials, those with status COMPLETED. |
| n_terminated_trials | integer | trials | Of n_trials, those with status TERMINATED. |
| first_year | integer |  | The earliest plausible trial start year. |
| last_year | integer |  | The latest plausible trial completion or start year. |
| is_discontinued | boolean |  | True when the program has a terminated, withdrawn or suspended trial. |
| n_discontinued | integer | trials | Distinct stopped trials (terminated, withdrawn or suspended); 0 for a live program. |
| n_terminated | integer | trials | Of the stopped trials, those TERMINATED. |
| n_withdrawn | integer | trials | Of the stopped trials, those WITHDRAWN. |
| n_suspended | integer | trials | Of the stopped trials, those SUSPENDED. |
| max_phase_at_stop | integer |  | The furthest phase among the stopped trials, 0 to 4; null for a live program. |
| last_stop_year | integer |  | The latest year a stopped trial ended; null for a live program. |
| why_stopped_reasons | text[] |  | The stop reasons registrants disclosed, verbatim; empty when none. |
| why_stopped_categories | text[] |  | The normalized stop-reason categories (efficacy_futility, safety, funding and so on); empty when none. |

## Target publications

**Command**

```sh
pharma targets get <id> target-publications
```

The PubMed papers cited by trials that act on a target, one row per target and PubMed id.

One row per: target and PubMed id. Key columns: `target_id`, `pmid`.

Source: ClinicalTrials.gov via AACT, CTTI (CC BY); PubMed, NCBI/NLM

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| pmid | text |  | The PubMed id. |
| citation | text |  | The citation string registrants gave. |
| title | text |  | The paper's title from PubMed; null when PubMed has no record. |
| pub_year | integer |  | The publication year. |
| n_linked_trials | integer | trials | Distinct trials in the registry that cite the paper, for any target. |
| n_target_trials | integer | trials | Distinct trials of this target that cite the paper. |

## Target regulatory precedent

**Command**

```sh
pharma targets get <id> target-regulatory-precedent
```

The regulatory approvals of drugs that have a curated mechanism on a target, one row per target, drug and authority.

One row per: target, drug and approving authority. Key columns: `target_id`, `drug_id`, `authority`.

Source: Open Targets Platform (CC0); US FDA, Drugs@FDA; European Medicines Agency; Health Canada Drug Product Database (Open Government Licence - Canada)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| drug_id | text |  | The drug's canonical id (the same id the drug datasets use as drug_id). |
| drug_name | text |  | The drug's name. |
| authority | text |  | The approving authority. |
| jurisdiction | text |  | The authority's jurisdiction. |
| status | text |  | The approval status the authority records. |
| first_approval_date | date |  | The authority's first approval date of the drug. |
| approval_id | text |  | The authority's own approval identifier. |
| primary_action_type | text |  | The action type of the drug's curated mechanism on the target. |
| moa_evidence_source | text |  | The evidence tier of the mechanism; curated_moa on every row. |

## Trials targeting a target

**Command**

```sh
pharma targets get <id> target-trials
```

Every trial whose drug interventions act on a target, one row per target and trial, with the registry phase and status and the lead sponsor. Wider than the trials behind qualifying programs.

One row per: target and trial. Key columns: `target_id`, `trial_id`.

Source: Open Targets Platform (CC0); ChEMBL, EMBL-EBI (CC BY-SA 3.0); ClinicalTrials.gov via AACT, CTTI (CC BY)

| Column | Type | Unit | Description |
| --- | --- | --- | --- |
| target_id | text |  | The target's Ensembl gene id (ENSG followed by eleven digits): the entry key for the targets object type. A gene symbol is not a value here; it is a separate column. |
| target_symbol | text |  | The target's HGNC gene symbol (the id the target page address carries). |
| trial_id | text |  | The ClinicalTrials.gov NCT id, the id the trials datasets use. |
| evidence_source | text |  | The best evidence tier among the trial's drugs that act on the target. |
| brief_title | text |  | The trial's brief title. |
| phase | text |  | The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those. |
| phase_label | text |  | The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code. |
| overall_status | text |  | The registry's overall recruitment status. |
| start_year | integer |  | The year the trial started. |
| lead_sponsor_name | text |  | The lead sponsor's name as filed. |
| lead_sponsor_org_id | text |  | Legal-entity level: the lead sponsor organization; null when it does not resolve. |
| lead_sponsor_company_id | text |  | Company level: the lead sponsor's company; null when none. |
| lead_sponsor_company_name | text |  | Display name of the lead sponsor's company. |
| lead_sponsor_group_id | text |  | Group level: the lead sponsor's current ultimate parent company; a root company's group is itself. |
| lead_sponsor_group_name | text |  | Display name of the lead sponsor's group. |
