Package org.biojava.bio.program.abi
Class ABIFChromatogram
- java.lang.Object
 - 
- org.biojava.bio.chromatogram.AbstractChromatogram
 - 
- org.biojava.bio.program.abi.ABIFChromatogram
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Chromatogram
public class ABIFChromatogram extends AbstractChromatogram implements Serializable
An implementation ofChromatogramto encapulsulate chromatogram data extracted from the files produced by ABI sequencers, such as the the 377 and the 3700. The format was described by Clark Tibbetts in his paper "Raw Data File Formats, and the Digital and Analog Raw Data Streams of the ABI PRISM 377 DNA Sequencer." Available online http://www-2.cs.cmu.edu/afs/cs/project/genome/WWW/Papers/clark.html- Author:
 - Rhett Sutphin (UI CBCB), Richard Holland
 - See Also:
 ABIFParser, Serialized Form
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classABIFChromatogram.ParserAn extension ofABIFParserthat reads the particular fields from the ABIF that contain the chromatogram data and initializes the fields in its enclosingABIFChromatograminstance. 
- 
Field Summary
- 
Fields inherited from interface org.biojava.bio.chromatogram.Chromatogram
DNA, OFFSETS 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ABIFChromatogram() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ABIFChromatogramcreate(File f)Create a new ABIF object from a file.static ABIFChromatogramcreate(InputStream in)Create a new ABIF object from a stream of bytes.protected ABIFChromatogramload(File f)protected ABIFChromatogramload(InputStream in)protected AbstractChromatogramreverseComplementInstance()Returns a new instance of this AbstractChromatogram subclass for use inAbstractChromatogram.reverseComplement().- 
Methods inherited from class org.biojava.bio.chromatogram.AbstractChromatogram
clearTraces, createImmutableAlignment, createImmutableSymbolList, getBaseCalls, getMax, getMax, getSequenceLength, getSignificantBits, getTrace, getTraceLength, reverse, reverseComplement, reverseComplementBaseCallList, reverseComplementBaseCalls, setBaseCallAlignment, setBits, setTrace 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ABIFChromatogram
public ABIFChromatogram()
 
 - 
 
- 
Method Detail
- 
create
public static ABIFChromatogram create(File f) throws IOException, UnsupportedChromatogramFormatException
Create a new ABIF object from a file.This method is more efficent than
create(InputStream). 
- 
create
public static ABIFChromatogram create(InputStream in) throws IOException, UnsupportedChromatogramFormatException
Create a new ABIF object from a stream of bytes.Due to the non-single-pass design of the ABI format, this method will wrap the InputStream in an
CachingInputStream. For this reason,create(File)should be preferred.- Parameters:
 in- the stream from which to read- Returns:
 - a new ABIFChromatogram object
 - Throws:
 IOException- if there is a problem with the underlying streamUnsupportedChromatogramFormatException
 
- 
load
protected ABIFChromatogram load(File f) throws IOException, UnsupportedChromatogramFormatException
 
- 
load
protected ABIFChromatogram load(InputStream in) throws IOException, UnsupportedChromatogramFormatException
 
- 
reverseComplementInstance
protected AbstractChromatogram reverseComplementInstance()
Description copied from class:AbstractChromatogramReturns a new instance of this AbstractChromatogram subclass for use inAbstractChromatogram.reverseComplement().- Specified by:
 reverseComplementInstancein classAbstractChromatogram- Returns:
 - a reverse-complemented AbstractChromatogram
 
 
 - 
 
 -