genome-spy-python 0.1.0__py3-none-any.whl

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 (64) hide show
  1. genome_spy/__init__.py +199 -0
  2. genome_spy/_chart_authoring.py +231 -0
  3. genome_spy/_conditions.py +72 -0
  4. genome_spy/_embed.py +87 -0
  5. genome_spy/_expressions.py +271 -0
  6. genome_spy/_parameters.py +267 -0
  7. genome_spy/_render.py +207 -0
  8. genome_spy/_utils.py +75 -0
  9. genome_spy/_widget.py +262 -0
  10. genome_spy/api.py +198 -0
  11. genome_spy/arrow.py +155 -0
  12. genome_spy/channels.py +193 -0
  13. genome_spy/chart.py +1240 -0
  14. genome_spy/data.py +56 -0
  15. genome_spy/data_transformers.py +267 -0
  16. genome_spy/datasets/__init__.py +189 -0
  17. genome_spy/datasets/_airway.py +219 -0
  18. genome_spy/datasets/_annotations.py +37 -0
  19. genome_spy/datasets/_gistic.py +43 -0
  20. genome_spy/datasets/_grammar.py +66 -0
  21. genome_spy/datasets/_hapmap.py +180 -0
  22. genome_spy/datasets/_mutation.py +289 -0
  23. genome_spy/datasets/_oncoprint.py +523 -0
  24. genome_spy/datasets/data/airway_metadata.csv +9 -0
  25. genome_spy/datasets/data/airway_scaledcounts.csv +38695 -0
  26. genome_spy/datasets/data/brca.maf.gz +0 -0
  27. genome_spy/datasets/data/hapmap_gwas.csv +14413 -0
  28. genome_spy/datasets/data/mutation_impact_reference.json +27 -0
  29. genome_spy/datasets/data/oncoprint_dataset3.json +266 -0
  30. genome_spy/datasets/data/p53_sequence_comparison.json.gz +0 -0
  31. genome_spy/datasets/data/pik3ca_mutations.json +1 -0
  32. genome_spy/datasets/data/pik3ca_tcga_brca_lollipop.json +38 -0
  33. genome_spy/datasets/data/refseq_gene_bodies.csv.gz +0 -0
  34. genome_spy/datasets/data/tal1_alphagenome_reference.json.gz +0 -0
  35. genome_spy/datasets/data/tcga.tsv +146 -0
  36. genome_spy/datasets/data/tcga_laml.maf.gz +0 -0
  37. genome_spy/datasets/data/tcga_laml_annot.tsv +201 -0
  38. genome_spy/datasets/data/tcga_laml_combined_oncoplot.json.gz +0 -0
  39. genome_spy/datasets/data/tcga_ov_gistic_lesions.tsv.gz +0 -0
  40. genome_spy/datasets/data/tcga_ov_gistic_scores.tsv.gz +0 -0
  41. genome_spy/helpers.py +185 -0
  42. genome_spy/jupyter.py +5 -0
  43. genome_spy/py.typed +0 -0
  44. genome_spy/schema/__init__.py +784 -0
  45. genome_spy/schema/_kwds.py +1394 -0
  46. genome_spy/schema/_typing.py +186 -0
  47. genome_spy/schema/capabilities.json +593 -0
  48. genome_spy/schema/channels.py +8943 -0
  49. genome_spy/schema/composition.py +1064 -0
  50. genome_spy/schema/core.py +51821 -0
  51. genome_spy/schema/ergonomics.py +2056 -0
  52. genome_spy/schema/expressions.py +476 -0
  53. genome_spy/schema/genome-spy-schema.json +33657 -0
  54. genome_spy/schema/lazy.py +326 -0
  55. genome_spy/schema/mixins.py +11684 -0
  56. genome_spy/schemapi.py +264 -0
  57. genome_spy/static/widget.js +345 -0
  58. genome_spy_python-0.1.0.dist-info/METADATA +185 -0
  59. genome_spy_python-0.1.0.dist-info/RECORD +64 -0
  60. genome_spy_python-0.1.0.dist-info/WHEEL +4 -0
  61. genome_spy_python-0.1.0.dist-info/licenses/LICENSE +21 -0
  62. genome_spy_python-0.1.0.dist-info/licenses/LICENSES/ALTAIR-BSD-3-Clause.txt +27 -0
  63. genome_spy_python-0.1.0.dist-info/licenses/LICENSES/GALLERY-DATA-MIT.txt +22 -0
  64. genome_spy_python-0.1.0.dist-info/licenses/THIRD_PARTY_NOTICES.md +42 -0
