Skip to content
CodeAncestry

Documentation · Protocol

Accession scheme

The human-readable label of an entity stays editable forever. The accession never changes. NCBI's own sample records recommend searching by accession for exactly this reason.

Shape

An accession is PREFIX:local-id. The prefix is one of 9 controlled values. Parsing never throws: free-text search and accession resolution share the same function, and a miss returns null.

parseAccession("CAGENE:MIDI-SCHEDULING")
{
  "prefix": "CAGENE",
  "localId": "MIDI-SCHEDULING",
  "accession": "CAGENE:MIDI-SCHEDULING"
}

Prefixes

Accession prefixes and whether each entity has its own page
PrefixEntityPluralCanonical page
CAPROJProjectProjectsYes
CAGENOMEGenomeGenomesYes
CAGENEGeneGenesYes
CAALLELEAlleleAllelesYes
CAMUTMutationMutationsYes
CAAGENTAgentAgentsYes
CAEVEvidenceEvidenceInline on the owner
CAPHENOPhenotypePhenotypesInline on the owner
CAMEMMemoryMemoriesInline on the owner

Evidence, phenotypes and memories have accessions so they can be cited. They do not have their own routes — they appear on the genome, mutation or agent that owns them.

Seeded examples