Skip to content

Main content

Biosystematic Character State Ambiguity Mask Tool

Mark exact supplied character states, explicit slash ambiguity and unknown tokens.

Loading tool…

Description

Return independent known, ambiguity and unknown markers.

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.

Return independent known, ambiguity and unknown markers.

When to use this tool

Use Biosystematic Character State Ambiguity Mask when checking the stated systematic-character or identification-key record convention.

How to use the tool and how it works

  1. Enter states, permitted, unknownToken. 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 known, ambiguousIndices, unknownIndices. Use the output convention below.

Return independent known, ambiguity and unknown markers. known tests each state in permitted, ambiguousIndices detects a literal slash anywhere, unknownIndices tests equality to unknownToken.1

Input fieldMeaning and unitsAccepted input
statesStatesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
permittedPermittedRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
unknownTokenUnknown TokenRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
knownSupplied knowledge or observation status, without independent verification.Required. Array of boolean; maximum items 256.
ambiguousIndicesPositions containing the literal ambiguity delimiter, independently of known/unknown flags.Required. Array of safe integer; maximum items 256.
unknownIndicesUnknown IndicesRequired. Array of safe integer; maximum items 256.
json
{
  "input": {
    "states": [
      "0",
      "0/1",
      "?",
      "1"
    ],
    "permitted": [
      "0",
      "1"
    ],
    "unknownToken": "?"
  },
  "output": {
    "known": [
      true,
      false,
      false,
      true
    ],
    "ambiguousIndices": [
      1
    ],
    "unknownIndices": [
      2
    ]
  }
}

Limitations and assumptions

  • These flags can overlap; no slash-set parsing, character homology or biological state interpretation is performed.
  • 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/biosystematic-character-state-ambiguity-mask — tool.io

Similar or alternative tools