Class: NodeSelection

The nodes of a network to keep or to drop, by label; exactly one of keep and drop is stated. A label is matched as written or through the aliases a by_label reconciliation uses (a node’s alternateName and the atlas terminology). A selection is a set: the kept nodes stay in the order the network carries them, whatever order keep lists them in, and are renumbered from 0.

The selection is applied when the network is resolved, after its source has delivered nodes and arrays and before anything else reads them. Every stored layer, edge-parameter matrix and per-node array (nodes/<name>) is restricted to the kept nodes, an edge listed between two nodes goes with either of its nodes, and number_of_nodes is the kept count. Transforms, delays and couplings therefore see the selected network only: a normalisation by the largest weight is taken over the kept pairs. A layer or argument read through used: is read for the selected nodes: with reconcile: by_label it is aligned to them by name, without it the array has to come in the selected node count. A layer a producer: builds is not cut and has to come in the selected node count, and a per-node parameter read by source and measure from a network with more nodes is aligned to the kept nodes by label.

A warning names the network and both counts whenever a selection drops nodes from what the network carries; read back beside arrays that are already the selected ones, it drops none and gives none.

Refused, naming what is wrong: a label the network does not carry, keep beside drop, a label listed twice, a selection that leaves no node, a node declared by label that the selection drops, and a network that carries a mesh or a route to another network, whose arrays the selection cannot restrict.

URI: tvbo:NodeSelection

 classDiagram
    class NodeSelection
    click NodeSelection href "./NodeSelection.html"
      NodeSelection : applied
        
          
    
        
        
        NodeSelection --> "0..1" Boolean : applied
        click Boolean href "../http://www.w3.org/2001/XMLSchema#boolean.html"
    

        
      NodeSelection : drop
        
          
    
        
        
        NodeSelection --> "*" String : drop
        click String href "../http://www.w3.org/2001/XMLSchema#string.html"
    

        
      NodeSelection : keep
        
          
    
        
        
        NodeSelection --> "*" String : keep
        click String href "../http://www.w3.org/2001/XMLSchema#string.html"
    

        
      

Class Properties

Property Value
Class URI tvbo:NodeSelection

Slots

Name Cardinality and Range Description Inheritance
keep *
xsd:string
Labels of the nodes that stay; every other node is dropped direct
drop *
xsd:string
Labels of the nodes that are dropped; every other node stays direct
applied 0..1
xsd:boolean
Whether the nodes listed beside this record are the selected ones direct

Usages

used by used in type used
Network node_selection range NodeSelection

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/tvbo

Mappings

Mapping Type Mapped Value
self tvbo:NodeSelection
native tvbo:NodeSelection

LinkML Source

Direct

name: NodeSelection
description: 'The nodes of a network to keep or to drop, by label; exactly one of
  ``keep`` and ``drop`` is stated. A label is matched as written or through the aliases
  a ``by_label`` reconciliation uses (a node''s ``alternateName`` and the atlas terminology).
  A selection is a set: the kept nodes stay in the order the network carries them,
  whatever order ``keep`` lists them in, and are renumbered from 0.

  The selection is applied when the network is resolved, after its source has delivered
  nodes and arrays and before anything else reads them. Every stored layer, edge-parameter
  matrix and per-node array (``nodes/<name>``) is restricted to the kept nodes, an
  edge listed between two nodes goes with either of its nodes, and ``number_of_nodes``
  is the kept count. Transforms, delays and couplings therefore see the selected network
  only: a normalisation by the largest weight is taken over the kept pairs. A layer
  or argument read through ``used:`` is read for the selected nodes: with ``reconcile:
  by_label`` it is aligned to them by name, without it the array has to come in the
  selected node count. A layer a ``producer:`` builds is not cut and has to come in
  the selected node count, and a per-node parameter read by ``source`` and ``measure``
  from a network with more nodes is aligned to the kept nodes by label.

  A warning names the network and both counts whenever a selection drops nodes from
  what the network carries; read back beside arrays that are already the selected
  ones, it drops none and gives none.

  Refused, naming what is wrong: a label the network does not carry, ``keep`` beside
  ``drop``, a label listed twice, a selection that leaves no node, a node declared
  by label that the selection drops, and a network that carries a mesh or a route
  to another network, whose arrays the selection cannot restrict.'
