dsh-molbio-panel 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/index.mjs +1 -1
- package/lib/client.js +1124 -81
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# dsh-molbio-panel
|
|
2
2
|
|
|
3
|
-
DSH Web GUI 的**浏览器内 Molbio 面板**:右侧栏的一个 tab
|
|
4
|
-
选中当场画出来——`.dna` / `.gb` / `.gbk` 出质粒图谱,`.fa` / `.fasta`
|
|
3
|
+
DSH Web GUI 的**浏览器内 Molbio 面板**:右侧栏的一个 tab,列出当前会话工作区的序列与结构文件,
|
|
4
|
+
选中当场画出来——`.dna` / `.gb` / `.gbk` 出质粒图谱,`.fa` / `.fasta` 出序列标识图,
|
|
5
|
+
`.pdb` / `.ent` / `.cif` / `.mmcif` / `.sdf` / `.mol` 出可旋转的 3D
|
|
6
|
+
ball-and-stick / space-filling 原子模型。
|
|
5
7
|
|
|
6
8
|
解析与渲染在浏览器里跑的是 [`dsh-molbio-tools`](https://github.com/lovy2004/dsh-molbio-tools)
|
|
7
|
-
的**同一份源码**(`lib/genbank/snapgene/plasmid/msa/logo
|
|
9
|
+
的**同一份源码**(`lib/genbank/snapgene/plasmid/msa/logo` 与 `structure-preview` /
|
|
10
|
+
`structure-render`)——
|
|
11
|
+
不落盘 SVG、不弹系统查看器、
|
|
8
12
|
不经过工具调用。
|
|
9
13
|
|
|
10
14
|
## 为什么是单独的包
|
|
@@ -12,12 +16,12 @@ DSH Web GUI 的**浏览器内 Molbio 面板**:右侧栏的一个 tab,列出
|
|
|
12
16
|
面板必须走 **bundle 渠道**(`dsh.client` 双面包):preset 渠道挂不了客户端 UI
|
|
13
17
|
(详见 `dsh-molbio-tools` 仓库的 `docs/client-pipeline-exploration.md`)。
|
|
14
18
|
|
|
15
|
-
而 `dsh-molbio-tools` 的宿主半边会注册 **
|
|
19
|
+
而 `dsh-molbio-tools` 的宿主半边会注册 **64 个工具**——把它挂进一个共享的 Web profile,
|
|
16
20
|
等于给**该 profile 的每个会话**都塞进这些工具。所以面板单独成包:
|
|
17
21
|
|
|
18
22
|
| 包 | 宿主半边 | 用途 |
|
|
19
23
|
| --- | --- | --- |
|
|
20
|
-
| `dsh-molbio-tools` |
|
|
24
|
+
| `dsh-molbio-tools` | 64 个 molbio 工具 | 分子生物学专用 profile / preset |
|
|
21
25
|
| `dsh-molbio-panel` | **不注册任何工具**(空实现) | 只想在共享 profile 里加一个面板 |
|
|
22
26
|
|
|
23
27
|
宿主半边刻意保持空:客户端扫描按 **Loader 条目**取包清单,条目只要能加载,浏览器半就能
|
|
@@ -37,7 +41,10 @@ dsh plugin --profile <profile> add D:\path\to\packages\molbio-panel # 本地
|
|
|
37
41
|
1. 打开右侧栏(会话头部角落的按钮),从引导页选 **Molbio**。
|
|
38
42
|
2. 左栏列出工作区里可打开的文件(质粒文件排在前面)。
|
|
39
43
|
3. 点一个 `.dna` / `.gb` → 右侧出图谱 + 特征表(Feature / Type / Start / End / Strand);
|
|
40
|
-
点一个 `.fasta`(≥2 条序列)→ 出序列标识图(信息量 bits
|
|
44
|
+
点一个 `.fasta`(≥2 条序列)→ 出序列标识图(信息量 bits,小样本校正默认开);
|
|
45
|
+
点一个 `.pdb` / `.cif` / `.sdf` / `.mol` → 出可旋转的 3D 模型(ball-and-stick 或
|
|
46
|
+
space-filling;拖拽旋转、滚轮缩放、双击复位)。它是真实原子模型的预览,
|
|
47
|
+
不含分子表面/静电势,也不做测量;V3000 不支持。
|
|
41
48
|
|
|
42
49
|
## 限制
|
|
43
50
|
|
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* dsh-molbio-panel — host half.
|
|
3
3
|
*
|
|
4
4
|
* This package exists so the browser panel can be installed WITHOUT dragging
|
|
5
|
-
* the
|
|
5
|
+
* the molbio toolset into every session of a profile. It is a `dsh.client`
|
|
6
6
|
* dual-face package: the host half below, and the browser half built from the
|
|
7
7
|
* `dsh-molbio-tools` sources into `lib/client.js`.
|
|
8
8
|
*
|