> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rafflesia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Search for homologous protein sequences

> Runs one protein-sequence search and returns the completed ranked results in the same response. Supply either a database id or slug to use its advertised current release, or supply one exact immutable database_release_id. The server resolves every scientific policy and reports every resolved identity, measurement, hash, warning, and usage value inline. No retained search resource, polling, or follow-up result request exists in the public API.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/homology
openapi: 3.1.0
info:
  description: >-
    Deterministic biological evidence primitives. Every response is the same
    envelope: ok, data, warnings, provenance.
  title: Rafflesia API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.rafflesia.ai
security:
  - bearerAuth: []
paths:
  /v1/homology:
    post:
      tags:
        - Homology
      summary: Search for homologous protein sequences
      description: >-
        Runs one protein-sequence search and returns the completed ranked
        results in the same response. Supply either a database id or slug to use
        its advertised current release, or supply one exact immutable
        database_release_id. The server resolves every scientific policy and
        reports every resolved identity, measurement, hash, warning, and usage
        value inline. No retained search resource, polling, or follow-up result
        request exists in the public API.
      operationId: homology_search
      parameters:
        - description: >-
            Optional retry identity. Reuse the same key for the same request
            after an ambiguous failure. When omitted, the server derives an
            identity from the resolved scientific request.
          in: header
          name: Idempotency-Key
          schema:
            description: >-
              Optional retry identity. Reuse the same key for the same request
              after an ambiguous failure. When omitted, the server derives an
              identity from the resolved scientific request.
            maxLength: 255
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HomologyRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeHomologyResponse'
          description: OK
          headers:
            Rafflesia-Contract-Digest:
              schema:
                type: string
            Rafflesia-Version:
              schema:
                type: string
            X-Request-ID:
              schema:
                type: string
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Bad Request
        '402':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Payment Required
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Conflict
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Too Many Requests
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Service Unavailable
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Gateway Timeout
components:
  schemas:
    HomologyRequest:
      additionalProperties: false
      oneOf:
        - additionalProperties: false
          properties:
            $schema:
              description: A URL to the JSON Schema for this object.
              examples:
                - https://example.com/schemas/HomologyRequest.json
              format: uri
              readOnly: true
              type: string
            database:
              description: >-
                Database id or slug from homology.databases.list. Exactly one of
                database or database_release_id is required.
              maxLength: 256
              minLength: 1
              type: string
            database_release_id:
              maxLength: 0
              type: string
            filter:
              $ref: '#/components/schemas/HomologyDocumentFilter'
              description: >-
                Optional exact metadata predicate applied before candidate
                generation.
            guarantee:
              default: approximate
              description: >-
                Minimum search guarantee. Approximate permits a qualified
                approximate policy or a stronger exhaustive fallback; exhaustive
                requires the release's exhaustive reference policy.
              enum:
                - approximate
                - exhaustive
              type: string
            include:
              default:
                - alignment
              description: >-
                Scientific result representations to return. Pairwise alignment
                is included by default. Pass an empty array for candidate
                measurements only.
              items:
                enum:
                  - alignment
                type: string
              maxItems: 1
              type: array
              uniqueItems: true
            include_attributes:
              description: >-
                Optional target attributes to project. The current Tomato
                catalog can project record_id; unsupported attributes are
                rejected instead of fabricated.
              items:
                enum:
                  - record_id
                type: string
              maxItems: 1
              type:
                - array
                - 'null'
              uniqueItems: true
            limit:
              default: 25
              description: Maximum number of ranked results to return.
              format: int64
              maximum: 10000
              minimum: 1
              type: integer
            max_billable_units:
              description: >-
                Optional hard ceiling on deterministic billable work. The search
                fails before exceeding it.
              format: int64
              minimum: 1
              type: integer
            sequence:
              description: >-
                Raw amino-acid sequence text. ASCII whitespace is ignored,
                letters are uppercased, and one trailing stop symbol is removed.
                The normalized sequence may contain at most 100,000 residues.
              maxLength: 110000
              minLength: 1
              type: string
            significance:
              default: not_requested
              description: >-
                Whether database-aware significance is omitted, included when a
                compatible calibration exists, or required for the request to
                succeed.
              enum:
                - not_requested
                - if_available
                - required
              type: string
          required:
            - sequence
            - database
          type: object
        - additionalProperties: false
          properties:
            $schema:
              description: A URL to the JSON Schema for this object.
              examples:
                - https://example.com/schemas/HomologyRequest.json
              format: uri
              readOnly: true
              type: string
            database:
              maxLength: 0
              type: string
            database_release_id:
              description: >-
                Exact immutable release id. Exactly one of database or
                database_release_id is required.
              maxLength: 256
              minLength: 1
              type: string
            filter:
              $ref: '#/components/schemas/HomologyDocumentFilter'
              description: >-
                Optional exact metadata predicate applied before candidate
                generation.
            guarantee:
              default: approximate
              description: >-
                Minimum search guarantee. Approximate permits a qualified
                approximate policy or a stronger exhaustive fallback; exhaustive
                requires the release's exhaustive reference policy.
              enum:
                - approximate
                - exhaustive
              type: string
            include:
              default:
                - alignment
              description: >-
                Scientific result representations to return. Pairwise alignment
                is included by default. Pass an empty array for candidate
                measurements only.
              items:
                enum:
                  - alignment
                type: string
              maxItems: 1
              type: array
              uniqueItems: true
            include_attributes:
              description: >-
                Optional target attributes to project. The current Tomato
                catalog can project record_id; unsupported attributes are
                rejected instead of fabricated.
              items:
                enum:
                  - record_id
                type: string
              maxItems: 1
              type:
                - array
                - 'null'
              uniqueItems: true
            limit:
              default: 25
              description: Maximum number of ranked results to return.
              format: int64
              maximum: 10000
              minimum: 1
              type: integer
            max_billable_units:
              description: >-
                Optional hard ceiling on deterministic billable work. The search
                fails before exceeding it.
              format: int64
              minimum: 1
              type: integer
            sequence:
              description: >-
                Raw amino-acid sequence text. ASCII whitespace is ignored,
                letters are uppercased, and one trailing stop symbol is removed.
                The normalized sequence may contain at most 100,000 residues.
              maxLength: 110000
              minLength: 1
              type: string
            significance:
              default: not_requested
              description: >-
                Whether database-aware significance is omitted, included when a
                compatible calibration exists, or required for the request to
                succeed.
              enum:
                - not_requested
                - if_available
                - required
              type: string
          required:
            - sequence
            - database_release_id
          type: object
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/HomologyRequest.json
          format: uri
          readOnly: true
          type: string
        database:
          description: >-
            Database id or slug from homology.databases.list. Exactly one of
            database or database_release_id is required.
          maxLength: 256
          minLength: 1
          type: string
        database_release_id:
          description: >-
            Exact immutable release id. Exactly one of database or
            database_release_id is required.
          maxLength: 256
          minLength: 1
          type: string
        filter:
          $ref: '#/components/schemas/HomologyDocumentFilter'
          description: >-
            Optional exact metadata predicate applied before candidate
            generation.
        guarantee:
          default: approximate
          description: >-
            Minimum search guarantee. Approximate permits a qualified
            approximate policy or a stronger exhaustive fallback; exhaustive
            requires the release's exhaustive reference policy.
          enum:
            - approximate
            - exhaustive
          type: string
        include:
          default:
            - alignment
          description: >-
            Scientific result representations to return. Pairwise alignment is
            included by default. Pass an empty array for candidate measurements
            only.
          items:
            enum:
              - alignment
            type: string
          maxItems: 1
          type: array
          uniqueItems: true
        include_attributes:
          description: >-
            Optional target attributes to project. The current Tomato catalog
            can project record_id; unsupported attributes are rejected instead
            of fabricated.
          items:
            enum:
              - record_id
            type: string
          maxItems: 1
          type:
            - array
            - 'null'
          uniqueItems: true
        limit:
          default: 25
          description: Maximum number of ranked results to return.
          format: int64
          maximum: 10000
          minimum: 1
          type: integer
        max_billable_units:
          description: >-
            Optional hard ceiling on deterministic billable work. The search
            fails before exceeding it.
          format: int64
          minimum: 1
          type: integer
        sequence:
          description: >-
            Raw amino-acid sequence text. ASCII whitespace is ignored, letters
            are uppercased, and one trailing stop symbol is removed. The
            normalized sequence may contain at most 100,000 residues.
          maxLength: 110000
          minLength: 1
          type: string
        significance:
          default: not_requested
          description: >-
            Whether database-aware significance is omitted, included when a
            compatible calibration exists, or required for the request to
            succeed.
          enum:
            - not_requested
            - if_available
            - required
          type: string
      required:
        - sequence
      type: object
    EnvelopeHomologyResponse:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/EnvelopeHomologyResponse.json
          format: uri
          readOnly: true
          type: string
        data:
          $ref: '#/components/schemas/HomologyResponse'
          description: Operation result data.
        error:
          $ref: '#/components/schemas/APIError'
          description: Structured error information.
        evidence:
          $ref: '#/components/schemas/EvidenceSummary'
          description: Mechanical evidence summary for agent inspection and chaining.
        ok:
          description: Whether the operation succeeded.
          type: boolean
        provenance:
          $ref: '#/components/schemas/Provenance'
          description: Execution provenance.
        warnings:
          description: Non-fatal warnings.
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - ok
        - warnings
        - provenance
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/ErrorModel.json
          format: uri
          readOnly: true
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    HomologyDocumentFilter:
      additionalProperties: false
      description: >-
        Recursive metadata predicate defining the eligible target population.
        Field/operator compatibility and limits come from the immutable filter
        schema for the selected release. Missing fields use strong Kleene logic;
        only true records are eligible.
      discriminator:
        propertyName: op
      oneOf:
        - $ref: '#/components/schemas/HomologyFilterAnd'
        - $ref: '#/components/schemas/HomologyFilterOr'
        - $ref: '#/components/schemas/HomologyFilterNot'
        - $ref: '#/components/schemas/HomologyFilterEq'
        - $ref: '#/components/schemas/HomologyFilterIn'
        - $ref: '#/components/schemas/HomologyFilterLt'
        - $ref: '#/components/schemas/HomologyFilterLte'
        - $ref: '#/components/schemas/HomologyFilterGt'
        - $ref: '#/components/schemas/HomologyFilterGte'
        - $ref: '#/components/schemas/HomologyFilterContains'
        - $ref: '#/components/schemas/HomologyFilterContainsAny'
        - $ref: '#/components/schemas/HomologyFilterContainsAll'
        - $ref: '#/components/schemas/HomologyFilterExists'
      properties:
        field:
          maxLength: 256
          pattern: ^[a-z0-9_]+$
          type: string
        filter:
          $ref: '#/components/schemas/HomologyDocumentFilter'
        filters:
          items:
            $ref: '#/components/schemas/HomologyDocumentFilter'
          maxItems: 256
          minItems: 1
          type: array
        op:
          enum:
            - and
            - or
            - not
            - eq
            - in
            - lt
            - lte
            - gt
            - gte
            - contains
            - contains_any
            - contains_all
            - exists
          type: string
        value:
          oneOf:
            - maxLength: 16384
              type: string
            - type: integer
            - type: boolean
        values:
          items:
            oneOf:
              - maxLength: 16384
                type: string
              - type: integer
              - type: boolean
          maxItems: 4096
          minItems: 1
          type: array
      required:
        - op
      type: object
    HomologyResponse:
      additionalProperties: false
      properties:
        database:
          $ref: '#/components/schemas/HomologyResponseDatabase'
        is_result_limit_reached:
          description: >-
            True when additional ranked targets existed beyond limit. False
            means the returned list exhausted the searched population.
          type: boolean
        method:
          $ref: '#/components/schemas/HomologyResponseMethod'
        query:
          $ref: '#/components/schemas/HomologyResponseQuery'
        result_sha256:
          type: string
        results:
          items:
            $ref: '#/components/schemas/HomologyResult'
          type: array
        usage:
          $ref: '#/components/schemas/HomologyResponseUsage'
      required:
        - query
        - database
        - method
        - results
        - is_result_limit_reached
        - result_sha256
        - usage
      type: object
    APIError:
      additionalProperties: false
      properties:
        code:
          description: Stable specific error code.
          type: string
        details:
          additionalProperties: {}
          description: Additional structured error details.
          type: object
        doc_url:
          description: Stable documentation URL for this error code.
          type: string
        message:
          description: Human-readable error message.
          type: string
        param:
          description: Request field responsible for the error when known.
          type: string
        type:
          description: Stable coarse error category.
          enum:
            - invalid_request_error
            - resource_missing
            - resource_expired
            - conflict_error
            - rate_limit_error
            - authentication_error
            - permission_error
            - billing_error
            - api_error
          type: string
      required:
        - type
        - code
        - message
        - doc_url
      type: object
    EvidenceSummary:
      additionalProperties: false
      properties:
        duration_ms:
          description: >-
            Primary elapsed duration in milliseconds when the response exposes
            one.
          format: int64
          type: integer
        input_refs:
          description: >-
            Input references detected from request fields such as object_id,
            structure_id, target_id, and sequence_id.
          items:
            type: string
          type:
            - array
            - 'null'
        object_refs:
          description: Object ids or object refs visible in the response/provenance.
          items:
            type: string
          type:
            - array
            - 'null'
        output_refs:
          description: Output references detected from response data and generated objects.
          items:
            type: string
          type:
            - array
            - 'null'
        row_count:
          description: >-
            Primary row count or returned row count when the response exposes
            one.
          format: int64
          type: integer
        warnings_count:
          description: Number of non-fatal warnings in the envelope.
          format: int64
          type: integer
      required:
        - warnings_count
      type: object
    Provenance:
      additionalProperties: false
      properties:
        cache_hit:
          description: Whether cached output was reused.
          type: boolean
        created_at:
          description: UTC timestamp.
          type: string
        database_snapshots:
          description: Database snapshots used.
          items:
            $ref: '#/components/schemas/DatabaseSnapshot'
          type:
            - array
            - 'null'
        generated_object_ids:
          description: Object ids created by the operation.
          items:
            type: string
          type:
            - array
            - 'null'
        input_hash:
          description: SHA-256 hash of canonical request input.
          type: string
        operation:
          description: Primitive operation id.
          type: string
        parameters_hash:
          description: SHA-256 hash of parameters.
          type: string
        request_id:
          description: Unique request identifier.
          type: string
        server_version:
          description: Server version.
          type: string
        tool_versions:
          description: Tool versions used.
          items:
            $ref: '#/components/schemas/ToolVersion'
          type:
            - array
            - 'null'
      required:
        - request_id
        - operation
        - created_at
        - server_version
      type: object
    Warning:
      additionalProperties: false
      properties:
        code:
          description: Stable warning code.
          type: string
        details:
          additionalProperties: {}
          description: Additional structured warning details.
          type: object
        message:
          description: Human-readable warning message.
          type: string
      required:
        - code
        - message
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    HomologyFilterAnd:
      additionalProperties: false
      properties:
        filters:
          items:
            $ref: '#/components/schemas/HomologyDocumentFilter'
          maxItems: 256
          minItems: 1
          type: array
        op:
          enum:
            - and
          type: string
      required:
        - op
        - filters
      type: object
    HomologyFilterOr:
      additionalProperties: false
      properties:
        filters:
          items:
            $ref: '#/components/schemas/HomologyDocumentFilter'
          maxItems: 256
          minItems: 1
          type: array
        op:
          enum:
            - or
          type: string
      required:
        - op
        - filters
      type: object
    HomologyFilterNot:
      additionalProperties: false
      properties:
        filter:
          $ref: '#/components/schemas/HomologyDocumentFilter'
        op:
          enum:
            - not
          type: string
      required:
        - op
        - filter
      type: object
    HomologyFilterEq:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - eq
          type: string
        value:
          oneOf:
            - maxLength: 16384
              type: string
            - type: integer
            - type: boolean
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterIn:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - in
          type: string
        values:
          items:
            oneOf:
              - maxLength: 16384
                type: string
              - type: integer
              - type: boolean
          maxItems: 4096
          minItems: 1
          type: array
      required:
        - op
        - field
        - values
      type: object
    HomologyFilterLt:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - lt
          type: string
        value:
          type: integer
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterLte:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - lte
          type: string
        value:
          type: integer
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterGt:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - gt
          type: string
        value:
          type: integer
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterGte:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - gte
          type: string
        value:
          type: integer
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterContains:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - contains
          type: string
        value:
          maxLength: 16384
          type: string
      required:
        - op
        - field
        - value
      type: object
    HomologyFilterContainsAny:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - contains_any
          type: string
        values:
          items:
            maxLength: 16384
            type: string
          maxItems: 4096
          minItems: 1
          type: array
      required:
        - op
        - field
        - values
      type: object
    HomologyFilterContainsAll:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - contains_all
          type: string
        values:
          items:
            maxLength: 16384
            type: string
          maxItems: 4096
          minItems: 1
          type: array
      required:
        - op
        - field
        - values
      type: object
    HomologyFilterExists:
      additionalProperties: false
      properties:
        field:
          maxLength: 256
          not:
            enum:
              - id
          pattern: ^[a-z0-9_]+$
          type: string
        op:
          enum:
            - exists
          type: string
        value:
          type: boolean
      required:
        - op
        - field
        - value
      type: object
    HomologyResponseDatabase:
      additionalProperties: false
      properties:
        canonical_filter_sha256:
          type: string
        corpus_snapshot_id:
          type: string
        id:
          type: string
        release_id:
          type: string
        searched_residue_count:
          format: int64
          minimum: 0
          type: integer
        searched_target_count:
          format: int64
          minimum: 0
          type: integer
        slug:
          type: string
      required:
        - id
        - slug
        - release_id
        - corpus_snapshot_id
        - searched_target_count
        - searched_residue_count
      type: object
    HomologyResponseMethod:
      additionalProperties: false
      properties:
        calibration_id:
          type: string
        engine:
          type: string
        engine_release:
          type: string
        is_deterministic:
          type: boolean
        is_exhaustive:
          type: boolean
        outcome:
          enum:
            - complete_exact
            - complete_for_policy
          type: string
        search_policy_id:
          type: string
        semantic_profile_id:
          type: string
      required:
        - engine
        - search_policy_id
        - semantic_profile_id
        - is_exhaustive
        - is_deterministic
      type: object
    HomologyResponseQuery:
      additionalProperties: false
      properties:
        normalization_id:
          type: string
        normalized_length:
          format: int64
          type: integer
        sha256:
          type: string
      required:
        - normalized_length
        - normalization_id
        - sha256
      type: object
    HomologyResult:
      additionalProperties: false
      properties:
        affine:
          $ref: '#/components/schemas/HomologyAffineMeasurements'
        alignment:
          $ref: '#/components/schemas/HomologyPairwiseAlignment'
        maxsim:
          $ref: '#/components/schemas/HomologyMaxSimMeasurements'
        rank:
          format: int64
          type: integer
        significance:
          $ref: '#/components/schemas/HomologySignificanceMeasurements'
        target:
          $ref: '#/components/schemas/HomologyResultTarget'
      required:
        - rank
        - target
        - maxsim
      type: object
    HomologyResponseUsage:
      additionalProperties: false
      properties:
        billable_units:
          format: int64
          minimum: 0
          type: integer
        logical_bytes_read:
          format: int64
          minimum: 0
          type: integer
        logical_bytes_returned:
          format: int64
          minimum: 0
          type: integer
      required:
        - logical_bytes_returned
      type: object
    DatabaseSnapshot:
      additionalProperties: false
      properties:
        digest:
          type: string
        kind:
          type: string
        name:
          type: string
        version:
          type: string
      required:
        - name
        - version
      type: object
    ToolVersion:
      additionalProperties: false
      properties:
        name:
          type: string
        path:
          type: string
        version:
          type: string
      required:
        - name
        - version
      type: object
    HomologyAffineMeasurements:
      additionalProperties: false
      properties:
        normalized_score:
          format: double
          type: number
        raw_score:
          format: double
          type: number
      required:
        - raw_score
        - normalized_score
      type: object
    HomologyPairwiseAlignment:
      additionalProperties: false
      properties:
        aligned_residue_count:
          format: int64
          type: integer
        cigar:
          type: string
        cigar_dialect:
          type: string
        coordinate_system:
          type: string
        gap_opening_count:
          format: int64
          type: integer
        gap_residue_count:
          format: int64
          type: integer
        identical_residue_count:
          format: int64
          type: integer
        query_coverage_ratio:
          format: double
          type: number
        query_end:
          format: int64
          type: integer
        query_length:
          format: int64
          type: integer
        query_start:
          format: int64
          type: integer
        target_coverage_ratio:
          format: double
          type: number
        target_end:
          format: int64
          type: integer
        target_length:
          format: int64
          type: integer
        target_start:
          format: int64
          type: integer
      required:
        - coordinate_system
        - cigar_dialect
        - query_length
        - target_length
        - query_start
        - query_end
        - target_start
        - target_end
        - query_coverage_ratio
        - target_coverage_ratio
        - aligned_residue_count
        - identical_residue_count
        - gap_residue_count
        - gap_opening_count
        - cigar
      type: object
    HomologyMaxSimMeasurements:
      additionalProperties: false
      properties:
        bidirectional:
          format: double
          type: number
        query_to_target:
          format: double
          type: number
        target_to_query:
          format: double
          type: number
      required:
        - query_to_target
        - target_to_query
        - bidirectional
      type: object
    HomologySignificanceMeasurements:
      additionalProperties: false
      properties:
        calibration_bin:
          type: string
        calibration_id:
          type: string
        calibration_sample_count:
          format: int64
          type: integer
        expected_false_hits:
          format: double
          type: number
        family_wise_exceedance_probability:
          format: double
          type: number
        minimum_resolvable_probability:
          format: double
          type: number
        pair_tail_probability:
          format: double
          type: number
        q_value:
          format: double
          type: number
        support_status:
          enum:
            - supported_empirical
            - supported_tail_model
            - insufficient_tail_resolution
            - out_of_support
            - missing_calibration
          type: string
      required:
        - calibration_sample_count
        - support_status
        - calibration_id
      type: object
    HomologyResultTarget:
      additionalProperties: false
      properties:
        attributes:
          additionalProperties:
            type: string
          description: >-
            Requested release-backed target attributes. Unrequested attributes
            are omitted.
          type: object
        id:
          description: >-
            Stable target record id within the selected immutable database
            release.
          type: string
      required:
        - id
      type: object
  securitySchemes:
    bearerAuth:
      description: 'A Rafflesia API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer
      type: http

````