|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.util.UpdateProteinsI
Defines the functionality of protein import utilities.
| Nested Class Summary | |
static class |
UpdateProteinsI.UpdateException
|
| Field Summary | |
protected BioSourceFactory |
bioSourceFactory
|
protected static CvDatabase |
flybaseDatabase
|
protected static CvAliasType |
geneNameAliasType
|
protected static CvAliasType |
geneNameSynonymAliasType
|
protected static CvDatabase |
goDatabase
|
protected IntactHelper |
helper
|
protected static CvXrefQualifier |
identityXrefQualifier
Describe wether an Xref is related the primary SPTR AC (identityCrefQualifier) or not (secondaryXrefQualifier) |
protected static CvDatabase |
intactDatabase
|
protected static CvDatabase |
interproDatabase
|
protected CvTopic |
isoformComment
|
protected CvXrefQualifier |
isoFormParentXrefQualifier
|
protected CvAliasType |
isoformSynonym
|
protected static boolean |
localTransactionControl
If true, each protein is updated in a distinct transaction. |
protected static org.apache.log4j.Logger |
logger
|
protected static Institution |
myInstitution
The owner of the created object |
protected java.util.Map |
parsingExceptions
|
protected static CvXrefQualifier |
secondaryXrefQualifier
|
protected static CvDatabase |
sgdDatabase
|
protected static java.lang.String |
srsUrl
|
protected static CvDatabase |
uniprotDatabase
Xref databases |
| Constructor Summary | |
UpdateProteinsI(boolean setOutputOn)
|
|
UpdateProteinsI(IntactHelper helper)
Default constructor which initialize the bioSource cache to default. |
|
UpdateProteinsI(IntactHelper helper,
boolean setOutputOn)
Default constructor which initialize the bioSource cache to default. |
|
UpdateProteinsI(IntactHelper helper,
int cacheSize)
|
|
| Method Summary | |
abstract void |
addNewAlias(AnnotatedObject current,
Alias alias)
add (not update) a new Xref to the given Annotated object and write it in the database. |
abstract boolean |
addNewXref(AnnotatedObject current,
Xref xref)
add (not update) a new Xref to the given Annotated object and write it in the database. |
abstract java.lang.String |
getAnEntry(java.lang.String url)
From a given URL, returns a string of a SPTR entry. |
abstract int |
getEntryCount()
Gives the number of entry found in the given URL |
abstract int |
getEntryProcessededCount()
Gives the number of entry successfully processed. |
abstract int |
getEntrySkippedCount()
Gives the number of entry skipped during the process. |
abstract java.lang.String |
getErrorFileName()
return the filename in which have been saved all Entries which gaves us processing errors. |
java.util.Map |
getParsingExceptions()
Gives all Exceptions that have been raised during the last processing. |
abstract int |
getProteinCount()
Gives the count of all potential protein (i.e. |
abstract int |
getProteinCreatedCount()
Gives the count of created protein |
abstract int |
getProteinSkippedCount()
Gives the count of protein which gaves us errors during the processing. |
abstract int |
getProteinUpdatedCount()
Gives the count of updated protein |
abstract int |
getProteinUpToDateCount()
Gives the count of up-to-date protein (i.e. |
abstract int |
getSpliceVariantCount()
Gives the count of all potential splice variant (i.e. |
abstract int |
getSpliceVariantCreatedCount()
Gives the count of created splice variant |
abstract int |
getSpliceVariantSkippedCount()
Gives the count of splice variant which gaves us errors during the processing. |
abstract int |
getSpliceVariantUpdatedCount()
Gives the count of updated splice variant |
abstract int |
getSpliceVariantUpToDateCount()
Gives the count of up-to-date splice variant (i.e. |
abstract java.lang.String |
getUrl(java.lang.String sptrAC)
From a given sptr AC, returns a full URL from where a flatfile format SPTR entry will be fetched. |
abstract Protein |
insertSimpleProtein(java.lang.String anAc,
CvDatabase aDatabase,
java.lang.String aTaxId)
Creates a simple Protein object for entries which are not in SPTR. |
abstract java.util.Collection |
insertSPTrProteins(java.io.InputStream inputStream,
java.lang.String taxid,
boolean update)
Inserts zero or more proteins created from SPTR entries which are retrieved from a Stream. |
abstract java.util.Collection |
insertSPTrProteins(java.lang.String proteinAc)
Inserts zero or more proteins created from SPTR entries which are retrieved from an SPTR Accession number. |
abstract java.util.Collection |
insertSPTrProteins(java.lang.String proteinAc,
java.lang.String taxId,
boolean update)
Inserts zero or more proteins created from SPTR entries which are retrieved from an SPTR Accession number. |
abstract int |
insertSPTrProteinsFromURL(java.lang.String sourceUrl,
java.lang.String taxid,
boolean update)
Inserts zero or more proteins created from SPTR entries which are retrieved from a URL. |
abstract boolean |
isLocalTransactionControl()
If true, each protein is updated in a distinct transaction. |
abstract gnu.regexp.REMatch[] |
match(java.lang.String textin,
java.lang.String pattern)
from a given string and a given pattern(string), to find all matches. |
abstract void |
setDebugOnScreen(boolean debug)
Allows to displays on the screen what's going on during the update process. |
abstract void |
setLocalTransactionControl(boolean localTransactionControl)
If true, each protein is updated in a distinct transaction. |
void |
setLogger(org.apache.log4j.Logger aLogger)
Set the updateprotein logger and those of 3rd party tools. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Logger logger
protected static Institution myInstitution
protected static CvDatabase uniprotDatabase
protected static java.lang.String srsUrl
protected static CvDatabase intactDatabase
protected static CvDatabase sgdDatabase
protected static CvDatabase goDatabase
protected static CvDatabase interproDatabase
protected static CvDatabase flybaseDatabase
protected static CvXrefQualifier identityXrefQualifier
protected static CvXrefQualifier secondaryXrefQualifier
protected CvXrefQualifier isoFormParentXrefQualifier
protected CvTopic isoformComment
protected CvAliasType isoformSynonym
protected static CvAliasType geneNameAliasType
protected static CvAliasType geneNameSynonymAliasType
protected IntactHelper helper
protected BioSourceFactory bioSourceFactory
protected static boolean localTransactionControl
protected java.util.Map parsingExceptions
| Constructor Detail |
public UpdateProteinsI(boolean setOutputOn)
public UpdateProteinsI(IntactHelper helper,
int cacheSize)
throws UpdateProteinsI.UpdateException
helper - IntactHelper object to access (read/write) the database.cacheSize - the number of valid biosource to cache during the update process.
UpdateProteinsI.UpdateException
UpdateProteinsI.UpdateException
public UpdateProteinsI(IntactHelper helper,
boolean setOutputOn)
throws UpdateProteinsI.UpdateException
helper - IntactHelper object to access (read/write) the database.
UpdateProteinsI.UpdateException
UpdateProteinsI.UpdateException
public UpdateProteinsI(IntactHelper helper)
throws UpdateProteinsI.UpdateException
helper - IntactHelper object to access (read/write) the database.
UpdateProteinsI.UpdateException
UpdateProteinsI.UpdateException| Method Detail |
public java.util.Map getParsingExceptions()
public void setLogger(org.apache.log4j.Logger aLogger)
aLogger - the new logger.
public abstract java.util.Collection insertSPTrProteins(java.io.InputStream inputStream,
java.lang.String taxid,
boolean update)
inputStream - The straem from which YASP will read the ENtries content.taxid - Of all entries retrieved from sourceURL, insert only those which have this
taxid.
If taxid is empty, insert all protein objects.update - If true, update existing Protein objects according to the retrieved data.
else, skip existing Protein objects.
public abstract int insertSPTrProteinsFromURL(java.lang.String sourceUrl,
java.lang.String taxid,
boolean update)
sourceUrl - The URL which delivers zero or more SPTR flat file formatted entries.taxid - Of all entries retrieved from sourceURL, insert only those which have this
taxid.
If taxid is empty, insert all protein objects.update - If true, update existing Protein objects according to the retrieved data.
else, skip existing Protein objects.
public abstract java.util.Collection insertSPTrProteins(java.lang.String proteinAc)
proteinAc - SPTR Accession number of the protein to insert/update
public abstract java.util.Collection insertSPTrProteins(java.lang.String proteinAc,
java.lang.String taxId,
boolean update)
proteinAc - SPTR Accession number of the protein to insert/updatetaxId - The tax id the protein should haveupdate - If true, update existing Protein objects according to the retrieved data.
else, skip existing Protein objects.
public abstract Protein insertSimpleProtein(java.lang.String anAc,
CvDatabase aDatabase,
java.lang.String aTaxId)
throws IntactException
anAc - The primary identifier of the protein in the external database.aDatabase - The database in which the protein is listed.aTaxId - The tax id the protein should have
IntactExceptionpublic abstract java.lang.String getUrl(java.lang.String sptrAC)
sptrAC - a SPTR AC
public abstract java.lang.String getAnEntry(java.lang.String url)
url - a URL which outputs flatfile of
public abstract gnu.regexp.REMatch[] match(java.lang.String textin,
java.lang.String pattern)
textin - A string from which some pattern will be matched.pattern - A string as a pattern.
public abstract boolean addNewXref(AnnotatedObject current,
Xref xref)
current - the object to which we add a new Xrefxref - the Xref to add to the AnnotatedObject
public abstract void addNewAlias(AnnotatedObject current,
Alias alias)
current - the object to which we add a new Xrefalias - the Alias to add to the AnnotatedObjectpublic abstract int getProteinCreatedCount()
public abstract int getProteinUpdatedCount()
public abstract int getProteinUpToDateCount()
public abstract int getProteinCount()
public abstract int getProteinSkippedCount()
public abstract int getSpliceVariantCreatedCount()
public abstract int getSpliceVariantUpdatedCount()
public abstract int getSpliceVariantUpToDateCount()
public abstract int getSpliceVariantCount()
public abstract int getSpliceVariantSkippedCount()
public abstract int getEntryCount()
public abstract int getEntryProcessededCount()
public abstract int getEntrySkippedCount()
public abstract void setDebugOnScreen(boolean debug)
debug - true to enable, false to disablepublic abstract java.lang.String getErrorFileName()
public abstract boolean isLocalTransactionControl()
public abstract void setLocalTransactionControl(boolean localTransactionControl)
localTransactionControl - New value for localTransactionControl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||