react-msaview-cli 5.4.1 → 5.5.0

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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -73,6 +73,43 @@ When using `--programs`, you can specify any combination of:
73
73
  - `PIRSF` - PIR SuperFamily
74
74
  - `MobiDBLite` - Disorder prediction
75
75
 
76
+ ### genestructure
77
+
78
+ Build a **gene-structure GFF** for a coding-sequence alignment from a RefSeq
79
+ transcript, overlaid in react-msaview the same way InterProScan domains are. The
80
+ exon model is fetched from the NCBI Datasets v2 API; each species' Nth exon is
81
+ named `exon-N`, so a given exon is the same color in every row and the exon
82
+ architecture reads straight down the alignment.
83
+
84
+ ```bash
85
+ react-msaview-cli genestructure <input-msa> --gene <symbol> --ref <rowname> [options]
86
+ ```
87
+
88
+ The exon boundaries of the chosen transcript are mapped onto the reference row's
89
+ columns, then projected into every other row's own ungapped coordinates — so an
90
+ exon that picks up a frameshifting indel in one lineage gets shorter on exactly
91
+ that row while staying column-aligned with the rest. The reference row must be
92
+ the transcript's coding sequence (the CLI warns if its length doesn't match).
93
+
94
+ #### Options
95
+
96
+ | Option | Description | Default |
97
+ | --------------------- | --------------------------------------------- | ------------------- |
98
+ | `--gene <symbol>` | Gene symbol to look up in RefSeq (e.g. `F12`) | |
99
+ | `--taxon <name\|id>` | Taxon for `--gene` | `human` |
100
+ | `--gene-id <id>` | NCBI GeneID, instead of `--gene` | |
101
+ | `--transcript <acc>` | Specific transcript accession | MANE/RefSeq Select |
102
+ | `--ref <rowname>` | Reference row = the transcript's CDS | first row |
103
+ | `-o, --output <file>` | Output GFF file path | `genestructure.gff` |
104
+
105
+ ```bash
106
+ # F12 coding alignment -> 14-exon overlay (MANE Select transcript, human row)
107
+ react-msaview-cli genestructure f12-cds.stock --gene F12 --ref human -o exons.gff
108
+
109
+ # pin a specific transcript
110
+ react-msaview-cli genestructure aln.fa --transcript NM_000505.4 --ref human
111
+ ```
112
+
76
113
  ## Examples
77
114
 
78
115
  ### Using EBI API (recommended for small datasets)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-msaview-cli",
3
- "version": "5.4.1",
3
+ "version": "5.5.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -15,21 +15,21 @@
15
15
  "dist"
16
16
  ],
17
17
  "devDependencies": {
18
- "@types/jsdom": "^21.1.7",
19
- "@types/node": "^25.9.4"
18
+ "@types/jsdom": "^28.0.3",
19
+ "@types/node": "^26.0.1"
20
20
  },
21
21
  "dependencies": {
22
22
  "@emotion/react": "^11.14.0",
23
23
  "@emotion/styled": "^11.14.1",
24
24
  "@jbrowse/core": "^4.3.0",
25
25
  "@mui/material": "^7.3.11",
26
- "jsdom": "^26.1.0",
26
+ "jsdom": "^29.1.1",
27
27
  "mobx": "^6.16.1",
28
28
  "mobx-react": "^9.2.2",
29
29
  "react": "^19.2.7",
30
30
  "react-dom": "^19.2.7",
31
- "msa-parsers": "5.4.1",
32
- "react-msaview": "5.4.1"
31
+ "msa-parsers": "5.5.0",
32
+ "react-msaview": "5.5.0"
33
33
  },
34
34
  "scripts": {
35
35
  "clean": "node --eval \"fs.rmSync('dist',{recursive:true,force:true})\" --input-type=module",