All files / src/analysis/run tracks.ts

100% Statements 24/24
100% Branches 0/0
100% Functions 0/0
100% Lines 24/24

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                        2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x   2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x  
/**
 * Every runner that belongs in the **annotations** worker, by task id.
 *
 * The counterpart of `analysis/run/index.ts`, and separate from it for the
 * reason `analysis/job.ts` gives about venues: these tasks are handed a
 * {@link TrackJobContext} rather than a {@link JobContext}, and the two workers
 * import one map each. A single map would mean each worker importing runners it
 * can never call — and, worse, importing `MetaCooler` into the annotations
 * worker, which is the layering rule §6.1 exists to keep.
 */
 
import type { TrackTaskRunner } from '../job'
import { runFrip } from './frip'
import { runGroupSignal } from './groupsignal'
import { runMetaplot } from './metaplot'
import { runMotif } from './motif'
import { runComposition } from './composition'
import { runDotplot } from './dotplot'
import { runOriTer } from './oriter'
import { runOverlap } from './overlap'
import { runPeaks } from './peaks'
import { runRestriction } from './restriction'
import { runTrackCorrelation } from './trackcorr'
 
export const TRACK_RUNNERS: Record<string, TrackTaskRunner> = {
  motif: runMotif,
  restriction: runRestriction,
  peaks: runPeaks,
  composition: runComposition,
  dotplot: runDotplot,
  oriter: runOriTer,
  metaplot: runMetaplot,
  trackcorr: runTrackCorrelation,
  frip: runFrip,
  groupsignal: runGroupSignal,
  overlap: runOverlap,
}