Click or drag to resize
SAMParser Class
A SAMParser reads from a source of text that is formatted according to the SAM file specification (v1.4-r985), and converts the data to in-memory SequenceAlignmentMap object. For advanced users, the ability to select an encoding for the internal memory representation is provided. There is also a default encoding for each alphabet that may be encountered. Documentation for the latest SAM file format can be found at http://samtools.sourceforge.net/SAM1.pdf
Inheritance Hierarchy
SystemObject
  Bio.IO.SAMSAMParser

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

The SAMParser type exposes the following members.

Constructors
  NameDescription
Public methodSAMParser
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 SAMDNAAlpabet.
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 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 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 methodParse
Parses a sequence alignment texts from a file.
Public methodParseOne
Parses a sequence alignment texts from a stream.
Protected methodParseOneWithSpecificFormat
Parses alignments in SAM format from a reader into a SequenceAlignmentMap object.
Public methodStatic memberParseQualityNSequence(SAMAlignedSequence, IAlphabet, String, String)
Parses sequence data and quality values and updates SAMAlignedSequence instance.
Public methodStatic memberParseQualityNSequence(SAMAlignedSequence, IAlphabet, Byte, Byte, Boolean)
Parses sequence data and quality values and updates SAMAlignedSequence instance.
Public methodStatic memberParseSAMHeader(Stream)
Parses SAM alignment header from specified stream.
Public methodStatic memberParseSAMHeader(TextReader)
Parses SAM alignment header from specified text reader.
Public methodStatic memberParseSequence
Parse a single sequence.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberAsteriskAsByte
An asterisk encoded as a byte
Public fieldStatic memberHeaderLinePattern
Constant to hold SAM alignment header line pattern.
Public fieldStatic memberOptionalFieldLinePattern
Constant to hold SAM optional filed line pattern.
Public fieldStatic memberQualityFormatType
Holds the qualitative value type.
Top
See Also