public class RnaSequenceView extends SequenceProxyView<NucleotideCompound> implements ProxySequenceReader<NucleotideCompound>
Constructor and Description |
---|
RnaSequenceView(Sequence<NucleotideCompound> sourceDna) |
RnaSequenceView(Sequence<NucleotideCompound> sourceDna,
CompoundSet<NucleotideCompound> rnaCompounds) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildTranslators() |
NucleotideCompound |
getCompoundAt(int position)
Returns the Compound at the given biological index
|
Map<NucleotideCompound,NucleotideCompound> |
getDnaToRna() |
int |
getIndexOf(NucleotideCompound compound)
Scans through the Sequence looking for the first occurrence of the given
compound
|
int |
getLastIndexOf(NucleotideCompound compound)
Scans through the Sequence looking for the last occurrence of the given
compound
|
Map<NucleotideCompound,NucleotideCompound> |
getRnaToDna() |
String |
getSequenceAsString()
Returns the String representation of the Sequence
|
void |
setCompoundSet(CompoundSet<NucleotideCompound> compoundSet) |
void |
setContents(String sequence) |
countCompounds, equals, getAccession, getAsList, getBioEnd, getBioStart, getCompoundSet, getInverse, getLength, getSubSequence, getViewedSequence, hashCode, iterator, setBioEnd, setBioStart
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
countCompounds, getAsList, getCompoundSet, getInverse, getLength, getSubSequence
forEach, iterator, spliterator
getAccession
public RnaSequenceView(Sequence<NucleotideCompound> sourceDna)
public RnaSequenceView(Sequence<NucleotideCompound> sourceDna, CompoundSet<NucleotideCompound> rnaCompounds)
public String getSequenceAsString()
Sequence
getSequenceAsString
in interface Sequence<NucleotideCompound>
getSequenceAsString
in class SequenceProxyView<NucleotideCompound>
public NucleotideCompound getCompoundAt(int position)
Sequence
getCompoundAt
in interface Sequence<NucleotideCompound>
getCompoundAt
in class SequenceProxyView<NucleotideCompound>
position
- Biological index (1 to n)public int getIndexOf(NucleotideCompound compound)
Sequence
getIndexOf
in interface Sequence<NucleotideCompound>
getIndexOf
in class SequenceProxyView<NucleotideCompound>
compound
- Compounds to look forpublic int getLastIndexOf(NucleotideCompound compound)
Sequence
getLastIndexOf
in interface Sequence<NucleotideCompound>
getLastIndexOf
in class SequenceProxyView<NucleotideCompound>
compound
- Compounds to look forpublic Map<NucleotideCompound,NucleotideCompound> getRnaToDna()
public Map<NucleotideCompound,NucleotideCompound> getDnaToRna()
protected void buildTranslators()
public void setCompoundSet(CompoundSet<NucleotideCompound> compoundSet)
setCompoundSet
in interface SequenceReader<NucleotideCompound>
public void setContents(String sequence) throws CompoundNotFoundException
setContents
in interface SequenceReader<NucleotideCompound>
CompoundNotFoundException
Copyright © 2000–2019 BioJava. All rights reserved.