Click or drag to resize
BAMParser Class
A BAMParser reads from a source of binary data that is formatted according to the BAM file specification, and converts the data to in-memory SequenceAlignmentMap object. Documentation for the latest BAM file format can be found at http://samtools.sourceforge.net/SAM1.pdf
Inheritance Hierarchy
SystemObject
  Bio.IO.BAMBAMParser

Namespace: Bio.IO.BAM
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class BAMParser : IDisposable, ISequenceAlignmentParser, 
	IParser<ISequenceAlignment>, IParser

The BAMParser type exposes the following members.

Constructors
  NameDescription
Public methodBAMParser
The default constructor which chooses the default encoding based on the alphabet.
Top
Properties
  NameDescription
Public propertyAlphabet
The alphabet to use for sequences in parsed SequenceAlignmentMap objects. Always returns singleton instance of SAMDnaAlphabet.
Public propertyDescription
Gets the description of the sequence alignment parser being implemented. This is intended to give the developer some information of the parser.
Public propertyName
Gets the name of the sequence alignment parser being implemented. This is intended to give the developer some information of the parser type.
Public propertyRefSequences
Reference sequences, used to resolve "=" symbol in the sequence data.
Public propertySupportedFileTypes
Gets the file extensions that the parser implementation will support.
Top
Methods
  NameDescription
Public methodDispose
Implements the IDisposable interface
Protected methodDispose(Boolean)
Disposes this object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAlignedSequence
Returns an aligned sequence by parses the BAM file.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeader
Gets the SAMAlignmentHeader from the specified stream. Note that this method resets the specified stream to BOF before reading.
Public methodGetIndexFromBAMStorage
Returns BAMIndex by parsing specified BAM stream.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEOF
Returns a boolean indicating whether the reader is reached end of file or not.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse
Returns an iterator over a set of SAMAlignedSequences retrieved from a parsed BAM file.
Public methodParseOne
Returns a SequenceAlignmentMap object by parsing a BAM file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also