CyDAS Home funded by Sponsor: DFG
ISCNAnalyser Documentation Class Band Class CGH Documentation Section HowTo Section Online Analysis Section Download Section Resources Section About Section

Class Bands

The class Bands is a collection class for the band class with mainly standard functionality.

Overview

Bands
New()
New(BandsList: String)
item(index: Integer): Band {default; read-only}
add(ByRef NewBand: Band, Optional IgnoreDuplicates: Boolean = True)
addRange(NewBands: Bands, Optional IgnoreDuplicates: Boolean = True)
clone(): Object {Implements ICloneable.Clone}
contains(ByRef BandToCheck: Band): Boolean
count(): Integer
GetEnumerator(): IEnumerator {Implements IEnumerable.GetEnumerator}
inverted(): Bands
sort()
toString(): String
toString(Sorted: Boolean): String
toString(format: String): String
toString(format: String, Sorted: Boolean): String

Programming Language

Availability

Constructors

Public Sub New()

Instantiates a new (empty) Bands object.

Public Sub New(ByVal BandsList As String)

Instantiates a new class object and fills its internal collection with the bands passed in as a comma separated list. Here, a band will be added only once into the collection.

Parameters

Remarks

Example

Interfaces

ICloneable

is implemented with the clone function.

IEnumerable

is implemented with the GetEnumerator function.

Properties

Default Public ReadOnly Property item(ByVal index As Integer) As Band

Gets the Band object at the specified index.

Parameters

Property Value

Exceptions

Remarks

Methods

Public Sub add(ByRef NewBand As Band, Optional ByVal IgnoreDuplicates As Boolean = True)

Adds the band passed to the function into the internal collection. By default, duplicates are ignored.

Parameters

Remarks

Exceptions

Public Sub addRange(ByRef NewBands As Bands, Optional ByVal IgnoreDuplicates As Boolean = True)

Adds each band contained in the NewBands object into the internal collection. By default, duplicates are ignored.

Parameters

Remarks

Exceptions

Public Function clone() As Object Implements ICloneable.Clone

Creates a deep copy of the Bands object; i.e. while cloning, each Band object contained in the collection is cloned.

Return Value

Implements

Remarks

Public Function contains(ByRef BandToCheck As Band) As Boolean

Determines whether BandToCheck is in the internal collection of the Bands object.

Parameters

Return Value

Exceptions

Remarks

Public Function count() As Integer

Gets the number of Band objects actually contained in the Bands object.

Public Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator

Returns an enumerator that can iterate through the collection of band objects of this Bands object.

Implements

Public Function inverted() As Bands

Returns a Bands object which contains the Band objects in the opposite series than this Bands object.

Return Value

Remarks

Public Sub sort()

Sorts the band objects in the internal collection of the Bands object.

Remarks

Public Shadows Function toString() As String

Returns a comma separated list of the Band objects contained in the Bands object.

Return Value

Remarks

Public Shadows Function toString(ByVal Sorted As Boolean) As String

Returns a comma separated list of the Band objects contained in the Bands object. If Sorted is true, the collection is sorted first.

Return Value

Parameter

Remarks

Public Shadows Function toString(ByVal format As String) As String

Returns a comma separated list of the Band objects contained in the Bands object.

Return Value

Parameter

Remarks

Public Shadows Function toString(ByVal format As String, ByVal Sorted As Boolean) As String

Returns a comma separated list of the Band objects contained in the Bands object. If Sorted is true, the collection is sorted first.

Return Value

Parameter

Remarks

Interactions with other classes

Classes used by Bands

Integral part of a Bands object are the Band objects contained in its internal collection.

Classes using Bands

A Bands object is used in the Aberration class as well as in the Karyotype class for the description of chromosome break points. A derivative chromosome described by a Chromosome object can return all bands contained in it as a Bands object; this is the point where duplicates can arise and sorting may destructive. Also a Fragment object can return the bands on the fragment, as well as a Band object when it describes an interval.