Class: CohortRule

Admits a cohort’s members by a measure of a phenotype table: the candidates are cut into n_groups groups along measure and the cohort holds the group group. The candidates are the members of the cohort of names, else the subjects the dataset lists, else every subject of the table. Each candidate needs one row in the table. A candidate without a row, or whose value is missing or not finite, is treated as missing says, before any group is formed. The members come in the candidates’ order, not in the order of the measure. A group no candidate falls in is an error, as a cohort without members is.

URI: tvbo_study:class/CohortRule

 classDiagram
    class CohortRule
    click CohortRule href "./CohortRule.html"
      CohortRule : group
        
          
    
        
        
        CohortRule --> "1" Integer : group
        click Integer href "../http://www.w3.org/2001/XMLSchema#integer.html"
    

        
      CohortRule : grouping
        
          
    
        
        
        CohortRule --> "1" CohortGrouping : grouping
        click CohortGrouping href "../../enums/CohortGrouping.html"
    

        
      CohortRule : measure
        
          
    
        
        
        CohortRule --> "1" String : measure
        click String href "../http://www.w3.org/2001/XMLSchema#string.html"
    

        
      CohortRule : missing
        
          
    
        
        
        CohortRule --> "0..1" MissingValuePolicy : missing
        click MissingValuePolicy href "../../enums/MissingValuePolicy.html"
    

        
      CohortRule : n_groups
        
          
    
        
        
        CohortRule --> "1" Integer : n_groups
        click Integer href "../http://www.w3.org/2001/XMLSchema#integer.html"
    

        
      CohortRule : of
        
          
    
        
        
        CohortRule --> "0..1" String : of
        click String href "../http://www.w3.org/2001/XMLSchema#string.html"
    

        
      CohortRule : phenotype_file
        
          
    
        
        
        CohortRule --> "0..1" String : phenotype_file
        click String href "../http://www.w3.org/2001/XMLSchema#string.html"
    

        
      

Slots

Name Cardinality and Range Description Inheritance
measure 1
xsd:string
Name of the measure the candidates are split by: a measure of a Phenotype… direct
phenotype_file 0..1
xsd:string
Path of the phenotype table this rule reads, where it is not the dataset’s ow… direct
grouping 1
CohortGrouping
How the candidates are cut into groups direct
n_groups 1
xsd:integer
Number of groups the candidates are cut into direct
group 1
xsd:integer
Which group this cohort holds, counted from 1 for the lowest values of the me… direct
of 0..1
xsd:string
cohort_id of another cohort of the same dataset whose members are the can… direct
missing 0..1
MissingValuePolicy
What happens to a candidate without a finite value of the measure direct

Usages

used by used in type used
Cohort rule range CohortRule

Identifier and Mapping Information

Schema Source

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

Mappings

Mapping Type Mapped Value
self tvbo_study:CohortRule
native tvbo_study:CohortRule

LinkML Source

Direct

name: CohortRule
description: 'Admits a cohort''s members by a measure of a phenotype table: the candidates
  are cut into ``n_groups`` groups along ``measure`` and the cohort holds the group
  ``group``. The candidates are the members of the cohort ``of`` names, else the subjects
  the dataset lists, else every subject of the table. Each candidate needs one row
  in the table. A candidate without a row, or whose value is missing or not finite,
  is treated as ``missing`` says, before any group is formed. The members come in
  the candidates'' order, not in the order of the measure. A group no candidate falls
  in is an error, as a cohort without members is.'
