CyDAS Home funded by Sponsor: DFG
ISCNAnalyser Documentation Class ChromosomeCount Class Complex Karyotype Aberration Score Documentation Section HowTo Section Online Analysis Section Download Section Resources Section About Section

Class ChromosomeData

The class ChromosomeData provides information on the chromosome set used for the analysis and some functions for general use with chromosomes.

Overview

ChromosomeData
---
MapViewer
checkBandExistence(Band: Band): Boolean
getBandSet(Resolution: eResolutionLevel, ByRef BandSet: Band(), ByRef BandNames: String())
getBandsForFragment(Fragment: Fragment, Resolution: eResolutionLevel): Bands
getColorForChromosome(Chromosome: String): System.Drawing.Color
getDefaultDrawSequence(): String
getInstallDir(): String
getMapViewLink(Band: Band): String
getMapViewURL(Band: Band): String
getMaximumChromosomeHeight(): Integer
getMaximumChromosomeNumber(): Integer
getMaximumResolutionForBand(Chromosome: String, BandNumber: String): eResolutionLevel
resetChromosomeUserColor(): Void
setChromosomeUserColor(Chromosome: String, ByRef UserColor: System.Drawing.Color)

Programming Language

Availability

Constructors

The class does not have any constructor. All its function are class methods, not instance methods, thus no instance of this class is needed.

Interfaces

This class does not implement an interface.

Enumerations

The class provides enumerations for the description of the resolution of the chromosome and for properties needed for drawing a chromosome.

Enum eResolutionLevel

This enumeration describes the level of resolution of chromosome banding.
Value Meaning
ResolutionNone The resolution could not be determined or has not yet been determined.
ResolutionChromosome Only the chromosome number is given.
ResolutionArm Chromosome and arm are known.
Resolution1Digit Chromosome, arm and 1 digit are known.
Resolution2Digit Chromosome, arm and 2 digits are known.
Resolution400Bands The band can be detected at a resolution of 400 band per haploid set.
Resolution500Bands The band can be detected at a resolution of 500 band per haploid set.
Resolution550Bands The band can be detected at a resolution of 550 band per haploid set.
Resolution800Bands The band can be detected at a resolution of 800 band per haploid set.

Enum ePaintWidth

This enumeration describes the width a chromosome band is drawn with.
Note: There is no value for a centromer or a band close to a centromer because centromers can be detected with a logic of its own.
Value Meaning 
PaintWidthNormal a "normal" band drawn at full width
PaintWidthSatellite a satellite band drawn with diminished width

Enum ePaintStyle

This enumeration describes the style a chromosome band is drawn with.
Value Meaning
PaintStyleNone The style is unknown.
PaintStyleTransparent Only the circumference of the band is drawn, its area is transparent. This corresponds to a Giemsa negative band.
PaintStyleLight The circumference of the band is drawn and its area is filled with a pattern of lines on a diagonal from upper left to lower right. This corresponds to a heterochromatic regions which stains a little.
PaintStyleDark The circumference of the band is drawn and its area is filled with a pattern of thick lines close to each other on a diagonal from upper right to lower left. This corresponds to a heterochromatic regions which stains strongly.
PaintStyleFull The band is filled fully. This corresponds to a Giemsa positive band.
PaintStyleWeak The band is filled fully, but the color is reduced to a light grey (or similar). This corresponds to a band which is only slightly Giemsa positive.
PaintStyleMiddle The band is filled fully, but the color is reduced to a medium grey (or similar). This corresponds to a band which is Giemsa positive at a reduced level.
PaintStyleStrong The band is filled fully, but the color is reduced to a dark grey (or similar). This corresponds to a band which is strongly Giemsa positive, but not yet fully dark.

Properties

The class provides one property:

Public Shared Property MapViewer() As String

Gets or sets the external resource with which chromosomal bands are linked.

Property Value

Parameter

Remarks

Internal Processing

Methods

All methods of the class are class methods, i.e. they are marked "shared".

Public Shared Function checkBandExistence(ByRef Band As Band) As Boolean

Checks if a band number with which Band is described was defined in the chromosome set given in the resources file.

Return Value

Parameters

Remarks

Examples

Public Shared Sub getBandSet(ByVal Resolution As eResolutionLevel, ByRef BandSet As Band(), ByRef BandNames As String())

Provides an array of Band objects and an array of String with the band names of all bands visible at the given banding resolution.

Return Value

Parameters

Remarks

Public Shared Function getBandsForFragment(ByRef Fragment As Fragment, ByVal Resolution As eResolutionLevel) As Bands

Returns a Bands object containing all the bands residing on the Fragment at the given banding resolution.

Return Value

Parameters

Exceptions

Internals

Public Shared Function getColorForChromosome(ByVal Chromosome As String) As System.Drawing.Color

Returns the color to be used for drawing the chromosome. It may have been modified by the user with the setChromosomeUserColor function; for getting the default color, the user settings may be invalidated using the resetChromosomeUserColor function.

Return Value

Parameters

Remarks

Examples

Internals

Public Shared Function getDefaultDrawSequence() As String

Returns the sequence in which chromosomes are to be drawn when a set of all chromosomes is to be displayed.

Return Value

Remarks

Examples

Public Shared Function getInstallDir() As String

Shows where the ISCNAnalyser.dll was installed.

Return Value

Internals

Public Shared Function getMapViewLink(ByRef Band As Band) As String

Returns HTML code showing the band number in exact notation linked with map viewer information for that band.

Parameters

Remarks

Examples

Public Shared Function getMapViewURL(ByRef Band As Band) As String

Retuns a URL pointing to a map viewer information for that band.

Parameters

Remarks

Examples

Public Shared Function getMaximumChromosomeHeight() As Integer

Returns the maximum height of a chromosome ideogram in pixels.

Return Value

Remarks

Examples

Public Shared Function getMaximumChromosomeNumber() As Integer

Returns the maximum number a chromosome can have.

Return Value

Remarks

Examples

Public Shared Function getMaximumResolutionForBand(ByVal Chromosome As String, ByVal BandNumber As String) As eResolutionLevel

Returns the maximum value of the ResolutionLevel which the band described by its chromosome and band number fulfills.

Parameters

Remarks

Examples

Public Shared Sub resetChromosomeUserColor()

Resets the colors used for drawing chromosome ideograms to the default colors.

Remarks

Public Shared Sub setChromosomeUserColor(ByVal Chromosome As String, ByRef UserColor As System.Drawing.Color)

Changes the color to be used for drawing an ideogram of the respective chromosome.

Parameters

Remarks

Interaction with other classes

Classes using ChromosomeData

The ChromosomeData class is used by Band objects to query their existence and paint data, by Fragment objects to determine contained bands, and by the CyDASGraphics class.

Classes used by ChromosomeData

The ChromosomeData class itself makes use of some other classes of the CyDAS project, but always transiently only.

Internal Views

All functions start with a call to the init() function which determines if the resources were already loaded from the resources file, and if necessary loads them. The data will then be held in class variables in order to speed up the functions.