public class SCF extends AbstractChromatogram
Chromatogram
as loaded from an
SCF v2 or v3 file. Also loads and exposes the SCF format's "private data"
and "comments" sections. The quality values from the SCF are stored as
additional sequences on the base call alignment. The labels are the
PROB_
* constants in this class.
The values are IntegerAlphabet.IntegerSymbol
objects in the range 0 to 255.Modifier and Type | Field and Description |
---|---|
static int |
BYTE_MAX_VALUE
Represents the maximum unsigned value
of a byte for wrapping purposes
|
static String |
PROB_NUC_A
Base call alignment sequence label for the probability that call
should be A.
|
static String |
PROB_NUC_C
Base call alignment sequence label for the probability that call
should be C.
|
static String |
PROB_NUC_G
Base call alignment sequence label for the probability that call
should be G.
|
static String |
PROB_NUC_T
Base call alignment sequence label for the probability that call
should be T.
|
static Object |
PROB_OVERCALL
Base call alignment sequence label for the overcall probability.
|
static Object |
PROB_SUBSTITUTION
Base call alignment sequence label for the substitution
probability.
|
static Object |
PROB_UNDERCALL
Base call alignment sequence label for the undercall probability.
|
static int |
SHORT_MAX_VALUE
Represents the maximum unsigned value
of a short for wrapping purposes
|
DNA, OFFSETS
Modifier | Constructor and Description |
---|---|
protected |
SCF()
Creates a new, completely empty SCF.
|
Modifier and Type | Method and Description |
---|---|
static SCF |
create(File f) |
static SCF |
create(InputStream in,
long alreadyRead) |
Properties |
getComments()
Returns the comments fields as a
Properties mapping. |
static IntegerAlphabet.SubIntegerAlphabet |
getProbabilityAlphabet() |
protected void |
load(File f) |
protected void |
load(InputStream in,
long initOffset) |
protected SymbolList |
reverseComplementBaseCallList(String label)
Overrides
AbstractChromatogram.reverseComplementBaseCallList(java.lang.Object) to
support the 7 quality values from the SCF. |
protected AbstractChromatogram |
reverseComplementInstance()
Returns a new instance of this AbstractChromatogram subclass for use in
AbstractChromatogram.reverseComplement() . |
clearTraces, createImmutableAlignment, createImmutableSymbolList, getBaseCalls, getMax, getMax, getSequenceLength, getSignificantBits, getTrace, getTraceLength, reverse, reverseComplement, reverseComplementBaseCallList, reverseComplementBaseCalls, setBaseCallAlignment, setBits, setTrace
public static final int BYTE_MAX_VALUE
public static final int SHORT_MAX_VALUE
public static final String PROB_NUC_A
public static final String PROB_NUC_C
public static final String PROB_NUC_G
public static final String PROB_NUC_T
public static final Object PROB_SUBSTITUTION
public static final Object PROB_OVERCALL
public static final Object PROB_UNDERCALL
protected SCF()
public static SCF create(File f) throws IOException, UnsupportedChromatogramFormatException
public static SCF create(InputStream in, long alreadyRead) throws IOException, UnsupportedChromatogramFormatException
protected void load(File f) throws IOException, UnsupportedChromatogramFormatException
protected void load(InputStream in, long initOffset) throws IOException, UnsupportedChromatogramFormatException
public Properties getComments()
Properties
mapping.protected AbstractChromatogram reverseComplementInstance()
AbstractChromatogram
AbstractChromatogram.reverseComplement()
.reverseComplementInstance
in class AbstractChromatogram
public static IntegerAlphabet.SubIntegerAlphabet getProbabilityAlphabet()
protected SymbolList reverseComplementBaseCallList(String label)
AbstractChromatogram.reverseComplementBaseCallList(java.lang.Object)
to
support the 7 quality values from the SCF. These are handled thus:
PROB_SUBSTITUTION
, PROB_OVERCALL
, and
PROB_UNDERCALL
are just reversed &returned.PROB_NUC_
* returns the reverse of the quality
sequence for the complement base.Copyright © 2014 BioJava. All rights reserved.