MutableParent

Properties

Link copied to clipboard
open override val children: List<MutableFeature>

All children of this parent

Functions

Link copied to clipboard
abstract override fun byID(id: String): MutableFeature?
Link copied to clipboard
abstract override fun byName(name: String): List<MutableFeature>
Link copied to clipboard
abstract override fun children(type: String?): List<MutableFeature>

All children of this parent of type type (including its synonyms), or all children if type is null.

Link copied to clipboard
abstract override fun descendants(type: String?): Sequence<MutableFeature>

All descendants of this parent of type type (including its synonyms) in depth-first order, or all descendants if type is null. Iterating over the descendants while modifying the topology of the tree will produce a ConcurrentModificationException (non-topological modifications are permissible). Multiple parentage will result in duplicate values

Link copied to clipboard
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.

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.

Link copied to clipboard
open operator fun iterator(): Iterator<Feature>

Iterates over children

Link copied to clipboard
abstract fun parentString(): String
Link copied to clipboard
abstract fun sort(comparator: (Feature, Feature) -> Int)

Sorts the children by comparator.