Create a projected feature with properties matching the template.
Namespace:
BioSharp.Core.Bio.Seq.ProjectionAssembly: BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)
Syntax
C# |
---|
IFeature CreateFeature( Feature..::.Template projTempl ) |
Parameters
- projTempl
- Type: BioSharp.Core.Bio.Seq..::.Feature..::.Template
the Feature.Template to instantiate
Return Value
a new projected Feature matching the template as closely as possibleRemarks
You will probably implement this by delegating to the unprojected feature holder. It is imperative that the template properties are unprojected first so that when the newly created feature is projected, the properties match
Not every projection context has fully reversible semantics. Use your discression and come up with a reasonable plan that causes least supprise to the user.
Exceptions
Exception | Condition |
---|---|
BioSharp.Core.Bio..::.BioException | if there was a problem instantiating the template |
BioSharp.Core.Utils..::.ChangeVetoException | if the feature creation was vetoed |