gosling.MultipleViews¶
- class gosling.MultipleViews(views=Undefined, _assignedHeight=Undefined, _assignedWidth=Undefined, arrangement=Undefined, assembly=Undefined, centerRadius=Undefined, id=Undefined, layout=Undefined, linkingId=Undefined, orientation=Undefined, spacing=Undefined, static=Undefined, style=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, yDomain=Undefined, yOffset=Undefined, zoomLimits=Undefined, **kwds)¶
MultipleViews schema wrapper
Mapping(required=[views])
- Attributes:
- viewsList(anyOf(
SingleView
,MultipleViews
)) An array of view specifications
- _assignedHeightfloat
- _assignedWidthfloat
Internal: Used for responsive spec
- arrangementenum(‘parallel’, ‘serial’, ‘horizontal’, ‘vertical’)
Specify how multiple views are arranged.
- 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
- idstring
The ID of a view that is maintained for the use of JS API functions, e.g., positions of a view
- 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.
- 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.
- 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).
- 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
- viewsList(anyOf(
- __init__(views=Undefined, _assignedHeight=Undefined, _assignedWidth=Undefined, arrangement=Undefined, assembly=Undefined, centerRadius=Undefined, id=Undefined, layout=Undefined, linkingId=Undefined, orientation=Undefined, spacing=Undefined, static=Undefined, style=Undefined, xAxis=Undefined, xDomain=Undefined, xOffset=Undefined, yDomain=Undefined, yOffset=Undefined, zoomLimits=Undefined, **kwds)¶
Methods
__init__
([views, _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