d4-plot
github.com/kojix2/d4-plot
No description declared in shard.yml.
Installation
# Add this to your shard.yml
dependencies:
d4-plot:
github: kojix2/d4-plot
version: ~> 0.0.8Then run:
shards installshard.yml
- Crystal
>= 1.21.0- Author
- kojix2
- Targets
d4-plotfrom src/d4-plot.crd4-plot-serverfrom src/d4-plot-server.cr
Dependencies
Runtime Dependencies
- d40.0.0github: bio-cr/d4.cr
- hts*github: bio-cr/hts.cr, branch: develop
- i18n*github: crystal-i18n/i18n
- uing0.6.0github: kojix2/uing
- mopdepth0.0.7github: kojix2/mopdepth
Development Dependencies
- ameba*github: crystal-ameba/ameba, branch: masterdev
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
d4-plot
A native desktop viewer for D4 genomic signal files. D4 Plot compares multiple tracks, displays genomic annotations, exports visible bins or complete BigWig tracks, and creates coverage D4 files from BAM or CRAM.
| Windows | macOS | Linux |
|---|---|---|
Documentation
Install
Download a package from GitHub Releases, or follow the source build guide.
Browser viewer / headless server
Open the bundled local IGV.js viewer with or without D4 tracks, without starting the native desktop UI:
# Either entry point accepts the same options.
d4-plot serve --genome hg38 --open sample.d4
d4-plot-server --genome hg38 --open
d4-plot-server --reference reference.fa --reference-index reference.fa.fai sample.d4
d4-plot-server --contigs-only sample.d4
The server binds only to 127.0.0.1 and prints a token-scoped viewer URL. Use
--open to launch it automatically, or paste the printed URL into a browser.
--port 0 (the default) selects an available loopback port; stop the server
with Ctrl-C. On Windows, run d4-plot-server from a terminal when you need to
copy the printed URL. In the macOS DMG, the standalone binary is inside the
application bundle at d4-plot.app/Contents/MacOS/d4-plot-server so it can
share the bundle's packaged native libraries.
Reference choices are mutually exclusive: --genome ID, --reference PATH,
or --contigs-only. A local FASTA requires an existing FAI (use
--reference-index to name a non-default one). A .json reference is treated
as an IGV genome JSON and its referenced files must be accessible local files.
Preset genomes use IGV's public reference definitions, so their sequence data
is not available offline unless a local reference is supplied. With a preset,
the browser fetches public reference data directly from IGV/UCSC hosts; the
local server does not proxy those requests. Those HTTPS byte-range requests
can reveal the reference and approximate viewed genomic intervals to that
reference host; use a local FASTA/FAI for fully local reference access.
Development
shards install --frozen
crystal spec spec
ameba
crystal tool format --check src spec examples
See the development guide for native dependencies, platform-specific builds, and UI runtime constraints.
License
MIT. See LICENSE and THIRD_PARTY_NOTICES.md.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.0.8- Tagged
- Oct 18, 2026
- Commit
b6b2dc95aead- Crystal
>= 1.21.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kojix2/d4-plot
Metadata
- Created
- Oct 11, 2026
- Updated
- Nov 6, 2026
- Synced
- Nov 6, 2026
- Versions
- 10