Protein Structure AI (PDB, UniProt)

Protein Structure AI (PDB, UniProt) · Acciones GPT

Gene and Protein Data Retrieval API

API for retrieving protein data from UniProt and structure data from PDB based on user-specified queries.

  • GET /uniprotkb/{id}.{format}Get UniProt data by UniProt ID
  • GET /uniprotkb/searchSearch UniProt data by gene
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Gene and Protein Data Retrieval API",
    "description": "API for retrieving protein data from UniProt and structure data from PDB based on user-specified queries.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://rest.uniprot.org",
      "description": "UniProt API"
    }
  ],
  "paths": {
    "/uniprotkb/{id}.{format}": {
      "get": {
        "summary": "Get UniProt data by UniProt ID",
        "operationId": "getUniProtData",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "UniProt ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "path",
            "required": true,
            "description": "Format of the response (txt, xml, rdf, fasta, gff)",
            "schema": {
              "type": "string",
              "enum": [
                "txt",
                "xml",
                "rdf",
                "fasta",
                "gff"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with UniProt data",
            "content": {}
          }
        }
      }
    },
    "/uniprotkb/search": {
      "get": {
        "summary": "Search UniProt data by gene",
        "operationId": "searchByGene",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Search query (e.g., (gene:LDLR) AND (reviewed:true) AND (organism_id:9606))",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": true,
            "description": "Target fields, (always provide these and no others: accession,length,absorption,structure_3d,ft_domain)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful search result",
            "content": {}
          }
        }
      }
    }
  }
}

Gene and Protein Data Retrieval API

API for retrieving protein data from UniProt and structure data from PDB based on user-specified queries.

  • GET /core/entry/{pdbId}Get PDB entry data
  • GET /core/polymer_entity/{pdbId}/{entityId}Get Polymer Entity data from PDB
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Gene and Protein Data Retrieval API",
    "description": "API for retrieving protein data from UniProt and structure data from PDB based on user-specified queries.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://data.rcsb.org/rest/v1",
      "description": "PDB API"
    }
  ],
  "paths": {
    "/core/entry/{pdbId}": {
      "get": {
        "summary": "Get PDB entry data",
        "operationId": "getPdbEntry",
        "parameters": [
          {
            "name": "pdbId",
            "in": "path",
            "required": true,
            "description": "PDB ID of the structure",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with PDB entry data",
            "content": {}
          }
        }
      }
    },
    "/core/polymer_entity/{pdbId}/{entityId}": {
      "get": {
        "summary": "Get Polymer Entity data from PDB",
        "operationId": "getPolymerEntity",
        "parameters": [
          {
            "name": "pdbId",
            "in": "path",
            "required": true,
            "description": "PDB ID of the structure",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "description": "Unique identifier of an entity in PDB structures",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with Polymer Entity data",
            "content": {}
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}