# getProteinEntry

**Identifier:** `uniprot_getProteinEntry`

**Provider:** [UniProt](https://kirha.com/providers/uniprot.md)

Get a curated UniProtKB entry by accession: function, subcellular location, disease involvement (with OMIM IDs), natural variant summary, DrugBank drugs targeting the protein, and identifiers that chain into other sources (Ensembl gene = Open Targets target ID, NCBI Gene, HGNC, ChEMBL target, OMIM, PDB). Use searchProteins or mapIds first to get the accession from a gene symbol.

## Run it with the CLI

```bash
kirha tools run uniprot_getProteinEntry \
  --input '{
    "accession": "P00533"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "uniprot_getProteinEntry",
  "input": {
    "accession": "P00533"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "accession": {
      "description": "UniProt accession, e.g. P00533 (from searchProteins or mapIds)",
      "minLength": 1,
      "type": "string"
    },
    "maxVariants": {
      "default": 20,
      "maximum": 100,
      "minimum": 0,
      "type": "number"
    }
  },
  "required": [
    "accession"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "accession": {
      "type": "string"
    },
    "chemblTargetIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "diseases": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "acronym": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "involvement": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "omimId": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "drugs": {
      "description": "DrugBank drugs with this protein as target",
      "items": {
        "additionalProperties": false,
        "properties": {
          "drugbankId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "drugbankId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "ensemblGeneIds": {
      "description": "Also the Open Targets target ID",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "entryName": {
      "type": "string"
    },
    "function": {
      "type": "string"
    },
    "geneSymbol": {
      "type": "string"
    },
    "geneSynonyms": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "hgncIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "lastAnnotationUpdate": {
      "type": "string"
    },
    "length": {
      "type": "number"
    },
    "naturalVariantCount": {
      "type": "number"
    },
    "ncbiGeneIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "omimIds": {
      "description": "OMIM gene and phenotype MIM numbers",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "organism": {
      "type": "string"
    },
    "pdbCount": {
      "type": "number"
    },
    "pdbIds": {
      "description": "Best-resolution PDB structures, max 20",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "proteinExistence": {
      "type": "string"
    },
    "proteinName": {
      "type": "string"
    },
    "reviewed": {
      "type": "boolean"
    },
    "subcellularLocations": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "taxonId": {
      "type": "number"
    },
    "variantAnnotationCounts": {
      "description": "Natural variants grouped by the first clause of their description",
      "items": {
        "additionalProperties": false,
        "properties": {
          "annotation": {
            "type": "string"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "annotation",
          "count"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "variants": {
      "description": "Disease/cancer-annotated variants first, capped by maxVariants",
      "items": {
        "additionalProperties": false,
        "properties": {
          "change": {
            "type": "string"
          },
          "dbsnpId": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "position": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "accession",
    "reviewed",
    "naturalVariantCount",
    "pdbCount"
  ],
  "type": "object"
}
```

## Related tools

Other UniProt tools that this tool refers to, or that refer to it.

- [`searchProteins`](https://kirha.com/providers/uniprot/searchProteins.md)
- [`mapIds`](https://kirha.com/providers/uniprot/mapIds.md)

-----

[All UniProt tools](https://kirha.com/providers/uniprot.md) · [< Back to tools list](https://kirha.com/tools.md)