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,186 @@
1
+ """Generated from the GenomeSpy JSON Schema. Do not edit by hand."""
2
+
3
+ from __future__ import annotations
4
+ from collections.abc import Sequence
5
+ from typing import TypeAlias, Literal
6
+
7
+ AggregateOp_T: TypeAlias = Literal[
8
+ "count", "valid", "sum", "min", "max", "mean", "q1", "median", "q3", "variance"
9
+ ]
10
+ Align_T: TypeAlias = Literal["left", "center", "right"]
11
+ ArrowDirection_T: TypeAlias = Literal["forward", "reverse"]
12
+ AxisOrient_T: TypeAlias = Literal["top", "bottom", "left", "right"]
13
+ AxisPlacement_T: TypeAlias = Literal["outside", "inside"]
14
+ Baseline_T: TypeAlias = Literal["top", "middle", "bottom", "alphabetic", "baseline"]
15
+ BuiltInThemeName_T: TypeAlias = Literal[
16
+ "genomespy", "vegalite", "quartz", "dark", "fivethirtyeight", "urbaninstitute"
17
+ ]
18
+ FieldName_T: TypeAlias = str
19
+ Field_T: TypeAlias = str
20
+ FontStyle_T: TypeAlias = Literal["normal", "italic"]
21
+ FontWeight_T: TypeAlias = (
22
+ float
23
+ | Literal["thin"]
24
+ | Literal["light"]
25
+ | Literal["regular"]
26
+ | Literal["normal"]
27
+ | Literal["medium"]
28
+ | Literal["bold"]
29
+ | Literal["black"]
30
+ )
31
+ InteractionEventType_T: TypeAlias = Literal[
32
+ "click",
33
+ "dblclick",
34
+ "mouseenter",
35
+ "mouseleave",
36
+ "mouseover",
37
+ "mousemove",
38
+ "mousedown",
39
+ "wheel",
40
+ ]
41
+ DomEventType_T: TypeAlias = InteractionEventType_T | Literal["pointerover"]
42
+ LegendDirection_T: TypeAlias = Literal["vertical", "horizontal"]
43
+ LegendOrient_T: TypeAlias = Literal[
44
+ "left",
45
+ "right",
46
+ "top",
47
+ "bottom",
48
+ "top-left",
49
+ "top-right",
50
+ "bottom-left",
51
+ "bottom-right",
52
+ ]
53
+ LegendRegionAnchor_T: TypeAlias = Literal["start", "middle", "end"]
54
+ LegendTitleOrient_T: TypeAlias = Literal["top", "bottom", "left", "right"]
55
+ MarkType_T: TypeAlias = Literal[
56
+ "rect", "point", "rule", "tick", "text", "link", "arrow"
57
+ ]
58
+ NumericDomain_T: TypeAlias = Sequence[float]
59
+ OffsetChannel_T: TypeAlias = Literal["xOffset", "yOffset"]
60
+ ParseValue_T: TypeAlias = str | None
61
+ PrimaryPositionalChannel_T: TypeAlias = Literal["x", "y"]
62
+ ResolutionBehavior_T: TypeAlias = Literal["independent", "shared", "excluded", "forced"]
63
+ LegendResolutionBehavior_T: TypeAlias = ResolutionBehavior_T | Literal["collected"]
64
+ RulerClear_T: TypeAlias = Literal["mouseleave", "mouseup", False]
65
+ RulerDisplay_T: TypeAlias = Literal["line", "center", "band", "none"]
66
+ RulerEventType_T: TypeAlias = Literal["mousemove", "mousedown"]
67
+ RulerExtent_T: TypeAlias = Literal["auto", "view", "container"]
68
+ RulerSnap_T: TypeAlias = Literal["auto", "integer", False]
69
+ RulerSource_T: TypeAlias = Literal["pointer", "viewport"]
70
+ ScalarDomain_T: TypeAlias = NumericDomain_T | Sequence[str] | Sequence[bool]
71
+ Scalar_T: TypeAlias = str | float | bool
72
+ ScaleInterpolate_T: TypeAlias = Literal[
73
+ "rgb", "lab", "hcl", "hsl", "hsl-long", "hcl-long", "cubehelix", "cubehelix-long"
74
+ ]
75
+ ScaleType_T: TypeAlias = Literal[
76
+ "null",
77
+ "linear",
78
+ "log",
79
+ "pow",
80
+ "sqrt",
81
+ "symlog",
82
+ "identity",
83
+ "sequential",
84
+ "quantize",
85
+ "threshold",
86
+ "ordinal",
87
+ "point",
88
+ "band",
89
+ "index",
90
+ "locus",
91
+ ]
92
+ SecondaryPositionalChannel_T: TypeAlias = Literal["x2", "y2"]
93
+ PositionalChannel_T: TypeAlias = (
94
+ PrimaryPositionalChannel_T | SecondaryPositionalChannel_T
95
+ )
96
+ ChannelWithScale_T: TypeAlias = (
97
+ PositionalChannel_T
98
+ | OffsetChannel_T
99
+ | Literal["color"]
100
+ | Literal["fill"]
101
+ | Literal["stroke"]
102
+ | Literal["opacity"]
103
+ | Literal["fillOpacity"]
104
+ | Literal["strokeOpacity"]
105
+ | Literal["strokeWidth"]
106
+ | Literal["size"]
107
+ | Literal["shape"]
108
+ | Literal["direction"]
109
+ | Literal["angle"]
110
+ | Literal["dx"]
111
+ | Literal["dy"]
112
+ )
113
+ SelectionExtent_T: TypeAlias = Literal["auto", "view", "container"]
114
+ SelectionType_T: TypeAlias = Literal["point", "interval"]
115
+ SortOrder_T: TypeAlias = Literal["ascending", "descending"]
116
+ TitleAnchor_T: TypeAlias = Literal[None, "start", "middle", "end"]
117
+ TitleFrame_T: TypeAlias = Literal["bounds", "group"]
118
+ TitleOrient_T: TypeAlias = Literal["none", "left", "right", "top", "bottom"]
119
+ TypeForShape_T: TypeAlias = Literal["ordinal", "nominal"]
120
+ Type_T: TypeAlias = Literal["quantitative", "ordinal", "nominal", "index", "locus"]
121
+ WindowOnlyOp_T: TypeAlias = Literal[
122
+ "row_number",
123
+ "rank",
124
+ "dense_rank",
125
+ "percent_rank",
126
+ "cume_dist",
127
+ "ntile",
128
+ "lag",
129
+ "lead",
130
+ "first_value",
131
+ "last_value",
132
+ "nth_value",
133
+ "prev_value",
134
+ "next_value",
135
+ ]
136
+ WindowOp_T: TypeAlias = WindowOnlyOp_T | AggregateOp_T
137
+
138
+ __all__ = [
139
+ "AggregateOp_T",
140
+ "Align_T",
141
+ "ArrowDirection_T",
142
+ "AxisOrient_T",
143
+ "AxisPlacement_T",
144
+ "Baseline_T",
145
+ "BuiltInThemeName_T",
146
+ "FieldName_T",
147
+ "Field_T",
148
+ "FontStyle_T",
149
+ "FontWeight_T",
150
+ "InteractionEventType_T",
151
+ "DomEventType_T",
152
+ "LegendDirection_T",
153
+ "LegendOrient_T",
154
+ "LegendRegionAnchor_T",
155
+ "LegendTitleOrient_T",
156
+ "MarkType_T",
157
+ "NumericDomain_T",
158
+ "OffsetChannel_T",
159
+ "ParseValue_T",
160
+ "PrimaryPositionalChannel_T",
161
+ "ResolutionBehavior_T",
162
+ "LegendResolutionBehavior_T",
163
+ "RulerClear_T",
164
+ "RulerDisplay_T",
165
+ "RulerEventType_T",
166
+ "RulerExtent_T",
167
+ "RulerSnap_T",
168
+ "RulerSource_T",
169
+ "ScalarDomain_T",
170
+ "Scalar_T",
171
+ "ScaleInterpolate_T",
172
+ "ScaleType_T",
173
+ "SecondaryPositionalChannel_T",
174
+ "PositionalChannel_T",
175
+ "ChannelWithScale_T",
176
+ "SelectionExtent_T",
177
+ "SelectionType_T",
178
+ "SortOrder_T",
179
+ "TitleAnchor_T",
180
+ "TitleFrame_T",
181
+ "TitleOrient_T",
182
+ "TypeForShape_T",
183
+ "Type_T",
184
+ "WindowOnlyOp_T",
185
+ "WindowOp_T",
186
+ ]