|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.datamodel.Range
apollo.datamodel.GenomicRange
apollo.datamodel.CurationSet
public class CurationSet
I am the central holder of renderable data - results, annotations etc. I am a composite - I can contain instances of myself. In this case, these "child" curation sets can be retrieved by name. This is the way that the species-specific (and compara-) curation sets are passed around for the Synteny case.
In the case that I have no children, my get... methods will act on the (only) Results, Annotations etc that I have. If I _do_ have children, then the get... methods will blow up when invoked.
My feeling is that CurationSet should not be composite, but just be for one species. There should be a new object for the multi-species scene: MultiSpeciesDataHolder or something like that. It would hold CurationSets and LinkSets. This would mean changing DataLoader to be able to return more than just CurationSets.
| Field Summary | |
|---|---|
protected java.util.Hashtable |
sequence_hash
|
protected java.util.Vector |
sequence_vect
|
| Fields inherited from class apollo.datamodel.GenomicRange |
|---|
chromosome |
| Fields inherited from class apollo.datamodel.Range |
|---|
high, low, name, refSeq, strand, type |
| Fields inherited from interface apollo.datamodel.RangeI |
|---|
NO_NAME, NO_TYPE |
| Constructor Summary | |
|---|---|
CurationSet()
|
|
CurationSet(StrandedFeatureSetI results,
StrandedFeatureSetI annots,
java.lang.String region)
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
General implementation of Visitor pattern. |
void |
addCurationSet(java.lang.Object key,
CurationSet curationSet)
|
SequenceI |
addSequence(SequenceI seq)
|
boolean |
contains(RangeI sf)
Overrides Range.contains. |
FeatureList |
getAnalysisFeatureList(java.lang.String analysisName)
Returns a FeatureList for both strands of an analysis, the first item in list is forward strand, 2nd is rev strand. |
StrandedFeatureSetI |
getAnnots()
A CurationSet has a dangling reference that needs to be cleaned up when a new curation set is loaded to replace this one, otherwise it will persist as a memory leak. |
java.lang.String |
getAssemblyType()
|
java.util.HashMap |
getChildCurationSets()
|
java.util.Vector |
getChildSetOrderedNames()
|
CompositeDataHolder |
getCompositeDataHolder()
|
CurationSet |
getCurationSet()
if isCurationSet returns true than a real curation set would be returned here. |
CurationSet |
getCurationSet(java.lang.Object key)
|
java.lang.String |
getInputFilename()
|
StrandedFeatureSetI |
getResults()
|
SequenceI |
getSequence(java.lang.String id)
|
java.util.Vector |
getSequences()
|
TransactionManager |
getTransactionManager()
|
boolean |
hasTransactionManager()
|
boolean |
hasTransactions()
|
boolean |
isChromosomeArmUsed()
A rather strange implemenation. |
boolean |
isCompositeDataHolder()
|
boolean |
isCurationSet()
ApolloDataI |
boolean |
isMultiSpecies()
Temporary method until all synteny stuff uses CompositeDataHolder rename isComposite? |
boolean |
overlaps(RangeI sf)
Overrides Range.overlaps. |
void |
removeSequence(SequenceI seq)
|
void |
setAnnots(StrandedFeatureSetI annots)
|
void |
setAssemblyType(java.lang.String type)
|
void |
setChildSetOrderedNames(java.util.Vector setNames)
|
void |
setInputFilename(java.lang.String file)
|
void |
setRefSequence(SequenceI seq)
Set the SequenceI that this feature annotates. |
void |
setResults(StrandedFeatureSetI results)
|
void |
setTransactionManager(TransactionManager tranManager)
|
java.lang.String |
toString()
In the single-curation set case, this toString method is good for GAME fly data, but * for Ensembl data, the range already has all the info, so the title ends up something like "2 from Chr 2 200000 4000000:20000-4000000" |
| Methods inherited from class apollo.datamodel.GenomicRange |
|---|
getChromosome, getOrganism, setChromosome, setOrganism |
| Methods inherited from class apollo.datamodel.Range |
|---|
canHaveChildren, contains, convertFromBaseOrientedToInterbase, convertFromInterbaseToBaseOriented, getEnd, getEndAsString, getFeatureType, getHigh, getLeftOverlap, getLow, getName, getRangeClone, getRefSequence, getResidues, getRightOverlap, getStart, getStartAsString, getStrand, hasFeatureType, hasName, hasRefSequence, isContainedByRefSeq, isExactOverlap, isForwardStrand, isIdentical, isSequenceAvailable, length, rangeIsUnassigned, sameRange, setEnd, setFeatureType, setHigh, setLow, setName, setStart, setStrand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface apollo.datamodel.ApolloDataI |
|---|
getName |
| Field Detail |
|---|
protected java.util.Vector sequence_vect
protected java.util.Hashtable sequence_hash
| Constructor Detail |
|---|
public CurationSet()
public CurationSet(StrandedFeatureSetI results,
StrandedFeatureSetI annots,
java.lang.String region)
| Method Detail |
|---|
public java.util.HashMap getChildCurationSets()
public void setChildSetOrderedNames(java.util.Vector setNames)
public java.util.Vector getChildSetOrderedNames()
public void addCurationSet(java.lang.Object key,
CurationSet curationSet)
public CurationSet getCurationSet(java.lang.Object key)
public void setRefSequence(SequenceI seq)
RangeI
setRefSequence in interface RangeIsetRefSequence in class Rangeseq - the new parent SequenceIpublic StrandedFeatureSetI getAnnots()
public StrandedFeatureSetI getResults()
public void setResults(StrandedFeatureSetI results)
public java.lang.String getAssemblyType()
public void setAssemblyType(java.lang.String type)
public java.lang.String getInputFilename()
public void setInputFilename(java.lang.String file)
public void setAnnots(StrandedFeatureSetI annots)
public SequenceI addSequence(SequenceI seq)
public java.util.Vector getSequences()
public SequenceI getSequence(java.lang.String id)
public void removeSequence(SequenceI seq)
public java.lang.String toString()
In the single-curation set case, this toString method is good for GAME fly data, but * for Ensembl data, the range already has all the info, so the title ends up something like "2 from Chr 2 200000 4000000:20000-4000000"
For a composite case, the toString is the concatentation of all toString's on the children nodes.
toString in class Rangepublic void accept(Visitor visitor)
public boolean contains(RangeI sf)
contains in interface RangeIcontains in class Rangepublic boolean overlaps(RangeI sf)
overlaps in interface RangeIoverlaps in class Rangecontainspublic boolean isCurationSet()
isCurationSet in interface ApolloDataIpublic CurationSet getCurationSet()
ApolloDataI
getCurationSet in interface ApolloDataIpublic boolean isCompositeDataHolder()
isCompositeDataHolder in interface ApolloDataIpublic CompositeDataHolder getCompositeDataHolder()
getCompositeDataHolder in interface ApolloDataIpublic boolean isMultiSpecies()
isMultiSpecies in interface ApolloDataIpublic FeatureList getAnalysisFeatureList(java.lang.String analysisName)
public boolean hasTransactions()
public boolean hasTransactionManager()
public TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager tranManager)
tranManager - The tranManager to set.public boolean isChromosomeArmUsed()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||