Package org.biojava.bio.seq.impl
Class SimpleRestrictionSite
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.seq.impl.SimpleFeature
org.biojava.bio.seq.impl.SimpleStrandedFeature
org.biojava.bio.seq.impl.SimpleRestrictionSite
- All Implemented Interfaces:
Serializable,Annotatable,RestrictionSite,Feature,FeatureHolder,RealizingFeatureHolder,StrandedFeature,Changeable
SimpleRestrictionSite represents the recognition site
of a restriction enzyme.- Since:
- 1.3
- Author:
- Keith James
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable
Annotatable.AnnotationForwarderNested classes/interfaces inherited from interface org.biojava.bio.seq.Feature
Feature.ByLocationComparator, Feature.TemplateNested classes/interfaces inherited from interface org.biojava.bio.seq.FeatureHolder
FeatureHolder.EmptyFeatureHolderNested classes/interfaces inherited from interface org.biojava.bio.molbio.RestrictionSite
RestrictionSite.TemplateNested classes/interfaces inherited from interface org.biojava.bio.seq.StrandedFeature
StrandedFeature.Strand, StrandedFeature.Template -
Field Summary
Fields inherited from interface org.biojava.bio.Annotatable
ANNOTATIONFields inherited from interface org.biojava.bio.seq.Feature
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERMFields inherited from interface org.biojava.bio.seq.FeatureHolder
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMAFields inherited from interface org.biojava.bio.seq.StrandedFeature
NEGATIVE, POSITIVE, STRAND, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRestrictionSite(Sequence sourceSeq, FeatureHolder parent, RestrictionSite.Template template) Creates a newSimpleRestrictionSite. -
Method Summary
Modifier and TypeMethodDescriptiongetEnzymereturns the enzyme which cuts at this site.intgetPositionreturns the common, forward strand cut site.toString()Methods inherited from class org.biojava.bio.seq.impl.SimpleStrandedFeature
fillTemplate, getStrand, getSymbols, makeTemplate, setStrandMethods inherited from class org.biojava.bio.seq.impl.SimpleFeature
containsFeature, countFeatures, createFeature, equals, featureHolderAllocated, features, fillTemplate, filter, filter, getAnnotation, getChangeSupport, getFeatureHolder, getLocation, getParent, getSchema, getSequence, getSource, getSourceTerm, getType, getTypeTerm, hashCode, realizeFeature, removeFeature, setLocation, setSource, setSourceTerm, setType, setTypeTermMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biojava.bio.Annotatable
getAnnotationMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from interface org.biojava.bio.seq.Feature
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, makeTemplate, setLocation, setSource, setSourceTerm, setType, setTypeTermMethods inherited from interface org.biojava.bio.seq.FeatureHolder
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeatureMethods inherited from interface org.biojava.bio.seq.StrandedFeature
getStrand, getSymbols, setStrand
-
Constructor Details
-
SimpleRestrictionSite
public SimpleRestrictionSite(Sequence sourceSeq, FeatureHolder parent, RestrictionSite.Template template) Creates a newSimpleRestrictionSite.- Parameters:
sourceSeq- aSequence.parent- aFeatureHolder.template- aRestrictionSite.Template.
-
-
Method Details
-
getPosition
Description copied from interface:RestrictionSitegetPositionreturns the common, forward strand cut site. Note that some enzymes cut in more than one position. Such supplementary sites may be calculated by retrieving theRestrictionEnzymeinstance and using its methods to calculate the position.- Specified by:
getPositionin interfaceRestrictionSite- Returns:
- an
intindicating the base immediately before the cleavage site on the forward strand.
-
getEnzyme
Description copied from interface:RestrictionSitegetEnzymereturns the enzyme which cuts at this site. A sequence which is the target for several different enzymes is expected to have a correspondingRestrictionSitefeature for each.- Specified by:
getEnzymein interfaceRestrictionSite- Returns:
- a
RestrictionEnzyme.
-
toString
- Overrides:
toStringin classSimpleStrandedFeature
-