insert
abstract fun insert(seqid: String, source: String, type: String, ranges: Iterable<IntRange>, score: Double?, strand: Strand, phases: Iterable<Phase>, attributes: Map<String, Iterable<String>>? = null): MutableFeature
Inserts a feature with the specified properties as the child of this feature. If this MutableParent is not a MutableGenome, the inserted type must have a part-of relationship with this feature's type. This means that either the part-of relationship was explicitly defined by the user or exists in the Sequence Ontology.
Return
the inserted feature
Throws
if attributes contains the key "Parent." Parent/child relationships are determined by actual topology of the tree, NOT the attributes.
if inserted type does not have part-of relationship.
abstract fun insert(seqid: String, source: String, type: String, range: IntRange, score: Double?, strand: Strand, phase: Phase, attributes: Map<String, Iterable<String>>? = null): MutableFeature
Alias for insert for features without discontinuous regions. Behaves analogously.