Skip to main content

Library for visualization of 3D genomic data.

This package works with BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
94%
Published
4 months ago (0.0.10)
f
addChunkToScene

Utility function to add a chunk to scene

f
addModelToScene

Utility function to add a model to scene

c
ChromatinBasicRenderer

Basic implementation of a 3d chromatin renderer. Essentially just wraps THREE.WebGLRenderer but provides semantics for building chromatin visualization.

T
ChromatinChunk

A simple list of bin positions.Used in two scenarios:a) an "anonymous" chunk of chromatin data, andb) properly annotated part of a larger model (e.g., in whole-genome model, chromosomes will be different chunks).

T
ChromatinModel
No documentation available
T
ChromatinScene

ChromatinScene carries the structures to show, plus a configuration mostly describing the layout of the scene (WIP)

f
display

Starts rendering of a scene. Returns a renderer object and a canvas.

f
embed

Embedding a visualization specified in a declarative manner into a web page.

T
GenomicCoordinates
No documentation available
f
get

Query for model parts on specified genomic coordinates

f
getBinsFromPart

Fetching specific bin index range.

f
initScene

Simple initializer for the ChromatinScene structure.

f
parse3dg

Utility function for parsing the 3DG format (e.g., the Tan et al. 2018 whole genome model)

f
parseNumpyArray

Utility for parsing a raw array of bytes uploaded through the chromospyce widget as a numpy array.

f
parsePDB

Utility function for parsing the Protein Data Bank (PDB) format, which is often used for 3D chromatin.

f
parseTsv

Utility for parsing the 3D coordinates in a tab separated values file format.

f
parseWeirdTsvFromMiniMDS

Specific utility function for parsing TSV outputted by MiniMDS software.

f
parseXYZ

Utility function for parsing an XYZ file, mostly follows the de-facto specification: https://en.wikipedia.org/wiki/XYZ_file_format