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.AnnotationForwarderFeatureHolder.EmptyFeatureHolderEDIT, EMPTY_LISTANNOTATIONEMPTY_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, toStringaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic 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.IllegalAlphabetExceptionpublic SymbolList getQuality()
getQuality in interface Qualitativepublic SymbolList getDNA()
public Symbol getQualityAt(int index) throws IndexOutOfBoundsException
QualitativegetQualityAt in interface Qualitativeindex - - Must be greater than zero.IndexOutOfBoundsException - if index is outside of the quality symbol list.public Symbol getDNAAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionCopyright © 2020 BioJava. All rights reserved.