C - public class SequenceFileProxyLoader<C extends Compound> extends Object implements ProxySequenceReader<C>
| Constructor and Description |
|---|
SequenceFileProxyLoader(File file,
SequenceParserInterface sequenceParser,
long sequenceStartIndex,
int sequenceLength,
CompoundSet<C> compoundSet) |
| Modifier and Type | Method and Description |
|---|---|
int |
countCompounds(C... compounds)
Returns the number of times we found a compound in the Sequence
|
AccessionID |
getAccession()
Returns the AccessionID this location is currently bound with
|
List<C> |
getAsList()
Returns the Sequence as a List of compounds
|
C |
getCompoundAt(int position)
Returns the Compound at the given biological index
|
CompoundSet<C> |
getCompoundSet()
Gets the compound set used to back this Sequence
|
int |
getIndexOf(C compound)
Scans through the Sequence looking for the first occurrence of the given
compound
|
SequenceView<C> |
getInverse()
Does the right thing to get the inverse of the current
Sequence.
|
int |
getLastIndexOf(C compound)
Scans through the Sequence looking for the last occurrence of the given
compound
|
int |
getLength()
Returns the length of the Sequence
|
String |
getSequenceAsString()
Returns the String representation of the Sequence
|
String |
getSequenceAsString(Integer bioBegin,
Integer bioEnd,
Strand strand) |
SequenceView<C> |
getSubSequence(Integer bioBegin,
Integer bioEnd)
Returns a portion of the sequence from the different positions.
|
Iterator<C> |
iterator() |
void |
setCompoundSet(CompoundSet<C> compoundSet) |
void |
setContents(String sequence) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SequenceFileProxyLoader(File file, SequenceParserInterface sequenceParser, long sequenceStartIndex, int sequenceLength, CompoundSet<C> compoundSet) throws IOException, CompoundNotFoundException
file - The file where the sequence will be foundsequenceParser - The parser to use to load the sequencesequenceStartIndex - The file offset to the start of the sequencesequenceLength - The length of the sequencecompoundSet - IOException - if problems occur while reading the fileCompoundNotFoundException - if a compound in the sequence can't be found in the given compoundSetpublic void setCompoundSet(CompoundSet<C> compoundSet)
setCompoundSet in interface SequenceReader<C extends Compound>compoundSet - public void setContents(String sequence) throws CompoundNotFoundException
setContents in interface SequenceReader<C extends Compound>sequence - CompoundNotFoundExceptionpublic int getLength()
Sequencepublic C getCompoundAt(int position)
SequencegetCompoundAt in interface Sequence<C extends Compound>position - public int getIndexOf(C compound)
SequencegetIndexOf in interface Sequence<C extends Compound>compound - public int getLastIndexOf(C compound)
SequencegetLastIndexOf in interface Sequence<C extends Compound>compound - public String getSequenceAsString()
SequencegetSequenceAsString in interface Sequence<C extends Compound>public String getSequenceAsString(Integer bioBegin, Integer bioEnd, Strand strand)
bioBegin - bioEnd - strand - public List<C> getAsList()
Sequencepublic SequenceView<C> getSubSequence(Integer bioBegin, Integer bioEnd)
SequencegetSubSequence in interface Sequence<C extends Compound>bioBegin - bioEnd - public CompoundSet<C> getCompoundSet()
SequencegetCompoundSet in interface Sequence<C extends Compound>public AccessionID getAccession()
AccessionedgetAccession in interface Accessionedpublic int countCompounds(C... compounds)
SequencecountCompounds in interface Sequence<C extends Compound>compounds - public SequenceView<C> getInverse()
SequencegetInverse in interface Sequence<C extends Compound>Copyright © 2000–2016 BioJava. All rights reserved.