java.lang.Object
apollo.gui.SelectionSet
- Direct Known Subclasses:
- EvidenceSelectionSet
- public class SelectionSet
- extends java.lang.Object
This is a convienience class for determining and making easily available which sets,
transcripts and genes a group of features come from.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
features
java.util.Vector features
- features contains only leaf features(descendants of sets)
sets
java.util.Vector sets
transcripts
java.util.Vector transcripts
genes
java.util.Vector genes
originalFeatures
private java.util.Vector originalFeatures
- Vector of the original selection vector passed in, contains all different types
of features.
used
boolean used
SelectionSet
public SelectionSet(java.util.Vector df)
SelectionSet
public SelectionSet(Selection sel)
SelectionSet
public SelectionSet(Selection sel,
apollo.gui.genomemap.ViewI v)
init
public void init(java.util.Vector feat_vect)
getUsed
public boolean getUsed()
setUsed
public void setUsed(boolean state)
getFeatures
public java.util.Vector getFeatures()
getFeature
public apollo.datamodel.SeqFeatureI getFeature(int index)
getSets
public java.util.Vector getSets()
getSet
public apollo.datamodel.FeatureSetI getSet(int index)
getTranscripts
public java.util.Vector getTranscripts()
- Return all transcript involved in selection, whether fully or partially
selected.
getTranscript
public apollo.datamodel.Transcript getTranscript(int index)
getFirstFullySelectedTranscript
public apollo.datamodel.Transcript getFirstFullySelectedTranscript()
- Returns the first transcript in the selection that has all
of its exons selected, if a Transcript is present that certainly
qualifies. This is not the same as getTranscript(0). The transcripts
stored in SelectionSet do not have to be fully selected. So
getTranscript(0) may return a multi-exon transcript that has only one of
its exons selected. At present we only need the first fully selected trans
(for AnnEd.moveExonsToTranscript). If in the future we need more than just
this, this can be generalized.
getGenes
public java.util.Vector getGenes()
getGene
public apollo.datamodel.Gene getGene(int index)
findTranscripts
private java.util.Vector findTranscripts(java.util.Vector features)
findSeqFeatures
private java.util.Vector findSeqFeatures(java.util.Vector features)
addSeqFeature
private void addSeqFeature(apollo.datamodel.SeqFeatureI sf,
java.util.Vector sets)
findSets
private java.util.Vector findSets(java.util.Vector features)
- Goes through vector of features finding FeatureSets. If features is a drawable
it gets its model feature. If model feature is a FeatureSet adds it to
return vector, if not adds parent, if not already added
findGenes
private java.util.Vector findGenes(java.util.Vector tran)
dump
public void dump(java.lang.String desc)