@sjcrh/proteinpaint-types 2.137.1-0 → 2.137.1

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/package.json +1 -1
  2. package/src/dataset.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.137.1-0",
3
+ "version": "2.137.1",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -1539,7 +1539,16 @@ type PlotConfigByCohort = {
1539
1539
  type Tw = {
1540
1540
  id: string
1541
1541
  q: unknown
1542
- baseURL?: string //Only appears as a quick fix in SAMD9-SAMD9L.hg19?
1542
+ /** quick fix for generating URL links in mds3 tk sample table! adhoc design. may move to tw.term.baseURL and not specific to mds3 tk
1543
+ */
1544
+ baseURL?: string
1545
+ /** quick fix. such a "publication" term can have values either pmid or doi, need to generate different links
1546
+ cannot use ds-defined callback to compute the link as the links are only generated on client
1547
+ thus this work around for client code to apply the url-building logic
1548
+ a doi value must be defined as "doi: 10.1038/s41408-025-01309-6", beginning with "doi: ", this allows client code to recognize it is doi;
1549
+ otherwise it is treated as pmid and joined to pubmed link as-is
1550
+ */
1551
+ pmidOrDoi?: true
1543
1552
  }
1544
1553
 
1545
1554
  type Variant2Samples = GdcApi & {