Skip to content

Commit

Permalink
Add species information to locus fields (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
bussec authored Oct 16, 2023
1 parent a98d307 commit e6712a1
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 6 deletions.
28 changes: 25 additions & 3 deletions lang/R/inst/extdata/airr-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ GenotypeSet:
items:
$ref: '#/Genotype'

# This enumerates the alleles and gene deletions inferred in a single subject. Included alleles may either be listed by reference to a GermlineSet, or
# This enumerates the alleles and gene deletions inferred in a single subject. Included alleles may either be listed by reference to a GermlineSet, or
# listed as 'undocumented', in which case the inferred sequence is provided

# Genotype of adaptive immune receptors
Expand Down Expand Up @@ -3353,6 +3353,28 @@ Rearrangement:
adc-query-support: true
name: Gene locus
format: controlled_vocabulary
locus_species:
$ref: '#/Ontology'
description: >
Binomial designation of the species from which the locus originates. Typically, this value should be
identical to `organism`, if which case it SHOULD NOT be set explicitly. However, there are valid
experimental setups in which the two might differ, e.g. transgenic animal models. If set, this key
will overwrite the `organism` information for all lower layers of the schema.
title: Locus species
example:
id: NCBITAXON:9606
label: Homo sapiens
x-airr:
miairr: defined
nullable: true
adc-query-support: true
name: Locus species
format: ontology
ontology:
draft: false
top_node:
id: NCBITAXON:7776
label: Gnathostomata
v_call:
type: string
description: >
Expand Down Expand Up @@ -4346,8 +4368,8 @@ Cell:
name: Virtual pairing

# The CellExpression object acts as a container to hold a single expression level measurement from
# an experiment. Expression data is associated with a cell_id and the related repertoire_id and
# data_processing_id as cell_id is not guaranteed to be unique outside the data processing for
# an experiment. Expression data is associated with a cell_id and the related repertoire_id and
# data_processing_id as cell_id is not guaranteed to be unique outside the data processing for
# a single repertoire.
CellExpression:
type: object
Expand Down
28 changes: 25 additions & 3 deletions lang/python/airr/specs/airr-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ GenotypeSet:
items:
$ref: '#/Genotype'

# This enumerates the alleles and gene deletions inferred in a single subject. Included alleles may either be listed by reference to a GermlineSet, or
# This enumerates the alleles and gene deletions inferred in a single subject. Included alleles may either be listed by reference to a GermlineSet, or
# listed as 'undocumented', in which case the inferred sequence is provided

# Genotype of adaptive immune receptors
Expand Down Expand Up @@ -3353,6 +3353,28 @@ Rearrangement:
adc-query-support: true
name: Gene locus
format: controlled_vocabulary
locus_species:
$ref: '#/Ontology'
description: >
Binomial designation of the species from which the locus originates. Typically, this value should be
identical to `organism`, if which case it SHOULD NOT be set explicitly. However, there are valid
experimental setups in which the two might differ, e.g. transgenic animal models. If set, this key
will overwrite the `organism` information for all lower layers of the schema.
title: Locus species
example:
id: NCBITAXON:9606
label: Homo sapiens
x-airr:
miairr: defined
nullable: true
adc-query-support: true
name: Locus species
format: ontology
ontology:
draft: false
top_node:
id: NCBITAXON:7776
label: Gnathostomata
v_call:
type: string
description: >
Expand Down Expand Up @@ -4346,8 +4368,8 @@ Cell:
name: Virtual pairing

# The CellExpression object acts as a container to hold a single expression level measurement from
# an experiment. Expression data is associated with a cell_id and the related repertoire_id and
# data_processing_id as cell_id is not guaranteed to be unique outside the data processing for
# an experiment. Expression data is associated with a cell_id and the related repertoire_id and
# data_processing_id as cell_id is not guaranteed to be unique outside the data processing for
# a single repertoire.
CellExpression:
type: object
Expand Down
22 changes: 22 additions & 0 deletions specs/airr-schema-openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3483,6 +3483,28 @@ Rearrangement:
adc-query-support: true
name: Gene locus
format: controlled_vocabulary
locus_species:
$ref: '#/Ontology'
nullable: true
description: >
Binomial designation of the species from which the locus originates. Typically, this value should be
identical to `organism`, if which case it SHOULD NOT be set explicitly. However, there are valid
experimental setups in which the two might differ, e.g. transgenic animal models. If set, this key
will overwrite the `organism` information for all lower layers of the schema.
title: Locus species
example:
id: NCBITAXON:9606
label: Homo sapiens
x-airr:
miairr: defined
adc-query-support: true
name: Locus species
format: ontology
ontology:
draft: false
top_node:
id: NCBITAXON:7776
label: Gnathostomata
v_call:
type: string
nullable: true
Expand Down
22 changes: 22 additions & 0 deletions specs/airr-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3353,6 +3353,28 @@ Rearrangement:
adc-query-support: true
name: Gene locus
format: controlled_vocabulary
locus_species:
$ref: '#/Ontology'
description: >
Binomial designation of the species from which the locus originates. Typically, this value should be
identical to `organism`, if which case it SHOULD NOT be set explicitly. However, there are valid
experimental setups in which the two might differ, e.g. transgenic animal models. If set, this key
will overwrite the `organism` information for all lower layers of the schema.
title: Locus species
example:
id: NCBITAXON:9606
label: Homo sapiens
x-airr:
miairr: defined
nullable: true
adc-query-support: true
name: Locus species
format: ontology
ontology:
draft: false
top_node:
id: NCBITAXON:7776
label: Gnathostomata
v_call:
type: string
description: >
Expand Down

0 comments on commit e6712a1

Please sign in to comment.