Skip to main content

Module locus

Module locus 

Source
Expand description

Nameless addresses in graph space.

A specific location on the genome can be specified by a region on a path (addressing in linear space), for example “chr1:123-456”. If there is no path defined that traverses the location you need to address in graph space. There are two kinds of graphs to consider in our datamodel:

  • Graphs with Nodes as defined in the database and edges with start/end coordinates.
  • Graphs with Blocks aka GraphNodes that are carved out Nodes and which most closely resemble the pangenomics literature.

The search algorithm, for example, is a lot easier to understand on Blocks rather than Nodes. It’s output can be used to address graph space and in the form of a list of GraphNodeSlices: segments from blocks, in the coordinate reference frame (left side = 0). But to store graph changes in the additive model in the database we must convert back to the Node format.

Structs§

GraphLocus
A region in graph space expressed as an ordered list of block slices. Each slice carries its own strand, allowing trans-spliced loci where individual exons may come from opposite strands.
GraphNodeSlice
A slice of a single graph block: the block itself plus local start/end byte offsets within that block’s sequence. Middle blocks in a multi-block locus span the full block (start = 0, end = block.length()).