public class PhredSequence extends SimpleSequence implements Qualitative
PhredSequence is an extension of SimpleSequence that implements Qualitative to hold Phred quality scores.
Copyright: Copyright (c) 2001
Company: AgResearch
Annotatable.AnnotationForwarder
FeatureHolder.EmptyFeatureHolder
EDIT, EMPTY_LIST
ANNOTATION
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
Constructor and Description |
---|
PhredSequence(SymbolList phredSequence,
String name,
String urn,
Annotation anno)
Constructs a new PhredSequence.
|
Modifier and Type | Method and Description |
---|---|
SymbolList |
getDNA()
Extracts the DNA part of the PhredAlpahbet SymbolList and returns it as a SymbolList
|
Symbol |
getDNAAt(int index) |
SymbolList |
getQuality()
Extracts the quality part if the Phred Alphabet and returns it as a SymbolList
over the Integer SubAlphabet from 0..99.
|
Symbol |
getQualityAt(int index)
Retreives the quality symbol for the specified index.
|
containsFeature, countFeatures, createFeature, createFeature, edit, featureHolderAllocated, features, filter, filter, getAlphabet, getAnnotation, getChangeSupport, getFeatureHolder, getName, getSchema, getURN, iterator, length, realizeFeature, removeFeature, seqString, setName, setURN, subList, subStr, symbolAt, toList, toString
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public PhredSequence(SymbolList phredSequence, String name, String urn, Annotation anno) throws IllegalAlphabetException
phredSequence
- - a SymbolList over the Phred Alphabet.name
- - the name for the sequence.urn
- - the URN for the sequence.anno
- - the Annotation object for the sequence.IllegalAlphabetException
public SymbolList getQuality()
getQuality
in interface Qualitative
public SymbolList getDNA()
public Symbol getQualityAt(int index) throws IndexOutOfBoundsException
Qualitative
getQualityAt
in interface Qualitative
index
- - Must be greater than zero.IndexOutOfBoundsException
- if index is outside of the quality symbol list.public Symbol getDNAAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
Copyright © 2014 BioJava. All rights reserved.