gosling.PartialTrack¶
- class gosling.PartialTrack(_assignedHeight=Undefined, _assignedWidth=Undefined, _invalidTrack=Undefined, _overlay=Undefined, _renderingId=Undefined, assembly=Undefined, baselineY=Undefined, centerRadius=Undefined, color=Undefined, data=Undefined, dataTransform=Undefined, displacement=Undefined, encoding=Undefined, endAngle=Undefined, experimental=Undefined, flipY=Undefined, height=Undefined, id=Undefined, innerRadius=Undefined, layout=Undefined, linkingId=Undefined, mark=Undefined, opacity=Undefined, orientation=Undefined, outerRadius=Undefined, overlayOnPreviousTrack=Undefined, overrideTemplate=Undefined, prerelease=Undefined, row=Undefined, size=Undefined, spacing=Undefined, startAngle=Undefined, static=Undefined, stretch=Undefined, stroke=Undefined, strokeWidth=Undefined, style=Undefined, subtitle=Undefined, template=Undefined, text=Undefined, title=Undefined, tooltip=Undefined, type=Undefined, visibility=Undefined, width=Undefined, x=Undefined, x1=Undefined, x1e=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, xe=Undefined, y=Undefined, y1=Undefined, y1e=Undefined, yDomain=Undefined, yOffset=Undefined, ye=Undefined, zoomLimits=Undefined, **kwds)¶
PartialTrack schema wrapper
Mapping(required=[])
- Attributes:
- _assignedHeightfloat
- _assignedWidthfloat
Internal: Used for responsive spec
- _invalidTrackboolean
internal
- _overlayList(Mapping(required=[]))
- _renderingIdstring
internal
- assemblyanyOf(
Assembly
, string) A string that specifies the genome builds to use. Currently support “hg38”, “hg19”, “hg18”, “hg17”, “hg16”, “mm10”, “mm9”, and “unknown”.
__Note:__: with “unknown” assembly, genomic axes do not show chrN: in labels.
- baselineYfloat
- centerRadiusfloat
Proportion of the radius of the center white space.
__Default:__ 0.3
- coloranyOf(
Color
,ChannelValue
) - data
DataDeep
- dataTransformList(
DataTransform
) - displacement
Displacement
- encodingMapping(required=[])
- endAnglefloat
Specify the end angle (in the range of [0, 360]) of circular tracks ({“layout”: “circular”}).
- experimentalMapping(required=[])
- flipYboolean
- heightfloat
Specify the track height in pixels.
- idstring
Assigned to uid in a HiGlass view config, used for API and caching.
- innerRadiusfloat
Specify the inner radius of tracks when ({“layout”: “circular”}).
- layoutanyOf(
Layout
, string) Specify the layout type of all tracks.
- linkingIdstring
Specify an ID for [linking multiple views](http://gosling-lang.org/docs/user-interaction#linking-views)
- mark
Mark
- opacityanyOf(
Opacity
,ChannelValue
) - orientation
Orientation
Specify the orientation.
- outerRadiusfloat
Specify the outer radius of tracks when {“layout”: “circular”}.
- overlayOnPreviousTrackboolean
- overrideTemplateboolean
- prereleaseMapping(required=[])
internal
- rowanyOf(
Row
,ChannelValue
) - sizeanyOf(
Size
,ChannelValue
) - spacingfloat
The size of the gap (1) between tracks, (2) between views, and (3) of the origin of circular tracks. The effect of this property depends on where on the spec you specify the spacing.
In a linear layout, this value is used in pixels, while in a circular layout, this value is used relative to the height of the tracks or views.
- startAnglefloat
Specify the start angle (in the range of [0, 360]) of circular tracks ({“layout”: “circular”}).
- staticanyOf(boolean, boolean)
Whether to disable [Zooming and Panning](http://gosling-lang.org/docs/user-interaction#zooming-and-panning), __Default:__ false.
- stretchboolean
- strokeanyOf(
Stroke
,ChannelValue
) - strokeWidthanyOf(
StrokeWidth
,ChannelValue
) - styleanyOf(
Style
,DummyTrackStyle
) Define the [style](http://gosling-lang.org/docs/visual-channel#style-related-properties) of multive views. Will be overwritten by the style of children elements (e.g., view, track).
- subtitlestring
- templatestring
- textanyOf(
Text
,ChannelValue
) - titlestring
If defined, will show the textual label on the left-top corner of a track.
- tooltipList(
Tooltip
) - typestring
Used to specify the dummy track
- visibilityList(
VisibilityCondition
) - widthfloat
Specify the track width in pixels.
- xanyOf(
X
,ChannelValue
) - x1anyOf(
X
,ChannelValue
) - x1eanyOf(
X
,ChannelValue
) - xAxis
AxisPosition
not supported
- xDomainanyOf(
DomainInterval
,DomainChrInterval
,DomainChr
) Specify the visible region of genomic x-axis
- xOffsetfloat
Specify the x offset of views in the unit of pixels
- xeanyOf(
X
,ChannelValue
) - yanyOf(
Y
,ChannelValue
) - y1anyOf(
Y
,ChannelValue
) - y1eanyOf(
Y
,ChannelValue
) - yDomainanyOf(
DomainInterval
,DomainChrInterval
,DomainChr
) Specify the visible region of genomic y-axis
- yOffsetfloat
Specify the y offset of views in the unit of pixels
- yeanyOf(
Y
,ChannelValue
) - zoomLimitsanyOf(
ZoomLimits
, List(None))
- __init__(_assignedHeight=Undefined, _assignedWidth=Undefined, _invalidTrack=Undefined, _overlay=Undefined, _renderingId=Undefined, assembly=Undefined, baselineY=Undefined, centerRadius=Undefined, color=Undefined, data=Undefined, dataTransform=Undefined, displacement=Undefined, encoding=Undefined, endAngle=Undefined, experimental=Undefined, flipY=Undefined, height=Undefined, id=Undefined, innerRadius=Undefined, layout=Undefined, linkingId=Undefined, mark=Undefined, opacity=Undefined, orientation=Undefined, outerRadius=Undefined, overlayOnPreviousTrack=Undefined, overrideTemplate=Undefined, prerelease=Undefined, row=Undefined, size=Undefined, spacing=Undefined, startAngle=Undefined, static=Undefined, stretch=Undefined, stroke=Undefined, strokeWidth=Undefined, style=Undefined, subtitle=Undefined, template=Undefined, text=Undefined, title=Undefined, tooltip=Undefined, type=Undefined, visibility=Undefined, width=Undefined, x=Undefined, x1=Undefined, x1e=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, xe=Undefined, y=Undefined, y1=Undefined, y1e=Undefined, yDomain=Undefined, yOffset=Undefined, ye=Undefined, zoomLimits=Undefined, **kwds)¶
Methods
__init__
([_assignedHeight, _assignedWidth, ...])copy
([deep, ignore])Return a copy of the object
from_dict
(dct[, validate, _wrapper_classes])Construct class from a dictionary representation
from_json
(json_string[, validate])Instantiate the object from a valid JSON string
resolve_references
([schema])Resolve references in the context of this object's schema or root schema.
to_dict
([validate, ignore, context])Return a dictionary representation of the object
to_json
([validate, ignore, context, indent, ...])Emit the JSON representation for this object as a string.
validate
(instance[, schema])Validate the instance against the class schema in the context of the rootschema.
validate_property
(name, value[, schema])Validate a property against property schema in the context of the rootschema