gosling.DataTrack¶
- class gosling.DataTrack(data=Undefined, _assignedHeight=Undefined, _assignedWidth=Undefined, _invalidTrack=Undefined, _renderingId=Undefined, assembly=Undefined, centerRadius=Undefined, endAngle=Undefined, height=Undefined, id=Undefined, innerRadius=Undefined, layout=Undefined, linkingId=Undefined, orientation=Undefined, outerRadius=Undefined, overlayOnPreviousTrack=Undefined, prerelease=Undefined, spacing=Undefined, startAngle=Undefined, static=Undefined, style=Undefined, subtitle=Undefined, title=Undefined, width=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, yDomain=Undefined, yOffset=Undefined, zoomLimits=Undefined, **kwds)¶
DataTrack schema wrapper
Mapping(required=[data]) Partial specification of BasicSingleTrack to use default visual encoding predefined by data type.
- Attributes:
- data
DataDeep
- _assignedHeightfloat
- _assignedWidthfloat
Internal: Used for responsive spec
- _invalidTrackboolean
internal
- _renderingIdstring
internal
- assembly
Assembly
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.
- centerRadiusfloat
Proportion of the radius of the center white space.
__Default:__ 0.3
- endAnglefloat
Specify the end angle (in the range of [0, 360]) of circular tracks ({“layout”: “circular”}).
- 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”}).
- layout
Layout
Specify the layout type of all tracks.
- linkingIdstring
Specify an ID for [linking multiple views](http://gosling-lang.org/docs/user-interaction#linking-views)
- orientation
Orientation
Specify the orientation.
- outerRadiusfloat
Specify the outer radius of tracks when {“layout”: “circular”}.
- overlayOnPreviousTrackboolean
- prereleaseMapping(required=[])
internal
- 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”}).
- staticboolean
Whether to disable [Zooming and Panning](http://gosling-lang.org/docs/user-interaction#zooming-and-panning), __Default:__ false.
- style
Style
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
- titlestring
If defined, will show the textual label on the left-top corner of a track.
- widthfloat
Specify the track width in pixels.
- 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
- yDomainanyOf(
DomainInterval
,DomainChrInterval
,DomainChr
) Specify the visible region of genomic y-axis
- yOffsetfloat
Specify the y offset of views in the unit of pixels
- zoomLimits
ZoomLimits
- data
- __init__(data=Undefined, _assignedHeight=Undefined, _assignedWidth=Undefined, _invalidTrack=Undefined, _renderingId=Undefined, assembly=Undefined, centerRadius=Undefined, endAngle=Undefined, height=Undefined, id=Undefined, innerRadius=Undefined, layout=Undefined, linkingId=Undefined, orientation=Undefined, outerRadius=Undefined, overlayOnPreviousTrack=Undefined, prerelease=Undefined, spacing=Undefined, startAngle=Undefined, static=Undefined, style=Undefined, subtitle=Undefined, title=Undefined, width=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, yDomain=Undefined, yOffset=Undefined, zoomLimits=Undefined, **kwds)¶
Methods
__init__
([data, _assignedHeight, ...])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