Create a projected feature with properties matching the template.

Namespace:  BioSharp.Core.Bio.Seq.Projection
Assembly:  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 possible

Remarks

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

ExceptionCondition
BioSharp.Core.Bio..::.BioExceptionif there was a problem instantiating the template
BioSharp.Core.Utils..::.ChangeVetoExceptionif the feature creation was vetoed

See Also