Click or drag to resize
ISnpReader Interface
Interface for exposing a collection of SnpItems as an enumerator with ability to skip to specific chromosome number and position.

Namespace: Bio.IO
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public interface ISnpReader : IEnumerator<SnpItem>, 
	IEnumerator, IDisposable

The ISnpReader type exposes the following members.

Properties
  NameDescription
Public propertyCurrent
Gets the element in the collection at the current position of the enumerator.
(Inherited from IEnumeratorSnpItem.)
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodMoveNext
Advances the enumerator to the next element of the collection.
(Inherited from IEnumerator.)
Public methodReset
Sets the enumerator to its initial position, which is before the first element in the collection.
(Inherited from IEnumerator.)
Public methodSkipToChromosome
This moves the cursor to the current/next SNP item containing the given chromosome number (i.e. Current.Chromosome == chromosomeNumber), or beyond the end of the enumerator if none exist. This is useful when traversing sorted SNP sequences and we need to jump to a specific chromosome number. The enumerator should be positioned at or after the first item and at or before the last item.
Public methodSkipToChromosomePosition(Int32)
This moves the cursor to the current/next SNP item containing the current chromosome number and position equal to the given position (i.e. Current.Position == position and Current.Chromosome does not change), or beyond the end of the enumerator if none exist. The enumerator should be positioned at or after the first item and at or before the last item. NOTE: This is useful when traversing sorted SNP sequences and need to jump to a specific chromosome position within current chromosome position.
Public methodSkipToChromosomePosition(Int32, Int32)
This moves the cursor to the current/next SNP item containing the given chromosome number and position (i.e. Current.Chromosome == chromosomeNumber and Current.Position == position), or beyond the end of the enumerator if none exist. The enumerator should be positioned at or after the first item and at or before the last item. NOTE: This is useful when traversing sorted SNP sequences and need to jump to a specific chromosome number+position.
Top
See Also