Skip to content

Main content

Character Source Ambiguity Gap Tool

Calculate character source ambiguity gap from explicit caller-supplied inputs.

Loading tool…

Description

Summarize character-source ambiguity.

Systematic character records distinguish observed states, ambiguity, missing data and inapplicability. Marker tokens and key-couplet references encode a supplied scheme; checking a local row does not determine actual homology, a complete valid key or a phylogenetic result.

Summarize character-source ambiguity.

When to use this tool

Use Character Source Ambiguity Gap when checking the stated systematic-character or identification-key record convention.

How to use the tool and how it works

  1. Enter characterIds, sourceIds, states, missingState. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read characters, ambiguousCharacters, unsupportedCharacters. Use the output convention below.

Summarize character-source ambiguity. Require aligned IDs/sources/states; for each character, collect distinct nonmissing states with nonempty source IDs, count zero states as unsupported and multiple states as ambiguous.1

Input fieldMeaning and unitsAccepted input
characterIdsCharacter IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
sourceIdsSource IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
statesStatesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
missingStateMissing StateRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
charactersCharactersRequired. Safe integer.
ambiguousCharactersAmbiguous CharactersRequired. Safe integer.
unsupportedCharactersUnsupported CharactersRequired. Safe integer.
json
{
  "input": {
    "characterIds": [
      "a",
      "a",
      "b"
    ],
    "sourceIds": [
      "s1",
      "s2",
      ""
    ],
    "states": [
      "0",
      "1",
      "?"
    ],
    "missingState": "?"
  },
  "output": {
    "characters": 2,
    "ambiguousCharacters": 1,
    "unsupportedCharacters": 1
  }
}

Limitations and assumptions

  • Source strings are not authenticated and conflicting states are not adjudicated; this is record support rather than biological consensus.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Validate the complete character vocabulary, specimen observations and key graph; use an appropriate systematic or phylogenetic analysis for biological conclusions.

References

  1. Calculation and input contract: biosystematics/character-source-ambiguity-gap — tool.io

Similar or alternative tools