|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.webapps.dimlib.datamodel.MutationManager
Provides access to the persistent DimLib datamodel.
| Constructor Summary | |
MutationManager()
Constructs a new mutation manager. |
|
| Method Summary | |
void |
abort()
Aborts the transaction. |
void |
addGifXMLtoMP(MutantProtein mp,
GifMap xml)
Updates the MutantProtein to include the mapping information for the GIF image. |
void |
addGifXMLtoWTP(WildTypeProtein wtp,
GifMap xml)
Updates the WildTypeProtein to include the mapping information for the GIF image. |
void |
begin()
Begins a transaction. |
void |
commit()
Commits the transaction. |
MutantProtein |
createMutantProtein(WildTypeProtein wildtype)
Creates a MutantProtein. |
WildTypeProtein |
createWildTypeProtein(java.lang.String name,
java.lang.String family)
Creates a WildTypeProtein. |
boolean |
delete(java.lang.Object object)
Deletes a persistent object. |
boolean |
doesACExist(java.lang.String ac,
java.lang.String org)
Searches for this accession code in the database. |
java.util.Collection |
getAllArcadiaAlns()
Queries the database for all stored ArcadiaAlignments. |
java.util.Collection |
getAllFamilies()
Returns a Collection of all the families associated with WildTypeProteins in the database. |
java.util.Collection |
getAllMutantProteins()
Returns all MutantProteins in the database. |
java.util.Collection |
getAllSNPs()
Returns all the SNPs in the database. |
java.util.Collection |
getAllWTProteins()
Returns all WildTypeProteins in the database. |
ArcadiaAlignment |
getArcadiaAlnByID(java.lang.String id)
Queries the database for the ArcadiaAlignments with the specific ID. |
java.util.Collection |
getArcadiaAlnsByKeyword(java.lang.String keyword)
Queries the database for ArcadiaAlignments which contain the keyword in either the name or description fields. |
java.util.Collection |
getArcadiaAlnsByName(java.lang.String name)
Queries the database for ArcadiaAlignments whose short_name matches name. |
java.util.Collection |
getArcadiaAlnsBySeq(java.lang.String keyword)
Queries the database for ArcadiaAlignments containing the ArcadiaAlignedSequence seq defined by this keyword. |
java.util.Collection |
getCorrelatedSNPs()
Returns all the SNPs which occur at positions which already have mutations entered for them (for the same protein) in the database. |
GenericPosition |
getGenericPosition(Mutation mutation,
MutantProtein mutant,
WildTypeProtein protein)
Returns the generic position associated for this mutation. |
MutantProtein |
getMutantProteinById(java.lang.String id)
Queries the database for a MutantProtein by its ID. |
java.util.Collection |
getMutantProteins(java.lang.String keyword)
Queries the database for the presence of a keyword in a MutantProtein. |
java.util.Collection |
getMutantProteinsByAc(java.lang.String ac)
Queries the database for MutantProteins by the accession code of their parent WildTypeProtein. |
java.util.Collection |
getMutantProteinsByOrg(java.lang.String organism)
Queries the database for MutantProteins by the organism of their parent WildTypeProtein. |
java.util.Collection |
getMutantProteinsByPosition(java.lang.String q)
Queries the database for MutantProteins with a mutation at a given position. |
java.util.Collection |
getMutantProteinsBySubmitter(java.lang.String name)
Queries the database for MutantProteins by submitter. |
java.util.Collection |
getMutantProteinsByWTP(WildTypeProtein w)
Queries the database for MutantProteins associated with a WildTypeProtein. |
java.util.Collection |
getMutantProteinsCriteria()
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
java.util.Collection |
getProteinsCriteria()
|
javax.jdo.Transaction |
getTrans()
|
java.util.Collection |
getWTPByPosition(java.lang.String q)
Queries the database for WildTypeProteins which have MutantProteins with mutations at a given position. |
java.util.Collection |
getWTPBySubmitter(java.lang.String name)
Queries the database for WildTypeProteins submitted by a particular submitter. |
WildTypeProtein |
getWTProteinByAcOrg(java.lang.String ac,
java.lang.String organism)
Queries the database for a WildTypeProtein by accession code and organism. |
WildTypeProtein |
getWTProteinById(java.lang.String id)
Queries the database for WildTypeProteins by DiMLib ID. |
WildTypeProtein |
getWTProteinByMID(java.lang.String id)
Queries the database for a WildTypeProtein by mutant id. |
WildTypeProtein |
getWTProteinByName(java.lang.String name,
java.lang.String family,
java.lang.String organism)
Queries the database for a WildTypeProtein by name and family and organism. |
java.util.Collection |
getWTProteins(java.lang.String keyword)
Queries the database for the presence of a keyword in a WildTypeProtein. |
java.util.Collection |
getWTProteinsByAc(java.lang.String ac)
Queries the database for WildTypeProteins by accession code. |
java.util.Collection |
getWTProteinsByOrg(java.lang.String organism)
Queries the database for a WildTypeProtein by organism. |
boolean |
isAcInDb(java.lang.String ac,
java.lang.String db)
Searches for this accession code in the Arcadia database. |
boolean |
isAutoCommit()
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
mutantExists(WildTypeProtein wtp,
MutantProtein mp)
Checks if the MutantProtein is already associated with the given WildTypeProtein. |
java.util.Collection |
selectMutantProteinsByPosition(java.util.Collection c,
java.lang.String q)
|
void |
setAutoCommit(boolean autoCommit)
Sets auto commit on this manager. |
void |
setPersistenceManager(javax.jdo.PersistenceManager persistenceManager)
|
java.lang.String |
snpExists(WildTypeProtein wtp,
SNP snp)
Checks if the SNP is already associated with the given WildTypeProtein. |
void |
submitAccessionCode(AccessionCode ac)
Submits an AccessionCode. |
void |
submitArcadiaAlignment(ArcadiaAlignment aln)
|
void |
submitMutantProtein(MutantProtein mp)
Submits a MutantProtein. |
void |
submitSNP(SNP snp)
|
void |
submitWildTypeProtein(WildTypeProtein wtp)
Submits a WildTypeProtein. |
void |
updateWildTypeProtein(WildTypeProtein wp,
java.util.Collection mp)
Updates the MutantProteins associated with a WildTypeProtein. |
void |
updateWildTypeProtein(WildTypeProtein wp,
MutantProtein mp)
Updates the MutantProteins associated with a WildTypeProtein. |
void |
updateWildTypeProtein(WildTypeProtein wp,
SNP snp)
|
void |
updateWTPRefs(WildTypeProtein wtp,
java.lang.String database,
java.lang.String ac)
Updates the ExternalReferences associated with a WildTypeProtein. |
boolean |
wtpExists(WildTypeProtein wtp)
Checks if the WildTypeProtein is already in the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MutationManager()
| Method Detail |
public GenericPosition getGenericPosition(Mutation mutation,
MutantProtein mutant,
WildTypeProtein protein)
protein - The wild type sequence.mutant - The mutant which contains the mutation.mutation - The mutation for which a generic position should be computed.public java.util.Collection getAllWTProteins()
public java.util.Collection getWTProteins(java.lang.String keyword)
public java.util.Collection getWTProteinsByAc(java.lang.String ac)
public WildTypeProtein getWTProteinById(java.lang.String id)
public WildTypeProtein getWTProteinByAcOrg(java.lang.String ac,
java.lang.String organism)
public java.util.Collection getWTProteinsByOrg(java.lang.String organism)
public WildTypeProtein getWTProteinByMID(java.lang.String id)
public WildTypeProtein getWTProteinByName(java.lang.String name,
java.lang.String family,
java.lang.String organism)
public java.util.Collection getWTPBySubmitter(java.lang.String name)
public java.util.Collection getWTPByPosition(java.lang.String q)
public java.util.Collection getAllMutantProteins()
public java.util.Collection getProteinsCriteria()
public java.util.Collection getMutantProteinsCriteria()
public java.util.Collection getMutantProteins(java.lang.String keyword)
public java.util.Collection getMutantProteinsByAc(java.lang.String ac)
public java.util.Collection getMutantProteinsByOrg(java.lang.String organism)
public MutantProtein getMutantProteinById(java.lang.String id)
public java.util.Collection getMutantProteinsBySubmitter(java.lang.String name)
public java.util.Collection getMutantProteinsByPosition(java.lang.String q)
public java.util.Collection getMutantProteinsByWTP(WildTypeProtein w)
public java.util.Collection getAllArcadiaAlns()
public ArcadiaAlignment getArcadiaAlnByID(java.lang.String id)
public java.util.Collection getArcadiaAlnsByName(java.lang.String name)
public java.util.Collection getArcadiaAlnsByKeyword(java.lang.String keyword)
public java.util.Collection getArcadiaAlnsBySeq(java.lang.String keyword)
public java.util.Collection getAllSNPs()
public java.util.Collection getCorrelatedSNPs()
public java.util.Collection getAllFamilies()
public boolean wtpExists(WildTypeProtein wtp)
public java.lang.String mutantExists(WildTypeProtein wtp,
MutantProtein mp)
public boolean doesACExist(java.lang.String ac,
java.lang.String org)
public boolean isAcInDb(java.lang.String ac,
java.lang.String db)
public java.lang.String snpExists(WildTypeProtein wtp,
SNP snp)
public void submitWildTypeProtein(WildTypeProtein wtp)
wtp - is the instance of the WildTypeProtein that is to be made persistent.
public WildTypeProtein createWildTypeProtein(java.lang.String name,
java.lang.String family)
family - Name of the family to which the new protein will belong.
public void updateWildTypeProtein(WildTypeProtein wp,
java.util.Collection mp)
wp - the WildTypeProtein to be updated.mp - Collection of MutantProteins to be added to the WildTypeProtein.
public void updateWildTypeProtein(WildTypeProtein wp,
SNP snp)
public void updateWTPRefs(WildTypeProtein wtp,
java.lang.String database,
java.lang.String ac)
database - the database which the new reference refers to.ac - the accession code which the new reference refers to.
public void updateWildTypeProtein(WildTypeProtein wp,
MutantProtein mp)
wp - the WildTypeProtein to be updated.mp - MutantProtein to be added to the WildTypeProtein.
public void addGifXMLtoWTP(WildTypeProtein wtp,
GifMap xml)
public void submitMutantProtein(MutantProtein mp)
mp - - the instance of MutantProtein to be made persistent.public MutantProtein createMutantProtein(WildTypeProtein wildtype)
wildtype - - the WildTypeProtein which is the origin of this MutantProtein.
public void addGifXMLtoMP(MutantProtein mp,
GifMap xml)
public void submitAccessionCode(AccessionCode ac)
ac - is the instance of the AccessionCode that is to be made persistent.public void submitArcadiaAlignment(ArcadiaAlignment aln)
public void submitSNP(SNP snp)
public java.util.Collection selectMutantProteinsByPosition(java.util.Collection c,
java.lang.String q)
public boolean delete(java.lang.Object object)
public javax.jdo.Transaction getTrans()
public void begin()
public void commit()
public void abort()
public javax.jdo.PersistenceManager getPersistenceManager()
public void setPersistenceManager(javax.jdo.PersistenceManager persistenceManager)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
autoCommit - When set to true, the manager will commit a change each time a method succeeds. When false,
the client must manage transactions explicitly. Explicit management of transactions can be performed
by using the start(), commit() and abort() methods of the manager.begin(),
commit(),
abort()public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||