Click or drag to resize
BAMFormatter Class
Writes a SequenceAlignmentMap to a particular location, usually a file. The output is formatted according to the BAM file format. Documentation for the latest BAM file format can be found at http://samtools.sourceforge.net/SAM1.pdf
Inheritance Hierarchy
SystemObject
  Bio.IO.BAMBAMFormatter

Namespace: Bio.IO.BAM
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public class BAMFormatter : ISequenceAlignmentFormatter, 
	IFormatter<ISequenceAlignment>, IFormatter

The BAMFormatter type exposes the following members.

Constructors
  NameDescription
Public methodBAMFormatter
Initializes a new instance of the BAMFormatter class
Top
Properties
  NameDescription
Public propertyCreateIndexFile
Gets or sets the value indicating that whether to create index file or not.
Public propertyCreateSortedBAMFile
Gets or sets the value indicating that whether the output file to be sorted or not.
Public propertyDescription
Gets the description of the sequence alignment formatter being implemented. This is intended to give the developer some information of the formatter.
Public propertyName
Gets the name of the sequence alignment formatter being implemented. This is intended to give the developer some information of the formatter type.
Public propertySortType
Gets or sets type of sort needed.
Public propertySupportedFileTypes
Gets the file extensions that the formatter implementation will support.
Top
Methods
  NameDescription
Public methodCompressBAMFile
Compress the specified stream (reader) and writes to the specified stream (writer).
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 methodFormat(Stream, ISequenceAlignment)
Writes specified alignment object to a stream. The output is formatted according to the BAM specification. Note that this method does not create index file.
Public methodFormat(Stream, IEnumerableISequenceAlignment)
Write a collection of ISequenceAlignments to a file.
Public methodFormat(Stream, BAMIndexStorage, ISequenceAlignment)
Writes specified alignment object to a stream. The output is formatted according to the BAM specification.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteAlignedSequence
Writes SAMAlignedSequence to specified stream.
Public methodWriteHeader
Writes BAM header to the specified stream in BAM format.
Top
See Also