@@ -0,0 +1,593 @@
1
+ {
2
+ "schema_version": "0.87.0",
3
+ "definitions": [
4
+ "AggregateOp",
5
+ "AggregateParams",
6
+ "Align",
7
+ "AlignmentMismatchesParams",
8
+ "ArrowConfig",
9
+ "ArrowDirection",
10
+ "ArrowProps",
11
+ "ArrowRelativeSize",
12
+ "ArrowSize",
13
+ "Axis",
14
+ "AxisConfig",
15
+ "AxisGenomeData",
16
+ "AxisLabelLayoutParams",
17
+ "AxisOrient",
18
+ "AxisPlacement",
19
+ "AxisTicksData",
20
+ "BamData",
21
+ "Baseline",
22
+ "BedDataFormat",
23
+ "BedpeDataFormat",
24
+ "BigBedData",
25
+ "BigWigData",
26
+ "BindCheckbox",
27
+ "BindInput",
28
+ "BindRadioSelect",
29
+ "BindRange",
30
+ "Binding",
31
+ "BrushConfig",
32
+ "BuiltInThemeName",
33
+ "ChannelWithScale",
34
+ "ChromPosDef",
35
+ "ChromosomalLocus",
36
+ "CollectParams",
37
+ "ColorDef",
38
+ "ColorSchemeConfig",
39
+ "CompareParams",
40
+ "ComplexDomain",
41
+ "ConcatSpec",
42
+ "Conditional<MarkPropExprDef<Type>>",
43
+ "Conditional<MarkPropExprDef<TypeForShape>>",
44
+ "Conditional<MarkPropFieldDef<Type>>",
45
+ "Conditional<MarkPropFieldDef<TypeForShape>>",
46
+ "Conditional<ScaleDatumDef>",
47
+ "Conditional<ValueDef<(number|ExprRef)>>",
48
+ "Conditional<ValueDef<(string|null|ExprRef)>>",
49
+ "ConditionalParameter<MarkPropExprDef<Type>>",
50
+ "ConditionalParameter<MarkPropExprDef<TypeForShape>>",
51
+ "ConditionalParameter<MarkPropFieldDef<Type>>",
52
+ "ConditionalParameter<MarkPropFieldDef<TypeForShape>>",
53
+ "ConditionalParameter<ScaleDatumDef>",
54
+ "ConditionalParameter<ValueDef<(number|ExprRef)>>",
55
+ "ConditionalParameter<ValueDef<(string|null|ExprRef)>>",
56
+ "Contig",
57
+ "CoordinateLookupInput",
58
+ "CoordinateLookupParams",
59
+ "CoreRootSpec",
60
+ "CoverageParams",
61
+ "CrossData",
62
+ "CrossInput",
63
+ "CrossParams",
64
+ "CsvDataFormat",
65
+ "Data",
66
+ "DataFormat",
67
+ "DataSource",
68
+ "DirectionDef",
69
+ "Displace1DParams",
70
+ "DomEventType",
71
+ "DomainValue",
72
+ "DomainValueArray",
73
+ "DsvDataFormat",
74
+ "DynamicCallbackData",
75
+ "DynamicOpacity",
76
+ "Encoding",
77
+ "EventConfig",
78
+ "ExprDef",
79
+ "ExprFilterParams",
80
+ "ExprParameter",
81
+ "ExprRef",
82
+ "FadedMultiscaleStops",
83
+ "Field",
84
+ "FieldDefWithoutScale",
85
+ "FieldName",
86
+ "FieldOrDatumDefWithCondition<MarkPropFieldDef<Type>,(string|null)>",
87
+ "FieldOrDatumDefWithCondition<MarkPropFieldDef<Type>,number>",
88
+ "FieldOrDatumDefWithCondition<MarkPropFieldDef<TypeForShape>,(string|null)>",
89
+ "FieldOrDatumDefWithCondition<ScaleDatumDef,(string|null)>",
90
+ "FieldOrDatumDefWithCondition<ScaleDatumDef,number>",
91
+ "FilterParams",
92
+ "FilterScoredLabelsParams",
93
+ "FlattenCigarParams",
94
+ "FlattenCompressedExonsParams",
95
+ "FlattenDelimitedParams",
96
+ "FlattenParams",
97
+ "FlattenSequenceParams",
98
+ "FontStyle",
99
+ "FontWeight",
100
+ "FormulaParams",
101
+ "Generator",
102
+ "GenomeAxis",
103
+ "GenomeConfig",
104
+ "GenomeConfigBase",
105
+ "GenomeDefinition",
106
+ "GenomeSpyConfig",
107
+ "Gff3Data",
108
+ "HConcatSpec",
109
+ "HandledTooltip",
110
+ "IdentifierParams",
111
+ "ImportSpec",
112
+ "IndexUrlSourceRef",
113
+ "IndexUrlTemplate",
114
+ "IndexedFastaData",
115
+ "InlineData",
116
+ "InlineDataset",
117
+ "InlineGenomeConfig",
118
+ "InlineGenomeDefinition",
119
+ "InlineLocusAssembly",
120
+ "InteractionEventType",
121
+ "IntervalSelectionConfig",
122
+ "JsonDataFormat",
123
+ "KeyDef",
124
+ "LayerSpec",
125
+ "LazyData",
126
+ "LazyDataParams",
127
+ "Legend",
128
+ "LegendConfig",
129
+ "LegendDirection",
130
+ "LegendLayout",
131
+ "LegendOrient",
132
+ "LegendRegionAnchor",
133
+ "LegendRegionLayout",
134
+ "LegendResolutionBehavior",
135
+ "LegendTitleOrient",
136
+ "LerpTransition",
137
+ "LinearizeGenomicCoordinateParams",
138
+ "LinkConfig",
139
+ "LinkProps",
140
+ "LookupParams",
141
+ "LookupSelfInput",
142
+ "MarkConfig",
143
+ "MarkPropDef<(string|null),TypeForShape>",
144
+ "MarkPropDef<(string|null)>",
145
+ "MarkPropDef<number>",
146
+ "MarkPropExprDef",
147
+ "MarkPropExprDef<Type>",
148
+ "MarkPropExprDef<TypeForShape>",
149
+ "MarkProps",
150
+ "MarkType",
151
+ "MeasureTextParams",
152
+ "MergeFacetsParams",
153
+ "MultiUrlSourceRef",
154
+ "MultiscaleSpec",
155
+ "MultiscaleStops",
156
+ "MultiscaleStopsDef",
157
+ "NamedData",
158
+ "NamedGenomeConfig",
159
+ "NumericDomain",
160
+ "NumericMarkPropDef",
161
+ "NumericStopDef",
162
+ "NumericValueDef",
163
+ "OffsetChannel",
164
+ "OffsetDef",
165
+ "OtherDataFormat",
166
+ "OverhangConfig",
167
+ "PackLegendLabelsParams",
168
+ "PaddingConfig",
169
+ "Paddings",
170
+ "ParamTransition",
171
+ "Parameter",
172
+ "Parse",
173
+ "ParseValue",
174
+ "PileupParams",
175
+ "PlainValueParameter",
176
+ "PointConfig",
177
+ "PointProps",
178
+ "PointSelectionConfig",
179
+ "Position2Def",
180
+ "PositionDatumDef",
181
+ "PositionDef",
182
+ "PositionExprDef",
183
+ "PositionFieldDef",
184
+ "PositionValueDef",
185
+ "PositionalChannel",
186
+ "PrimaryPositionalChannel",
187
+ "ProjectParams",
188
+ "RangeConfig",
189
+ "RectConfig",
190
+ "RectProps",
191
+ "RegexExtractParams",
192
+ "RegexFoldParams",
193
+ "ResolutionBehavior",
194
+ "ResolutionMap<LegendResolutionBehavior>",
195
+ "ResolutionMap<ResolutionBehavior>",
196
+ "RuleConfig",
197
+ "RuleProps",
198
+ "RulerChannelValue",
199
+ "RulerClear",
200
+ "RulerConfig",
201
+ "RulerDisplay",
202
+ "RulerEventConfig",
203
+ "RulerEventType",
204
+ "RulerExtent",
205
+ "RulerInitMapping",
206
+ "RulerMarkConfig",
207
+ "RulerParameter",
208
+ "RulerSnap",
209
+ "RulerSource",
210
+ "SampleParams",
211
+ "Scalar",
212
+ "ScalarDomain",
213
+ "Scale",
214
+ "ScaleConfig",
215
+ "ScaleInterpolate",
216
+ "ScaleInterpolateParams",
217
+ "ScaleType",
218
+ "SchemeParams",
219
+ "SearchDef",
220
+ "SecondaryChromPosDef",
221
+ "SecondaryPositionalChannel",
222
+ "SelectionDomainRef",
223
+ "SelectionExtent",
224
+ "SelectionFilterParams",
225
+ "SelectionInitIntervalMapping",
226
+ "SelectionParameter",
227
+ "SelectionType",
228
+ "SeparatorProps",
229
+ "SequenceGenerator",
230
+ "SequenceParams",
231
+ "SetIntersectionParams",
232
+ "ShapeDef",
233
+ "SingleUrlSourceRef",
234
+ "SizeDef",
235
+ "SortOrder",
236
+ "StackParams",
237
+ "Step",
238
+ "StringDatumDef",
239
+ "StringFieldDef",
240
+ "StyleConfig",
241
+ "TabixTsvData",
242
+ "TemplateImport",
243
+ "TextConfig",
244
+ "TextDef",
245
+ "TextProps",
246
+ "TickConfig",
247
+ "TickProps",
248
+ "Title",
249
+ "TitleAnchor",
250
+ "TitleConfig",
251
+ "TitleFrame",
252
+ "TitleOrient",
253
+ "Tooltip",
254
+ "TooltipDef",
255
+ "TransformParams",
256
+ "TransitionedMultiscaleStops",
257
+ "TransitionedValueParameter",
258
+ "TruncateTextParams",
259
+ "Type",
260
+ "TypeForShape",
261
+ "UnitSpec",
262
+ "UrlData",
263
+ "UrlGenomeConfig",
264
+ "UrlGenomeDefinition",
265
+ "UrlImport",
266
+ "UrlList",
267
+ "UrlSourceRef",
268
+ "UrlTemplate",
269
+ "VConcatSpec",
270
+ "ValueDef<ArrowDirection>",
271
+ "ValueDef<number>",
272
+ "ValueDef<string>",
273
+ "ValueDefWithCondition<(string|null),Type>",
274
+ "ValueDefWithCondition<(string|null),TypeForShape>",
275
+ "ValueDefWithCondition<number,Type>",
276
+ "ValueParameter",
277
+ "VariableParameter",
278
+ "VcfData",
279
+ "VcfDataFormat",
280
+ "ViewBackground",
281
+ "ViewConfig",
282
+ "ViewOpacityDef",
283
+ "ViewSpec",
284
+ "ViewportDomainRef",
285
+ "WigDataFormat",
286
+ "WindowOnlyOp",
287
+ "WindowOp",
288
+ "WindowParams",
289
+ "ZoomParams"
290
+ ],
291
+ "marks": [
292
+ "rect",
293
+ "point",
294
+ "rule",
295
+ "tick",
296
+ "text",
297
+ "link",
298
+ "arrow"
299
+ ],
300
+ "encoding_channels": [
301
+ "angle",
302
+ "color",
303
+ "direction",
304
+ "dx",
305
+ "dy",
306
+ "facetIndex",
307
+ "fill",
308
+ "fillOpacity",
309
+ "key",
310
+ "opacity",
311
+ "sample",
312
+ "search",
313
+ "semanticScore",
314
+ "shape",
315
+ "size",
316
+ "stroke",
317
+ "strokeOpacity",
318
+ "strokeWidth",
319
+ "text",
320
+ "tooltip",
321
+ "uniqueId",
322
+ "x",
323
+ "x2",
324
+ "xOffset",
325
+ "y",
326
+ "y2",
327
+ "yOffset"
328
+ ],
329
+ "transforms": [
330
+ {
331
+ "schema": "AlignmentMismatchesParams",
332
+ "type": "alignmentMismatches",
333
+ "method": "transform_alignment_mismatches"
334
+ },
335
+ {
336
+ "schema": "AggregateParams",
337
+ "type": "aggregate",
338
+ "method": "transform_aggregate"
339
+ },
340
+ {
341
+ "schema": "CollectParams",
342
+ "type": "collect",
343
+ "method": "transform_collect"
344
+ },
345
+ {
346
+ "schema": "CoverageParams",
347
+ "type": "coverage",
348
+ "method": "transform_coverage"
349
+ },
350
+ {
351
+ "schema": "CoordinateLookupParams",
352
+ "type": "coordinateLookup",
353
+ "method": "transform_coordinate_lookup"
354
+ },
355
+ {
356
+ "schema": "CrossParams",
357
+ "type": "cross",
358
+ "method": "transform_cross"
359
+ },
360
+ {
361
+ "schema": "Displace1DParams",
362
+ "type": "displace1d",
363
+ "method": "transform_displace1d"
364
+ },
365
+ {
366
+ "schema": "FlattenDelimitedParams",
367
+ "type": "flattenDelimited",
368
+ "method": "transform_flatten_delimited"
369
+ },
370
+ {
371
+ "schema": "FormulaParams",
372
+ "type": "formula",
373
+ "method": "transform_formula"
374
+ },
375
+ {
376
+ "schema": "FormulaParams",
377
+ "type": "formula",
378
+ "method": "transform_calculate"
379
+ },
380
+ {
381
+ "schema": "LookupParams",
382
+ "type": "lookup",
383
+ "method": "transform_lookup"
384
+ },
385
+ {
386
+ "schema": "FilterParams",
387
+ "type": "filter",
388
+ "method": "transform_filter"
389
+ },
390
+ {
391
+ "schema": "AxisLabelLayoutParams",
392
+ "type": "axisLabelLayout",
393
+ "method": "transform_axis_label_layout"
394
+ },
395
+ {
396
+ "schema": "FilterScoredLabelsParams",
397
+ "type": "filterScoredLabels",
398
+ "method": "transform_filter_scored_labels"
399
+ },
400
+ {
401
+ "schema": "FlattenParams",
402
+ "type": "flatten",
403
+ "method": "transform_flatten"
404
+ },
405
+ {
406
+ "schema": "FlattenCompressedExonsParams",
407
+ "type": "flattenCompressedExons",
408
+ "method": "transform_flatten_compressed_exons"
409
+ },
410
+ {
411
+ "schema": "FlattenCigarParams",
412
+ "type": "flattenCigar",
413
+ "method": "transform_flatten_cigar"
414
+ },
415
+ {
416
+ "schema": "FlattenSequenceParams",
417
+ "type": "flattenSequence",
418
+ "method": "transform_flatten_sequence"
419
+ },
420
+ {
421
+ "schema": "IdentifierParams",
422
+ "type": "identifier",
423
+ "method": "transform_identifier"
424
+ },
425
+ {
426
+ "schema": "LinearizeGenomicCoordinateParams",
427
+ "type": "linearizeGenomicCoordinate",
428
+ "method": "transform_linearize_genomic_coordinate"
429
+ },
430
+ {
431
+ "schema": "MeasureTextParams",
432
+ "type": "measureText",
433
+ "method": "transform_measure_text"
434
+ },
435
+ {
436
+ "schema": "TruncateTextParams",
437
+ "type": "truncateText",
438
+ "method": "transform_truncate_text"
439
+ },
440
+ {
441
+ "schema": "PackLegendLabelsParams",
442
+ "type": "packLegendLabels",
443
+ "method": "transform_pack_legend_labels"
444
+ },
445
+ {
446
+ "schema": "MergeFacetsParams",
447
+ "type": "mergeFacets",
448
+ "method": "transform_merge_facets"
449
+ },
450
+ {
451
+ "schema": "PileupParams",
452
+ "type": "pileup",
453
+ "method": "transform_pileup"
454
+ },
455
+ {
456
+ "schema": "ProjectParams",
457
+ "type": "project",
458
+ "method": "transform_project"
459
+ },
460
+ {
461
+ "schema": "RegexExtractParams",
462
+ "type": "regexExtract",
463
+ "method": "transform_regex_extract"
464
+ },
465
+ {
466
+ "schema": "RegexFoldParams",
467
+ "type": "regexFold",
468
+ "method": "transform_regex_fold"
469
+ },
470
+ {
471
+ "schema": "SampleParams",
472
+ "type": "sample",
473
+ "method": "transform_sample"
474
+ },
475
+ {
476
+ "schema": "SetIntersectionParams",
477
+ "type": "setIntersection",
478
+ "method": "transform_set_intersection"
479
+ },
480
+ {
481
+ "schema": "StackParams",
482
+ "type": "stack",
483
+ "method": "transform_stack"
484
+ },
485
+ {
486
+ "schema": "WindowParams",
487
+ "type": "window",
488
+ "method": "transform_window"
489
+ }
490
+ ],
491
+ "lazy_data_sources": [
492
+ {
493
+ "type": "bam",
494
+ "method": "bam"
495
+ },
496
+ {
497
+ "type": "bigbed",
498
+ "method": "bigbed"
499
+ },
500
+ {
501
+ "type": "bigwig",
502
+ "method": "bigwig"
503
+ },
504
+ {
505
+ "type": "gff3",
506
+ "method": "gff3"
507
+ },
508
+ {
509
+ "type": "indexedFasta",
510
+ "method": "indexed_fasta"
511
+ },
512
+ {
513
+ "type": "tabix",
514
+ "method": "tabix"
515
+ },
516
+ {
517
+ "type": "vcf",
518
+ "method": "vcf"
519
+ }
520
+ ],
521
+ "interaction": {
522
+ "bindings": [
523
+ {
524
+ "helper": "binding",
525
+ "schema": "BindInput",
526
+ "fixed": {}
527
+ },
528
+ {
529
+ "helper": "binding_checkbox",
530
+ "schema": "BindCheckbox",
531
+ "fixed": {
532
+ "input": "checkbox"
533
+ }
534
+ },
535
+ {
536
+ "helper": "binding_radio",
537
+ "schema": "BindRadioSelect",
538
+ "fixed": {
539
+ "input": "radio"
540
+ }
541
+ },
542
+ {
543
+ "helper": "binding_range",
544
+ "schema": "BindRange",
545
+ "fixed": {
546
+ "input": "range"
547
+ }
548
+ },
549
+ {
550
+ "helper": "binding_select",
551
+ "schema": "BindRadioSelect",
552
+ "fixed": {
553
+ "input": "select"
554
+ }
555
+ }
556
+ ],
557
+ "parameter_helpers": [
558
+ {
559
+ "helper": "ruler",
560
+ "parameter_schema": "RulerParameter",
561
+ "config_property": "ruler",
562
+ "config_schema": "RulerConfig",
563
+ "fixed": {}
564
+ },
565
+ {
566
+ "helper": "selection_interval",
567
+ "parameter_schema": "SelectionParameter",
568
+ "config_property": "select",
569
+ "config_schema": "IntervalSelectionConfig",
570
+ "fixed": {
571
+ "type": "interval"
572
+ }
573
+ },
574
+ {
575
+ "helper": "selection_point",
576
+ "parameter_schema": "SelectionParameter",
577
+ "config_property": "select",
578
+ "config_schema": "PointSelectionConfig",
579
+ "fixed": {
580
+ "type": "point"
581
+ }
582
+ }
583
+ ]
584
+ },
585
+ "root_spec_variants": [
586
+ "mark",
587
+ "layer",
588
+ "multiscale",
589
+ "vconcat",
590
+ "hconcat",
591
+ "concat"
592
+ ]
593
+ }