Skip to content

Commit b3f5416

Browse files
authored
Merge pull request #249 from obophenotype/marker_set
Marker set
2 parents eceeb86 + 1037df5 commit b3f5416

36 files changed

+3539
-2906
lines changed

src/dendrograms/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ TEMPLATE_CLASS_CURATION_FILES = $(patsubst %, ../patterns/data/default/%_class_c
77
TEMPLATE_CLASS_HOMOLOGOUS_FILES = $(patsubst %, ../patterns/data/default/%_class_homologous.tsv, $(JOBS))
88
APP_SPECIFIC_TEMPLATE_FILES = $(patsubst %, ../templates/%_app_specific.tsv, $(JOBS))
99
DATASET_TEMPLATE_FILES = $(patsubst %, ../templates/%_dataset.tsv, $(JOBS))
10+
MARKER_SET_TEMPLATE_FILES = $(patsubst %, ../patterns/data/default/%_marker_set.tsv, $(JOBS))
1011
TAXONOMY_TEMPLATE_FILE = ../templates/Taxonomies.tsv
1112

1213

1314

14-
all: $(TEMPLATE_FILES) $(TEMPLATE_CLASS_BASE_FILES) $(TEMPLATE_CLASS_CURATION_FILES) $(MARKER_DENORMALIZED_FILES) $(TAXONOMY_TEMPLATE_FILE) $(APP_SPECIFIC_TEMPLATE_FILES) $(TEMPLATE_CLASS_HOMOLOGOUS_FILES) $(DATASET_TEMPLATE_FILES)
15+
all: $(TEMPLATE_FILES) $(TEMPLATE_CLASS_BASE_FILES) $(TEMPLATE_CLASS_CURATION_FILES) $(MARKER_DENORMALIZED_FILES) $(TAXONOMY_TEMPLATE_FILE) $(APP_SPECIFIC_TEMPLATE_FILES) $(TEMPLATE_CLASS_HOMOLOGOUS_FILES) $(DATASET_TEMPLATE_FILES) $(MARKER_SET_TEMPLATE_FILES)
1516

1617
../templates/%.tsv: %.json nomenclature_table_%.csv
1718
if [ $< = CS1908210.json ]; then python ../scripts/template_runner.py generator -i $< -o $@ ;\
@@ -40,6 +41,10 @@ all: $(TEMPLATE_FILES) $(TEMPLATE_CLASS_BASE_FILES) $(TEMPLATE_CLASS_CURATION_FI
4041
../templates/%_dataset.tsv: MOp_taxonomies_ontology/%_landingpage_dataset_info.csv
4142
python ../scripts/template_runner.py generator -ds -i $< -o $@
4243

44+
../patterns/data/default/%_marker_set.tsv: %.json nomenclature_table_%.csv
45+
if [ $< = CS1908210.json ]; then python ../scripts/template_runner.py generator -ms -i $< -o $@ ;\
46+
else python ../scripts/template_runner.py generator -ms -i $(word 2, $^) -o $@ ; fi
47+
4348
../templates/Taxonomies.tsv: MOp_taxonomies_ontology/Taxonomy_Info_Panel.csv
4449
python ../scripts/template_runner.py generator -tx -i $< -o $@
4550

src/ontology/bdso.Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ ONTBASE= $(URIBASE)/pcl
1212

1313
TSV_CLASS_FILES = $(patsubst %, ../patterns/data/default/%_class.tsv, $(JOBS))
1414
TSV_CLASS_HOMOLOGOUS_FILES = $(patsubst %, ../patterns/data/default/%_class_homologous.tsv, $(JOBS))
15+
TSV_MARKER_SET_FILES = $(patsubst %, ../patterns/data/default/%_marker_set.tsv, $(JOBS))
1516

1617
OWL_FILES = $(patsubst %, components/%.owl, $(JOBS))
1718
OWL_CLASS_FILES = $(patsubst %, components/%_class.owl, $(JOBS))
1819
OWL_CLASS_HOMOLOGOUS_FILES = $(patsubst %, components/%_class_homologous.owl, $(JOBS))
20+
OWL_MARKER_SET_FILES = $(patsubst %, components/%_marker_set.owl, $(JOBS))
1921
GENE_FILES = $(patsubst %, mirror/%.owl, $(GENE_LIST))
2022
OWL_APP_SPECIFIC_FILES = $(patsubst %, components/%_app_specific.owl, $(JOBS))
2123
OWL_DATASET_FILES = $(patsubst %, components/%_dataset.owl, $(JOBS))
@@ -62,6 +64,9 @@ $(PATTERNDIR)/data/default/%_class_curation.txt: $(PATTERNDIR)/data/default/%_cl
6264
$(PATTERNDIR)/data/default/%_class_homologous.txt: $(PATTERNDIR)/data/default/%_class_homologous.tsv $(TSV_CLASS_FILES) .FORCE
6365
if [ $(PAT) = true ]; then $(DOSDPT) terms --infile=$< --template=$(PATTERNDIR)/dosdp-patterns/taxonomy_class_homologous.yaml --obo-prefixes=true --prefixes=template_prefixes.yaml --outfile=$@; fi
6466

67+
$(PATTERNDIR)/data/default/%_marker_set.txt: $(PATTERNDIR)/data/default/%_marker_set.tsv $(TSV_MARKER_SET_FILES) .FORCE
68+
if [ $(PAT) = true ]; then $(DOSDPT) terms --infile=$< --template=$(PATTERNDIR)/dosdp-patterns/taxonomy_marker_set.yaml --obo-prefixes=true --prefixes=template_prefixes.yaml --outfile=$@; fi
69+
6570
$(PATTERNDIR)/data/default/Protein2GeneExpression.txt: $(PATTERNDIR)/data/default/Protein2GeneExpression.tsv .FORCE
6671
if [ $(PAT) = true ]; then $(DOSDPT) terms --infile=$< --template=$(PATTERNDIR)/dosdp-patterns/Protein2GeneExpression.yaml --obo-prefixes=true --prefixes=template_prefixes.yaml --outfile=$@; fi
6772

@@ -93,7 +98,7 @@ mirror/ensmusg.owl: ../templates/ensmusg.tsv .FORCE
9398
.PRECIOUS: imports/simple_marmoset_import.owl
9499

95100
# merge all templates except application specific ones
96-
components/all_templates.owl: $(OWL_FILES) $(OWL_CLASS_FILES) $(OWL_MIN_MARKER_FILES) $(OWL_TAXONOMY_FILE) $(OWL_PROTEIN2GENE_FILE) $(OWL_APP_SPECIFIC_FILES) $(PCL_LEGACY_FILE) $(OWL_CLASS_HOMOLOGOUS_FILES) $(OWL_DATASET_FILES)
101+
components/all_templates.owl: $(OWL_FILES) $(OWL_CLASS_FILES) $(OWL_MIN_MARKER_FILES) $(OWL_TAXONOMY_FILE) $(OWL_PROTEIN2GENE_FILE) $(OWL_APP_SPECIFIC_FILES) $(PCL_LEGACY_FILE) $(OWL_CLASS_HOMOLOGOUS_FILES) $(OWL_DATASET_FILES) $(OWL_MARKER_SET_FILES)
97102
$(ROBOT) merge $(patsubst %, -i %, $(filter-out $(OWL_APP_SPECIFIC_FILES), $^)) \
98103
--collapse-import-closure false \
99104
annotate --ontology-iri ${BDS_BASE}$@ \
@@ -118,6 +123,11 @@ components/%_class_homologous.owl: $(PATTERNDIR)/data/default/%_class_homologous
118123
--infile=$< --template=$(PATTERNDIR)/dosdp-patterns/taxonomy_class_homologous.yaml \
119124
--ontology=$(SRC) --obo-prefixes=true --outfile=$@
120125

126+
components/%_marker_set.owl: $(PATTERNDIR)/data/default/%_marker_set.tsv $(SRC) $(PATTERNDIR)/dosdp-patterns/taxonomy_marker_set.yaml $(SRC) all_imports .FORCE
127+
$(DOSDPT) generate --catalog=catalog-v001.xml --prefixes=template_prefixes.yaml \
128+
--infile=$< --template=$(PATTERNDIR)/dosdp-patterns/taxonomy_marker_set.yaml \
129+
--ontology=$(SRC) --obo-prefixes=true --outfile=$@
130+
121131
components/taxonomies.owl: ../templates/Taxonomies.tsv $(SRC)
122132
$(ROBOT) template --input $(SRC) --template $< \
123133
--add-prefixes template_prefixes.json \

src/ontology/helper.owl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/RO_0002215> "capa
2727

2828
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/RO_0002292> "expresses")
2929

30+
# Object Property: <http://purl.obolibrary.org/obo/PCL_0010062> (has_characterizing_marker_set)
31+
32+
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/PCL_0010062> "has_characterizing_marker_set")
33+
3034
)

0 commit comments

Comments
 (0)