@@ -121,46 +121,16 @@ def opts(
121121 return track
122122
123123
124- class _TilesetMixin :
125- def tileset (
126- self : TrackT , # type: ignore
127- tileset : TrackHelper ,
128- inplace : bool = False ,
129- ) -> TrackT : # type: ignore
130- """Replace or add a tileset to a Track.
131-
132- A convenience method to update a track with a tileset.
133-
134- Parameters
135- ----------
136- tileset : TilesetResource
137- A tileset resource returned from `hg.server`.
138-
139- inplace : bool, optional
140- Whether to modify the existing track in place or return
141- a new track (default: `False`)
142-
143- Returns
144- -------
145- track : A track with the bound tileset.
146-
147- """
148- track = self if inplace else utils .copy_unique (self )
149- track .server = tileset .server
150- track .tilesetUid = tileset .tileset .uid
151- return track
152-
153-
154124## Extend higlass-schema classes
155125
156126
157- class EnumTrack (hgs .EnumTrack , _OptionsMixin , _PropertiesMixin , _TilesetMixin ):
127+ class EnumTrack (hgs .EnumTrack , _OptionsMixin , _PropertiesMixin ):
158128 """Represents a generic track."""
159129
160130 ...
161131
162132
163- class HeatmapTrack (hgs .HeatmapTrack , _OptionsMixin , _PropertiesMixin , _TilesetMixin ):
133+ class HeatmapTrack (hgs .HeatmapTrack , _OptionsMixin , _PropertiesMixin ):
164134 """Represets a specialized heatmap track."""
165135
166136 ...
@@ -170,20 +140,19 @@ class IndependentViewportProjectionTrack(
170140 hgs .IndependentViewportProjectionTrack ,
171141 _OptionsMixin ,
172142 _PropertiesMixin ,
173- _TilesetMixin ,
174143):
175144 """Represents a view-independent viewport projection track."""
176145
177146 ...
178147
179148
180- class CombinedTrack (hgs .CombinedTrack , _OptionsMixin , _PropertiesMixin , _TilesetMixin ):
149+ class CombinedTrack (hgs .CombinedTrack , _OptionsMixin , _PropertiesMixin ):
181150 """Represents a track combining multiple tracks."""
182151
183152 ...
184153
185154
186- class PluginTrack (hgs .BaseTrack , _OptionsMixin , _PropertiesMixin , _TilesetMixin ):
155+ class PluginTrack (hgs .BaseTrack , _OptionsMixin , _PropertiesMixin ):
187156 """Represents an unknown plugin track."""
188157
189158 plugin_url : ClassVar [str ]
0 commit comments