C - public class UniprotProxySequenceReader<C extends Compound> extends Object implements ProxySequenceReader<C>, FeaturesKeyWordInterface, DatabaseReferenceInterface
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
UP_AC_PATTERN |
| Constructor and Description |
|---|
UniprotProxySequenceReader(Document document,
CompoundSet<C> compoundSet)
The xml is passed in as a DOM object so we know everything about the protein.
|
UniprotProxySequenceReader(String accession,
CompoundSet<C> compoundSet)
The UniProt id is used to retrieve the UniProt XML which is then parsed as a DOM object
so we know everything about the protein.
|
| 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
|
ArrayList<AccessionID> |
getAccessions()
Pull uniprot accessions associated with this sequence
|
ArrayList<String> |
getAliases()
Pull uniprot protein aliases associated with this sequence
|
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
|
LinkedHashMap<String,ArrayList<DBReferenceInfo>> |
getDatabaseReferences()
The Uniprot mappings to other database identifiers for this sequence
|
String |
getGeneName()
Get the gene name associated with 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.
|
ArrayList<String> |
getKeyWords()
Pull UniProt key words which is a mixed bag of words associated with this sequence
|
int |
getLastIndexOf(C compound)
Scans through the Sequence looking for the last occurrence of the given
compound
|
int |
getLength()
The sequence length
|
String |
getOrganismName()
Get the organism name assigned to this 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.
|
static String |
getUniprotbaseURL()
The current UniProt URL to deal with caching issues.
|
static String |
getUniprotDirectoryCache()
Local directory cache of XML that can be downloaded
|
Iterator<C> |
iterator() |
static void |
main(String[] args) |
static <C extends Compound> |
parseUniprotXMLString(String xml,
CompoundSet<C> compoundSet)
The passed in xml is parsed as a DOM object so we know everything about the protein.
|
void |
setCompoundSet(CompoundSet<C> compoundSet) |
void |
setContents(String sequence)
Once the sequence is retrieved set the contents and make sure everything this is valid
|
static void |
setUniprotbaseURL(String aUniprotbaseURL) |
static void |
setUniprotDirectoryCache(String aUniprotDirectoryCache) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final Pattern UP_AC_PATTERN
public UniprotProxySequenceReader(String accession, CompoundSet<C> compoundSet) throws CompoundNotFoundException, IOException
accession - compoundSet - CompoundNotFoundExceptionIOException - if problems while reading the UniProt XMLpublic UniprotProxySequenceReader(Document document, CompoundSet<C> compoundSet) throws CompoundNotFoundException
document - compoundSet - CompoundNotFoundExceptionpublic static <C extends Compound> UniprotProxySequenceReader<C> parseUniprotXMLString(String xml, CompoundSet<C> compoundSet)
xml - compoundSet - Exceptionpublic void setCompoundSet(CompoundSet<C> compoundSet)
setCompoundSet in interface SequenceReader<C extends Compound>public void setContents(String sequence) throws CompoundNotFoundException
setContents in interface SequenceReader<C extends Compound>sequence - CompoundNotFoundExceptionpublic int getLength()
public 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 List<C> getAsList()
Sequencepublic SequenceView<C> getInverse()
SequencegetInverse in interface Sequence<C extends Compound>public String getSequenceAsString(Integer bioBegin, Integer bioEnd, Strand strand)
bioBegin - bioEnd - strand - public 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 ArrayList<AccessionID> getAccessions() throws XPathExpressionException
XPathExpressionExceptionpublic ArrayList<String> getAliases() throws XPathExpressionException
XPathExpressionExceptionpublic int countCompounds(C... compounds)
SequencecountCompounds in interface Sequence<C extends Compound>compounds - public static String getUniprotbaseURL()
public static void setUniprotbaseURL(String aUniprotbaseURL)
aUniprotbaseURL - the uniprotbaseURL to setpublic static String getUniprotDirectoryCache()
public static void setUniprotDirectoryCache(String aUniprotDirectoryCache)
aUniprotDirectoryCache - the uniprotDirectoryCache to setpublic static void main(String[] args)
public String getGeneName()
public String getOrganismName()
public ArrayList<String> getKeyWords()
getKeyWords in interface FeaturesKeyWordInterfacepublic LinkedHashMap<String,ArrayList<DBReferenceInfo>> getDatabaseReferences()
getDatabaseReferences in interface DatabaseReferenceInterfaceCopyright © 2000–2016 BioJava. All rights reserved.