Introduction¶
Process fluorescence spectrum files directly within DeepSeek Harness and get the numbers you care about experimentally: excitation wavelength, scan range, step size, number of data points, scan speed, PMT voltage, and for each peak—its position, height, FWHM, and integrated area. No internet connection required, no model token consumption; all calculations run locally.
What Is This¶
dsh-spectrum is a client plugin for DeepSeek Harness, maintained by CGH999. It provides 5 tools specifically designed to parse .spw files (Version002) from Gongdong fluorescence spectrophotometers as well as generic CSV/TXT/TSV files, extract spectral information and peak characteristics, and support range queries and plotting.
Core Features¶
Supported File Formats¶
| Format | Description |
|---|---|
Gongdong .spw (Version002) |
Binary, unencrypted and uncompressed; plaintext file header + int32 point count + 12 float64 parameters + n × (float32 wavelength, float32 intensity) |
| CSV / TXT / TSV | Two columns: wavelength and intensity; comma, semicolon, tab, or space delimited; UTF-8 (with BOM) or GBK auto-detected; headers and comment lines allowed |
| Other proprietary brand formats | Not supported; must be exported to CSV/TXT first |
.spw files are parsed by locating the data segment through scanning for equidistant, incrementing wavelength columns. Files with different header lengths (Version00x) are also readable. The wavelength column may be in ascending or descending order (descending is automatically reversed); non-monotonic sequences will raise an error.
5 Tools¶
| Tool | Purpose |
|---|---|
spectrum_read |
Read file metadata (format, encryption status, excitation wavelength, scan range, step size, point count, scan speed, PMT voltage) + intensity statistics + peak list |
spectrum_peaks |
Peak analysis within a specified wavelength range: peak position, peak height relative to local baseline, FWHM, left/right half-height positions, integrated area, local baseline |
spectrum_data |
“Wavelength–intensity” table for a specified range; output as table, JSON, or save as CSV |
spectrum_plot |
Render a PNG (or SVG) plot with axes, grid, peak annotations, and legend; supports multi-file overlay, normalization, smoothing, and baseline subtraction |
spectrum_compare |
Cross-sample comparison: peak positions/heights/FWHM/integrals and max intensity within the same range; when two wavelengths are given, also computes the I(λ1)/I(λ2) ratio |
Peak-detection adjustable parameters: prominence (percentage of the intensity dynamic range within the interval), minimum peak spacing, Savitzky–Golay smoothing window, and baseline mode none / linear / snip / rolling.
Installation¶
dsh plugin add github:CGH999/dsh-spectrum
Or enter the repository URL under Plugins → Add Plugin.
Typical Usage¶
Read D:\data\sample.spw and tell me the excitation wavelength and where the peaks are
The plugin returns the instrument parameters from the file header along with the locally computed peak table.
Use Cases and Notes¶
Ideal for users who need to parse fluorescence spectrum files, extract peak characteristics, perform wavelength-range queries, and generate plots. The plugin runs with the current dsh process privileges; it is recommended to review the source code and license before installing.
In Short¶
dsh-spectrum makes working with fluorescence spectra in DeepSeek Harness straightforward: it supports Gongdong .spw files and generic CSV/TXT, and its 5 tools provide a complete set of local computation workflows from reading and analysis to plotting.
Catalog page: https://www.skillhub.cn/plugins/CGH999/dsh-spectrum
GitHub: https://github.com/CGH999/dsh-spectrum