@sjcrh/proteinpaint-types 2.99.2-0 → 2.100.1-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 +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.99.2-0",
3
+ "version": "2.100.1-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
@@ -208,14 +208,15 @@ type VariantFilter = {
208
208
 
209
209
  /** one set of AC and AN info fields to retrieve data for this population */
210
210
  type PopulationINFOset = {
211
- /** optional name for identifying this set, when the population is ancestry-stratified and a population has multiple sets */
211
+ /** optional term id for retrieving admix coefficient for an ancestry corresponding to this "PopulationINFOset" entry
212
+ for every sample carrying a variant.
213
+ this is required when sets[].length>1
214
+ this should not be set when sets[].length=1 */
212
215
  key?: string
213
216
  /** required info field */
214
217
  infokey_AC: string
215
218
  /** required info field */
216
219
  infokey_AN: string
217
- /** Optional */
218
- termfilter_value?: string
219
220
  }
220
221
 
221
222
  /* define method to retrieve allele AC/AN in a population, by using bcf INFO fields; population could be ancestry-stratified
@@ -237,8 +238,6 @@ type Population = {
237
238
  allowto_adjust_race?: boolean
238
239
  /** when above is true, this flag is flip switch for this adjustion */
239
240
  adjust_race?: boolean
240
- /** optional term id used for race adjusting, must correspond to a term in dataset db */
241
- termfilter?: string
242
241
  /** if AC/AN of the population is ancestry-stratified, will be multiple elements of this array; otherwise just one */
243
242
  sets: PopulationINFOset[]
244
243
  }
@@ -850,6 +849,7 @@ export type SelectCohortEntry = {
850
849
  values: SelectCohortValuesEntry[]
851
850
  /** cohort-related static html shown in about tab */
852
851
  description?: string
852
+ descriptionByCohort?: { [index: string]: string }
853
853
  /** If the description is dependent on the user's role,
854
854
  define this callback to return description based on auth
855
855
  returns a static description