The package is a Bioconductor package, and its API is Bioconductor's.
chromosomix() returns a ChromosomixView, which extends
S4Vectors::Annotated and is drawn as the viewer wherever it is printed:
at the console, on an R Markdown or Quarto page, in Shiny. as(view, "htmlwidget") is the widget it is drawn as.CoolFile,
HicFile, HicproFile, PairsFile), a HiCExperiment - its file at its
focus and resolution, its topological features as tracks - or ranges for a
1D browser.focus(), focus<-,
refocus(), resolution(), resolutions(), zoom(), fileName(),
range(), range<-, track(), track<-, trackNames(), metadata();
and with bookmarks() and marks().import() of a view reads the contacts it shows into a HiCExperiment.GRanges counts: from 1, both ends included, as the viewer's locus box
writes one. This changes region, which counted from 0 with the end
excluded: region = "IV:1000000-1400000" is now
focus = "IV:1000001-1400000" (region is kept as focus's other name,
counted from 1 too)."II:1-100000|III:1-50000" for an
off-diagonal block, rows then columns, or a GRanges of one range or two,
or a GInteractions of one pair. The viewer's own focus key, a window
inside the block, is window.BiocFile (BigWigFile, BEDFile,
...), a BamFile or TabixFile with its index, or ranges this session
holds: a GRanges (BED, or bedGraph), a GRangesList (BED12), a
GInteractions or Pairs (BEDPE), a coverage RleList (bedGraph). Those
are sent to the viewer as a file's bytes, which needs a viewer from 0.22.0
on.ChromosomixFile() names a workspace, .chromosomix.json: import()
reads one into a ChromosomixViewList, and export() writes views as one
the app opens, the ranges they hold written beside it.bookmarks() (a GRanges) and marks() (a GInteractions of arrowheads,
boxes and lines) are drawn with a view, carried in its frame's address as
a shared link carries a tab.chromosomixSession() draws a view at the console and keeps a WebSocket
open to it: range(), focus(), resolution() and import() read what
the reader is looking at, and chromosomix_goto(), chromosomix_navigate()
and chromosomix_add() move it in place. It is an rtracklayer
BrowserSession: browseGenome(ranges, "Chromosomix") draws ranges in it.input$<id>_range is where the reader is, as a GRanges.chromosomix(), chromosomix_goto(), chromosomix_navigate(),
chromosomix_add(), chromosomixOutput(), renderChromosomix(),
chromosomixProxy(), serve(), address(), resolve_viewer(),
install_viewer() and installed_viewers().