dshbase

插件目录 / Developer / dsh-file-explorer-preview-sequence

dsh-file-explorer-preview-sequence

未验证 wolfsonliu

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
语言
2026-08-23最近推送
跨平台平台

功能简介

DSH Web file-explorer preview plugin: renders FASTA / GenBank / JBEI / SnapGene / SBOL sequences with the SeqViz viewer | DSH Web 文件浏览器预览插件:用 SeqViz 查看器渲染 FASTA / GenBank / JBEI / SnapGene / SBOL 序列文件

我们的评价
未验证 — 尚未实测

DSH Web file-explorer preview plugin: renders FASTA / GenBank / JBEI / SnapGene / SBOL sequences with the SeqViz viewer | DSH Web 文件浏览器预览插件:用 SeqViz 查看器渲染 FASTA / GenBank / JBEI / SnapGene / SBOL 序列文件 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-file-explorer-preview-sequence

中文 | English

A DSH Web plugin that adds a SeqViz sequence viewer to dsh-file-explorer, overriding its plain-text previews for FASTA, GenBank, JBEI, SnapGene, and SBOL files.

Select a .gb / .fasta (or any supported format below) in the file explorer and the preview panel renders an interactive sequence viewer instead of raw text.

Screenshots

Dark theme Light theme
Sequence preview in dark theme Sequence preview in light theme

Features

  • Interactive viewer built on seqviz (<SeqViz>), with parsing by seqparse.
  • Topologies: circular / linear / both / both-flip.
  • Feature annotations with colors, search with highlight, enzyme cut sites, complement & index toggles, and linear zoom.
  • Status bar with the format badge, name, sequence type, and length.
  • Localized toolbar/status copy (中文 / English).
  • Dark/light aware: follows DSH's data-ds-dark-theme.

Supported formats

Extension Format
fasta fa fas fna faa ffn FASTA
gb gbk genbank gp GenBank / GenPept
dna SnapGene
seq JBEI SEQ
sbol xml SBOL v1/v2

Install

From the Git repository

dsh plugin --profile web add github:wolfsonliu/dsh-file-explorer-preview-sequence
dsh web

From source

git clone https://github.com/wolfsonliu/dsh-file-explorer-preview-sequence
cd dsh-file-explorer-preview-sequence
npm install
npm run build
dsh plugin --profile web add .
dsh web

Dependencies

This plugin requires @dsh-external/dsh-file-explorer (v0.1.0+) — it injects the fileExplorer cordis service (registerPreview / writeFile / readRawFile). Install and enable dsh-file-explorer before this plugin:

# install the core from git
dsh plugin --profile web add github:wolfsonliu/dsh-file-explorer

# or, from source
git clone https://github.com/wolfsonliu/dsh-file-explorer
cd dsh-file-explorer
npm install && npm run build
dsh plugin --profile web add .

For local development, this repo's devDependencies resolves @dsh-external/dsh-file-explorer's ./client type definitions. Point it at your checkout or your registry's published package before npm install.

For files ≤ 2 MiB the plugin parses the text preview content directly. SnapGene .dna (binary) and files larger than 2 MiB are handled via readRawFile (available in dsh-file-explorer v0.1.0+). When readRawFile is absent (older core versions), the plugin degrades gracefully: text formats ≤ 2 MiB still preview, .dna and larger files show an unsupported status.

Limitations

  • Read-only preview (no editing).
  • SnapGene .dna and > 2 MiB files require dsh-file-explorer v0.1.0+ (older versions degrade gracefully).
  • .xml and .seq are ambiguous extensions; files in those extensions that aren't SBOL / JBEI fall back to a plain-text view.

Development

npm run check   # tsc type check
npm test        # vitest unit tests
npm run build   # tsc + tsdown (single-file lib/client.js bundling seqviz + seqparse)

The real SeqViz canvas cannot run under jsdom; verify it with dsh web and a sequence file in examples/.

After npm run build, hard-refresh the browser (Ctrl/Cmd+Shift+R): dsh web may keep serving a cached plugin bundle, so a soft reload can leave your latest build unused.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-file-explorer-preview-sequence」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:wolfsonliu/dsh-file-explorer-preview-sequence

Headless(CLI)profile:

dsh plugin --profile headless add github:wolfsonliu/dsh-file-explorer-preview-sequence

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →