@sjcrh/proteinpaint-types 2.140.1-2 → 2.141.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 (43) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-Y6Z6XAFN.js → chunk-424IUJWR.js} +532 -154
  3. package/dist/{chunk-NHELOLDH.js → chunk-56JQGGZJ.js} +4103 -2234
  4. package/dist/{chunk-5BKOSJEU.js → chunk-77RH7U6G.js} +2101 -981
  5. package/dist/{chunk-F2ZZ5J3F.js → chunk-EOBFYFLQ.js} +2483 -1911
  6. package/dist/{chunk-34LXTZYA.js → chunk-I7FTK55B.js} +2162 -1590
  7. package/dist/{chunk-4S36DRJ4.js → chunk-KEJROUTM.js} +1314 -572
  8. package/dist/{chunk-ZHCVV36H.js → chunk-QWAPDNYB.js} +2486 -1914
  9. package/dist/{chunk-HJ7XFSJK.js → chunk-S6OBK4RE.js} +528 -150
  10. package/dist/{chunk-P3Z422N2.js → chunk-T3GTEGQN.js} +532 -154
  11. package/dist/{chunk-2QKCLUH3.js → chunk-UYBVE3DL.js} +2478 -1906
  12. package/dist/{chunk-KDHGWAOS.js → chunk-VMQUAU5V.js} +2481 -1909
  13. package/dist/{chunk-G5BYLEJC.js → chunk-WCWYMCZD.js} +532 -154
  14. package/dist/correlationVolcano.js +1 -1
  15. package/dist/index.js +12 -12
  16. package/dist/termdb.boxplot.js +1 -1
  17. package/dist/termdb.categories.js +1 -1
  18. package/dist/termdb.cluster.js +1 -1
  19. package/dist/termdb.descrstats.js +1 -1
  20. package/dist/termdb.numericcategories.js +1 -1
  21. package/dist/termdb.percentile.js +1 -1
  22. package/dist/termdb.termsbyids.js +1 -1
  23. package/dist/termdb.topTermsByType.js +1 -1
  24. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  25. package/dist/termdb.violin.js +1 -1
  26. package/package.json +1 -2
  27. package/src/dataset.ts +14 -4
  28. package/src/genome.ts +2 -2
  29. package/src/index.ts +1 -0
  30. package/src/routes/termdb.cluster.ts +6 -6
  31. package/src/terms/categorical.ts +0 -8
  32. package/src/terms/condition.ts +4 -3
  33. package/src/terms/date.ts +18 -0
  34. package/src/terms/geneExpression.ts +7 -21
  35. package/src/terms/geneVariant.ts +3 -0
  36. package/src/terms/metaboliteIntensity.ts +7 -20
  37. package/src/terms/numeric.ts +17 -38
  38. package/src/terms/singleCellGeneExpression.ts +3 -4
  39. package/src/terms/snp.ts +7 -7
  40. package/src/terms/snps.ts +1 -0
  41. package/src/terms/ssGSEA.ts +7 -13
  42. package/src/terms/tw.ts +11 -6
  43. package/src/terms/updated-types.ts +0 -10
@@ -1,6 +1,4 @@
1
- import type { TermWrapper } from './tw.ts'
2
- import type { NumericTerm, NumericQ } from './numeric.ts'
3
- import type { TermSettingInstance } from '../termsetting.ts'
1
+ import type { NumericBaseTerm, NumericQ, PresetNumericBins, NumTWTypes } from './numeric.ts'
4
2
 
5
3
  /*
6
4
  duplicated from geneExpression.ts
@@ -8,19 +6,15 @@ duplicated from geneExpression.ts
8
6
 
9
7
  export type SsGSEAQ = NumericQ & { dt?: number }
10
8
 
11
- export type SsGSEATW = TermWrapper & {
12
- q: SsGSEAQ
13
- term: SsGSEATerm
14
- }
15
-
16
- export type SsGSEATerm = NumericTerm & {
9
+ export type SsGSEATerm = NumericBaseTerm & {
17
10
  /** term.id: geneset db term id for native term, and cache file name for custom term */
18
11
  /** term.name: geneset db term name for native term, and user-defined name for custom term */
19
12
  /** custom term has list of gene names used for computing score */
20
13
  genes?: string[]
14
+ name?: string
15
+ type: 'ssGSEA'
16
+ bins?: PresetNumericBins
17
+ unit?: string
21
18
  }
22
19
 
23
- export type SsGSEATermSettingInstance = TermSettingInstance & {
24
- q: SsGSEAQ
25
- term: SsGSEATerm
26
- }
20
+ export type SsGSEATW = NumTWTypes & { term: SsGSEATerm }
package/src/terms/tw.ts CHANGED
@@ -1,14 +1,19 @@
1
- import type { BaseQ, BaseTW, Term } from './term.ts'
2
- import type { CategoricalQ, CategoricalTW } from './categorical.ts'
3
- import type { NumericQ, NumericTW } from './numeric.ts'
4
1
  import type { SnpsQ, SnpsTW } from './snps.ts'
5
- import type { ConditionQ } from './condition.ts'
2
+ import type { SnpQ, SnpTW } from './snp.ts'
3
+ import type { ConditionQ, ConditionTW } from './condition.ts'
6
4
  import type { SampleLstQ } from './samplelst.ts'
5
+ import type { CatTWTypes, CategoricalQ } from './categorical.ts'
6
+ import type { NumTWTypes, NumericQ } from './numeric.ts'
7
+ import type { GvTW, GvQ } from './geneVariant.ts'
7
8
 
8
- export type TermWrapper = CategoricalTW | NumericTW | SnpsTW | (BaseTW & { term: Term; q: Q })
9
+ export type TermWrapper = CatTWTypes | NumTWTypes | GvTW | ConditionTW | SnpsTW | SnpTW
10
+
11
+ export type Q = CategoricalQ | NumericQ | GvQ | ConditionQ | SnpsQ | SnpQ | SampleLstQ // | other q
12
+
13
+ //export type TermWrapper = CategoricalTW | NumericTW | SnpsTW | (BaseTW & { term: Term; q: Q })
9
14
  export type TwLst = TermWrapper[]
10
15
 
11
- export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ | SampleLstQ | SnpsQ
16
+ //export type Q = BaseQ | CategoricalQ | ConditionQ | NumericQ | SampleLstQ | SnpsQ
12
17
 
13
18
  export type RawTW =
14
19
  //{ id: string } | RawCatTW
@@ -1,10 +0,0 @@
1
- // temporary code file to hold updated type definitions
2
- // as part of the tw router/handler refactor
3
-
4
- import type { CatTWTypes, CategoricalQ } from './categorical.ts'
5
- import type { NumTWTypes, NumericQ } from './numeric.ts'
6
- import type { GvTW, GvQ } from './geneVariant.ts'
7
-
8
- export type TermWrapper = CatTWTypes | NumTWTypes | GvTW
9
-
10
- export type Q = CategoricalQ | NumericQ | GvQ // | other q