from_schema: https://w3id.org/tvbo/study
attributes:
  measure:
    name: measure
    description: 'Name of the measure the candidates are split by: a measure of a
      ``Phenotype`` sidecar or a column of a tabular file.'
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    domain_of:
    - CohortRule
    - Parameter
    range: string
    required: true
  phenotype_file:
    name: phenotype_file
    description: Path of the phenotype table this rule reads, where it is not the
      dataset's own (``Dataset.phenotype_file``). Resolved as ``Cohort.members_file``
      is.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    domain_of:
    - CohortRule
    - Dataset
    range: string
  grouping:
    name: grouping
    description: How the candidates are cut into groups.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    domain_of:
    - CohortRule
    range: CohortGrouping
    required: true
  n_groups:
    name: n_groups
    description: Number of groups the candidates are cut into.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    domain_of:
    - CohortRule
    range: integer
    required: true
    minimum_value: 1
  group:
    name: group
    description: Which group this cohort holds, counted from 1 for the lowest values
      of the measure to ``n_groups`` for the highest.
    from_schema: https://w3id.org/tvbo/study
    domain_of:
    - Subject
    - CohortRule
    range: integer
    required: true
    minimum_value: 1
  of:
    name: of
    description: '``cohort_id`` of another cohort of the same dataset whose members
      are the candidates, so a split is taken inside a cohort. That cohort may itself
      be typed, read from a file or admitted by a rule; a chain that leads back to
      this cohort is an error.'
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    domain_of:
    - CohortRule
    - ProcedureStep
    range: string
  missing:
    name: missing
    description: What happens to a candidate without a finite value of the measure.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    ifabsent: string(refuse)
    domain_of:
    - CohortRule
    range: MissingValuePolicy

Induced

name: CohortRule
description: 'Admits a cohort''s members by a measure of a phenotype table: the candidates
  are cut into ``n_groups`` groups along ``measure`` and the cohort holds the group
  ``group``. The candidates are the members of the cohort ``of`` names, else the subjects
  the dataset lists, else every subject of the table. Each candidate needs one row
  in the table. A candidate without a row, or whose value is missing or not finite,
  is treated as ``missing`` says, before any group is formed. The members come in
  the candidates'' order, not in the order of the measure. A group no candidate falls
  in is an error, as a cohort without members is.'
from_schema: https://w3id.org/tvbo/study
attributes:
  measure:
    name: measure
    description: 'Name of the measure the candidates are split by: a measure of a
      ``Phenotype`` sidecar or a column of a tabular file.'
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    owner: CohortRule
    domain_of:
    - CohortRule
    - Parameter
    range: string
    required: true
  phenotype_file:
    name: phenotype_file
    description: Path of the phenotype table this rule reads, where it is not the
      dataset's own (``Dataset.phenotype_file``). Resolved as ``Cohort.members_file``
      is.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    owner: CohortRule
    domain_of:
    - CohortRule
    - Dataset
    range: string
  grouping:
    name: grouping
    description: How the candidates are cut into groups.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    owner: CohortRule
    domain_of:
    - CohortRule
    range: CohortGrouping
    required: true
  n_groups:
    name: n_groups
    description: Number of groups the candidates are cut into.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    owner: CohortRule
    domain_of:
    - CohortRule
    range: integer
    required: true
    minimum_value: 1
  group:
    name: group
    description: Which group this cohort holds, counted from 1 for the lowest values
      of the measure to ``n_groups`` for the highest.
    from_schema: https://w3id.org/tvbo/study
    owner: CohortRule
    domain_of:
    - Subject
    - CohortRule
    range: integer
    required: true
    minimum_value: 1
  of:
    name: of
    description: '``cohort_id`` of another cohort of the same dataset whose members
      are the candidates, so a split is taken inside a cohort. That cohort may itself
      be typed, read from a file or admitted by a rule; a chain that leads back to
      this cohort is an error.'
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    owner: CohortRule
    domain_of:
    - CohortRule
    - ProcedureStep
    range: string
  missing:
    name: missing
    description: What happens to a candidate without a finite value of the measure.
    from_schema: https://w3id.org/tvbo/study
    rank: 1000
    ifabsent: string(refuse)
    owner: CohortRule
    domain_of:
    - CohortRule
    range: MissingValuePolicy