from_schema: https://w3id.org/tvbo
attributes:
  keep:
    name: keep
    description: Labels of the nodes that stay; every other node is dropped.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    domain_of:
    - NodeSelection
    range: string
    multivalued: true
  drop:
    name: drop
    description: Labels of the nodes that are dropped; every other node stays.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    domain_of:
    - NodeSelection
    range: string
    multivalued: true
  applied:
    name: applied
    description: Whether the nodes listed beside this record are the selected ones.
      Set by tvbo when it applies the selection, so a resolved network that is saved,
      frozen into a kit or dumped keeps the selection as the record of how it was
      derived. Read back beside arrays that are already the selected ones (a save,
      a kit) it selects nothing again; beside a source that still delivers the dropped
      nodes (a dumped record naming the unselected companion, a curated network or
      an atlas) it is applied again by label, and the nodes it keeps have to be the
      ones the record lists, or the record is refused as written from a source that
      has changed since. A generated graph is generated at the record's count, which
      is the kept one, so a dumped selection of one is refused; ``save`` writes its
      arrays. A recipe leaves it unset; one that sets it beside a node list the selection
      would still cut is refused.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    domain_of:
    - NodeSelection
    range: boolean
class_uri: tvbo:NodeSelection

Induced

name: NodeSelection
description: 'The nodes of a network to keep or to drop, by label; exactly one of
  ``keep`` and ``drop`` is stated. A label is matched as written or through the aliases
  a ``by_label`` reconciliation uses (a node''s ``alternateName`` and the atlas terminology).
  A selection is a set: the kept nodes stay in the order the network carries them,
  whatever order ``keep`` lists them in, and are renumbered from 0.

  The selection is applied when the network is resolved, after its source has delivered
  nodes and arrays and before anything else reads them. Every stored layer, edge-parameter
  matrix and per-node array (``nodes/<name>``) is restricted to the kept nodes, an
  edge listed between two nodes goes with either of its nodes, and ``number_of_nodes``
  is the kept count. Transforms, delays and couplings therefore see the selected network
  only: a normalisation by the largest weight is taken over the kept pairs. A layer
  or argument read through ``used:`` is read for the selected nodes: with ``reconcile:
  by_label`` it is aligned to them by name, without it the array has to come in the
  selected node count. A layer a ``producer:`` builds is not cut and has to come in
  the selected node count, and a per-node parameter read by ``source`` and ``measure``
  from a network with more nodes is aligned to the kept nodes by label.

  A warning names the network and both counts whenever a selection drops nodes from
  what the network carries; read back beside arrays that are already the selected
  ones, it drops none and gives none.

  Refused, naming what is wrong: a label the network does not carry, ``keep`` beside
  ``drop``, a label listed twice, a selection that leaves no node, a node declared
  by label that the selection drops, and a network that carries a mesh or a route
  to another network, whose arrays the selection cannot restrict.'
from_schema: https://w3id.org/tvbo
attributes:
  keep:
    name: keep
    description: Labels of the nodes that stay; every other node is dropped.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    owner: NodeSelection
    domain_of:
    - NodeSelection
    range: string
    multivalued: true
  drop:
    name: drop
    description: Labels of the nodes that are dropped; every other node stays.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    owner: NodeSelection
    domain_of:
    - NodeSelection
    range: string
    multivalued: true
  applied:
    name: applied
    description: Whether the nodes listed beside this record are the selected ones.
      Set by tvbo when it applies the selection, so a resolved network that is saved,
      frozen into a kit or dumped keeps the selection as the record of how it was
      derived. Read back beside arrays that are already the selected ones (a save,
      a kit) it selects nothing again; beside a source that still delivers the dropped
      nodes (a dumped record naming the unselected companion, a curated network or
      an atlas) it is applied again by label, and the nodes it keeps have to be the
      ones the record lists, or the record is refused as written from a source that
      has changed since. A generated graph is generated at the record's count, which
      is the kept one, so a dumped selection of one is refused; ``save`` writes its
      arrays. A recipe leaves it unset; one that sets it beside a node list the selection
      would still cut is refused.
    from_schema: https://w3id.org/tvbo
    rank: 1000
    owner: NodeSelection
    domain_of:
    - NodeSelection
    range: boolean
class_uri: tvbo:NodeSelection