A class for annotating ISequences with IFeatures which represent restriction sites

Namespace:  BioSharp.Core.Bio.Molbio
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (


public class RestrictionMapper : ISequenceAnnotator


Calling Annotate(ISequence sequence) will annotate the ISequence with the sites of any RestrictionEnzymes which have been added to the RestrictionMapper. The returned ISequence is a ViewSequence wrapping the original.

The Features created are RestrictionSites which have a flyweight IAnnotation containing a single string property "dbxref" whose value is "REBASE:" plus name of the enzyme (e.g. EcoRI).

The mapper will by default map only those sites which have both their recognition sites and their cut sites within the ISequence. This behaviour may be changed to map all sites which have their recognition sites within the ISequence using the SetMapAll(bool on) method.

The current implementation requires that RestrictionEnzymes to be searched must first be registered with the RestrictionEnzymeManager.

Original BioJava version by Keith James. Port to C# by Doug Swisher.

Inheritance Hierarchy


See Also