public class ChromosomeSequence extends DNASequence
DNASequence.DNAType
AbstractSequence.AnnotationType
Constructor and Description |
---|
ChromosomeSequence()
Empty constructor used by tools that need a proper Bean that allows the actual
sequence data to be set after construction.
|
ChromosomeSequence(SequenceReader<NucleotideCompound> proxyLoader)
Fairly important constructor given the size of a ChromsomeSequence where the
ProxySequenceReader could load from disk via RandomAccessFile so that the sequence
doesn't need to be kept in memory.
|
ChromosomeSequence(SequenceReader<NucleotideCompound> proxyLoader,
CompoundSet<NucleotideCompound> compoundSet)
Allows the creation of a ChromosomeSequence using a ProxyResequenceReader for the sequence with a custom CompoundSet
|
ChromosomeSequence(String seqString)
String is king and assume DNA
|
ChromosomeSequence(String seqString,
CompoundSet<NucleotideCompound> compoundSet)
Allows the creation of a ChromosomeSequence using String for the sequence with a custom CompoundSet
|
Modifier and Type | Method and Description |
---|---|
GeneSequence |
addGene(AccessionID accession,
int bioBegin,
int bioEnd,
Strand strand)
Add a gene to the chromosome sequence using bioIndexing starts at 1 instead of 0.
|
int |
getChromosomeNumber() |
GeneSequence |
getGene(String accession)
Get the gene based on accession.
|
LinkedHashMap<String,GeneSequence> |
getGeneSequences()
Get the list of genes that have been added to the ChromosomeSequence where accession.toString is the key.
|
GeneSequence |
removeGeneSequence(String accession) |
void |
setChromosomeNumber(int chromosomeNumber) |
getComplement, getDNAType, getGCCount, getReverse, getReverseComplement, getRNASequence, getRNASequence, getRNASequence, getRNASequence, main, setDNAType
addFeature, addFeature, addNote, countCompounds, equals, getAccession, getAnnotationType, getAsList, getBioBegin, getBioEnd, getComments, getCompoundAt, getCompoundSet, getDatabaseReferences, getDescription, getFeatureRetriever, getFeatures, getFeatures, getFeatures, getFeaturesByType, getFeaturesKeyWord, getIndexOf, getInverse, getLastIndexOf, getLength, getNotesList, getOriginalHeader, getParentSequence, getProxySequenceReader, getReferences, getSequenceAsString, getSequenceAsString, getSequenceScore, getSource, getSubSequence, getTaxonomy, getUserCollection, hashCode, iterator, removeFeature, removeNote, setAccession, setAnnotationType, setBioBegin, setBioEnd, setComments, setCompoundSet, setDatabaseReferences, setDescription, setFeatureRetriever, setFeaturesKeyWord, setNotesList, setOriginalHeader, setParentSequence, setProxySequenceReader, setReferences, setSequenceScore, setSource, setTaxonomy, setUserCollection, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ChromosomeSequence()
public ChromosomeSequence(String seqString) throws CompoundNotFoundException
seqString
- CompoundNotFoundException
public ChromosomeSequence(SequenceReader<NucleotideCompound> proxyLoader)
proxyLoader
- public ChromosomeSequence(String seqString, CompoundSet<NucleotideCompound> compoundSet) throws CompoundNotFoundException
seqString
- compoundSet
- CompoundNotFoundException
public ChromosomeSequence(SequenceReader<NucleotideCompound> proxyLoader, CompoundSet<NucleotideCompound> compoundSet)
proxyLoader
- compoundSet
- public int getChromosomeNumber()
public void setChromosomeNumber(int chromosomeNumber)
chromosomeNumber
- the chromosomeNumber to setpublic LinkedHashMap<String,GeneSequence> getGeneSequences()
public GeneSequence removeGeneSequence(String accession)
accession
- public GeneSequence addGene(AccessionID accession, int bioBegin, int bioEnd, Strand strand)
accession
- begin
- end
- strand
- public GeneSequence getGene(String accession)
accession
- Copyright © 2000–2019 BioJava. All rights reserved.