@sjcrh/proteinpaint-types 2.137.1 → 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 +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.137.1",
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