public class SimpleRestrictionSite extends SimpleStrandedFeature implements RestrictionSite
SimpleRestrictionSite
represents the recognition site
of a restriction enzyme.RestrictionSite.Template
StrandedFeature.Strand
Feature.ByLocationComparator
FeatureHolder.EmptyFeatureHolder
Annotatable.AnnotationForwarder
NEGATIVE, POSITIVE, STRAND, UNKNOWN
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERM
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
ANNOTATION
Constructor and Description |
---|
SimpleRestrictionSite(Sequence sourceSeq,
FeatureHolder parent,
RestrictionSite.Template template)
Creates a new
SimpleRestrictionSite . |
Modifier and Type | Method and Description |
---|---|
RestrictionEnzyme |
getEnzyme()
getEnzyme returns the enzyme which cuts at this
site. |
int |
getPosition()
getPosition returns the common, forward strand cut
site. |
String |
toString() |
fillTemplate, getStrand, getSymbols, makeTemplate, setStrand
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, setTypeTerm
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getStrand, getSymbols, setStrand
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, makeTemplate, setLocation, setSource, setSourceTerm, setType, setTypeTerm
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeature
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public SimpleRestrictionSite(Sequence sourceSeq, FeatureHolder parent, RestrictionSite.Template template)
SimpleRestrictionSite
.sourceSeq
- a Sequence
.parent
- a FeatureHolder
.template
- a RestrictionSite.Template
.public int getPosition()
RestrictionSite
getPosition
returns the common, forward strand cut
site. Note that some enzymes cut in more than one
position. Such supplementary sites may be calculated by
retrieving the RestrictionEnzyme
instance and
using its methods to calculate the position.getPosition
in interface RestrictionSite
int
indicating the base immediately
before the cleavage site on the forward strand.public RestrictionEnzyme getEnzyme()
RestrictionSite
getEnzyme
returns the enzyme which cuts at this
site. A sequence which is the target for several different
enzymes is expected to have a corresponding
RestrictionSite
feature for each.getEnzyme
in interface RestrictionSite
RestrictionEnzyme
.public String toString()
toString
in class SimpleStrandedFeature
Copyright © 2014 BioJava. All rights reserved.