@sjcrh/proteinpaint-types 2.137.1-0 → 2.137.2-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/package.json +1 -1
  2. package/src/dataset.ts +14 -4
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.2-0",
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
@@ -743,14 +743,13 @@ export type SingleCellGeneExpressionGdc = {
743
743
  }
744
744
 
745
745
  export type SingleCellSamples = {
746
- /** if missing refer to the samples as 'sample', this provides override e.g. 'case' */
747
746
  /** logic to decide sample table columns (the one shown on singlecell app ui, displaying a table of samples with sc data)
748
747
  a sample table will always have a sample column, to show sample.sample value
749
748
  - use uiLabels.Sample to customize the name of the first column
750
749
  - the other two properties allow to declare additional columns to be shown in table, that are for display only
751
750
  when sample.experiments[] are used, a last column of experiment id will be auto added
752
751
  */
753
- /** any columns to be added to sample table. each is a term id */
752
+ /** any columns to be added to sample table. each is a term id, limited to categorical/numeric dictionary terms */
754
753
  sampleColumns?: { termid: string }[]
755
754
  /** used on client but not on ds */
756
755
  experimentColumns?: { label: string }[]
@@ -803,7 +802,9 @@ type SingleCellPlot = {
803
802
  /** value is display as plot name on ui and also used as identifier for a plot, must be unique */
804
803
  name: string
805
804
  /** folder in which per-sample files are stored.
806
- each file is a tabular text file with all cells (rows) from that sample.
805
+ - each file is a tabular text file with all cells (rows) from that sample. each file is named by the sample and includes optional suffix
806
+ - folder must only contain per-sample files! files with names that cannot be matched to sample will crash dataset. this improves debugging
807
+
807
808
  all files must have same set of columns:
808
809
  - 1st column is cell barcode
809
810
  - x/y coordinate column number is defined in coordsColumns{x,y} below
@@ -1539,7 +1540,16 @@ type PlotConfigByCohort = {
1539
1540
  type Tw = {
1540
1541
  id: string
1541
1542
  q: unknown
1542
- baseURL?: string //Only appears as a quick fix in SAMD9-SAMD9L.hg19?
1543
+ /** 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
1544
+ */
1545
+ baseURL?: string
1546
+ /** quick fix. such a "publication" term can have values either pmid or doi, need to generate different links
1547
+ cannot use ds-defined callback to compute the link as the links are only generated on client
1548
+ thus this work around for client code to apply the url-building logic
1549
+ 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;
1550
+ otherwise it is treated as pmid and joined to pubmed link as-is
1551
+ */
1552
+ pmidOrDoi?: true
1543
1553
  }
1544
1554
 
1545
1555
  type Variant2Samples = GdcApi & {