Introduction¶
When doing bioinformatics or sequence-related development in DeepSeek Harness (DSH), the workspace often contains alignment files such as FASTA, CLUSTAL, PHYLIP, and Stockholm. Opening them with the default text preview makes column alignment and conservation information unintuitive, often requiring a switch to dedicated desktop tools. dsh-seq-viewer is a community-maintained client plugin: clicking an alignment file in the workspace file tree opens a ReSeqt-based sequence alignment view in the right sidebar. Files are read locally only and are not uploaded.
What is this¶
- Name:
dsh-seq-viewer(npm package name, version 0.1.0) - Maintainer: ZengZichao (Repository GitHub)
- Category: Client (Categorized as “Client” in the DSH plugin directory)
- Positioning: A DeepSeek Harness plugin that views alignment formats like FASTA, CLUSTAL, PHYLIP, and Stockholm in the right sidebar using ReSeqt. The viewer is adapted from the source code of ReSeqt 1.0.1, retaining capabilities such as Canvas rendering, color schemes, conservation histograms, consensus lines, sequence logos, search, sorting, reference sequences, jumping, zooming, selection copying, overview maps, and PNG export.
The plugin registers the sequence-alignment label type with extension priority. When configured globs match, it takes precedence over the built-in text preview. Reading is performed via remote.workspaceFiles.readBytes authorized by the DSH session (default limit 32 MB). There are no server-side routes for this plugin.
Core Features¶
Direct Workspace Opening and Sidebar Integration¶
- Open Workspace Files in the right sidebar and click an alignment file with a recognized extension.
- A Sequence Alignment tab with the same name appears in the right sidebar, alongside “Files” and “Terminal”; tabs can be switched, closed, and split by dragging.
keepMountedensures view state is preserved when switching away and back. - Observe file
versionviaresources; if the content on disk changes, the tab bar prompts “File has changed, reload”, requiring manual reloading without automatic re-parsing.
Formats and Recognition¶
| Type | Default glob (excerpt) |
|---|---|
| FASTA (incl. A2M/A3M) | *.fasta *.fa *.fna *.faa, etc. |
| General Alignment | *.aln *.msa *.a2m *.a3m |
| PHYLIP | *.phy *.phylip *.ph |
| CLUSTAL | *.clustal *.clw |
| Stockholm | *.sto *.stockholm *.st |
| gzip | The *.gz forms of all the above globs |
FASTA is displayed directly; CLUSTAL W / MUSCLE, PHYLIP (interleaved or single line), and Stockholm are converted to FASTA on the frontend before being passed to ReSeqt. Format is identified by content, while extensions are only used for claiming files; .txt is not claimed and uses the built-in text preview. It automatically determines nucleic acid vs. protein based on the proportion of protein-specific residues; .faa, .aa, .prot, and .pep are displayed as protein, and color schemes can be switched within the viewer.
Format Settings¶
There is a green Sequence button (DNA double helix icon) in the title bar of “Workspace Files” in the right sidebar. It allows checking six groups of common globs (40 defaults are all checked), select all / select none / restore defaults, or one custom glob per line (# for comments, excluding / and \). Changes take effect immediately upon saving by re-registering the label type; the config key is dsh-seq-viewer:formats:v1, stored in browser localStorage.
Other Behaviors¶
- Dark Mode: Reads the theme from the DSH page and syncs the viewer via postMessage during loading and switching.
- Narrow Sidebar: When the width is less than 760 px, the toolbar tightens, and legends can scroll horizontally.
- Right-click “Open With”: Can switch to the built-in text preview or other label types; on desktop, it can call local associated applications or “Show File Location”.
- Parsing Failure: Displays a Chinese error card providing “Open with Text Preview” and “Retry”.
It can be installed alongside dsh-phylo-viewer, but do not check the same extension for both plugins simultaneously (e.g., .phy cannot distinguish between alignment and tree files).
Installation and Activation¶
The plugin requires Node.js ≥ 20; DSH engine version >=0.2.1-rc.2 <0.3.0. Please check the repository source code and MIT license before installing; the plugin runs with the permissions of the current DSH process.
Desktop (DSH NEXT)¶
- Install from a local directory in the DSH Plugins page:
/absolute/path/to/dsh-seq-viewer; or - Quit DSH NEXT and use the desktop plugin installer (
resources/app.asar/lib/plugin-cli.js) to operate on thedesktopprofile.
Restart DSH NEXT after installation. The public dsh CLI cannot directly operate on the reserved desktop profile.
Other profiles (e.g., dsh web)¶
dsh plugin --profile <profile> add file:/absolute/path/to/dsh-seq-viewer
Restart the corresponding profile and refresh the page.
Uninstall:
dsh plugin --profile <profile> remove dsh-seq-viewer
Typical Usage¶
The repository’s examples/ provides six samples (e.g., demo_alignment.fasta, demo_alignment.aln, demo_alignment.phy, demo_alignment.sto, demo_alignment.fasta.gz), which can be copied to any DSH workspace and operated on according to the following steps.
- Open the right sidebar → Workspace Files in the session.
- Click a file such as
demo_alignment.fastaordemo_alignment.aln. - A tab with the same name appears in the right sidebar, and the alignment is rendered automatically; drag the sidebar edge to widen it.
- Toolbar: Search (Ctrl+F), Jump (Ctrl+G), Sort, Color Scheme, Legend, Consensus Line, Overview Map, Sequence Logo, PNG Export, 7-level Zoom (Ctrl+Scroll).
- Use
↻at the top of the tab to re-read; reload according to the prompt after disk changes. - Right-click the alignment tab → Open With to switch previews or external applications as needed.
Use Cases and Notes¶
Suitable for: Quickly checking MSAs, inspecting gaps and conserved sites, and exporting PNGs within a DSH session without leaving the workspace.
Notes:
- The default read limit for a single file is 32 MB; oversized or corrupted files will trigger an error card and fallback to text preview.
- No server-side routes or telemetry; only format preferences are written to
localStorage. - The community directory SkillHub Plugin Page has no official affiliation with DeepSeek / High-Flyer. The installation source depends on the repository and directory page you trust.
Conclusion¶
dsh-seq-viewer embeds ReSeqt alignment viewing capabilities into the DSH right sidebar, claiming workspace alignment files via globs, reading bytes locally, and parsing on the frontend. It is suitable for daily sequence file comparison within the Harness. For more information, see the GitHub Repository and the SkillHub Directory Page.