Skip to content

Commit 168a4fa

Browse files
committed
Switching to use Allen Institute Repo files #181
1 parent 985f56e commit 168a4fa

16 files changed

+306
-988
lines changed

src/dendrograms/MOp_taxonomies_ontology/All Descriptions_Mouse.json

Lines changed: 0 additions & 692 deletions
This file was deleted.

src/dendrograms/MOp_taxonomies_ontology/CCN201912131_landingpage_dataset_info.csv

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/dendrograms/MOp_taxonomies_ontology/CCN201912132_landingpage_dataset_info.csv

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/dendrograms/MOp_taxonomies_ontology/CCN202002013_landingpage_dataset_info.csv

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/dendrograms/MOp_taxonomies_ontology/CS1908210_landingpage_dataset_info.csv

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/dendrograms/MOp_taxonomies_ontology/Taxonomy_Info_Panel.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Centralized Data Folder
2+
3+
Content of this folder is automatically retrieved from the [shared repository](https://github.com/AllenInstitute/MOp_taxonomies_ontology) to maintain a single source of truth among project participants.
4+
As a part of `dendrograms/Makefile`, shared repo is retrieved during the pipeline build.
5+
6+
Please don't commit the shared repository folder, it will be deleted and cloned on build anyway.
7+

src/ontology/bdso-edit.owl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Declaration(AnnotationProperty(dcterms:title))
5353
Declaration(AnnotationProperty(dcterms:provenance))
5454
Declaration(AnnotationProperty(dcterms:description))
5555
Declaration(AnnotationProperty(dcterms:subject))
56+
Declaration(AnnotationProperty(dcterms:relation))
5657
############################
5758
# Annotation Properties
5859
############################

src/scripts/template_generation_tools.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,10 @@ def generate_taxonomies_template(centralized_data_folder, output_filepath):
404404
'Primary Citation': "A oboInOwl:hasDbXref",
405405
'Title': "A dcterms:title",
406406
'Description': "A rdfs:comment",
407-
'Attribution': "A rdfs:provenance",
408-
'SubDescription': "A rdfs:description",
409-
'Anatomy': "A rdfs:subject"
407+
'Attribution': "A dcterms:provenance",
408+
'SubDescription': "A dcterms:description",
409+
'Anatomy': "A dcterms:subject",
410+
'Anatomy_image': "A dcterms:relation"
410411
}
411412
dl = [robot_template_seed]
412413

@@ -430,6 +431,7 @@ def add_taxonomy_info_panel_properties(centralized_data_folder, d, taxon_config)
430431
expected_folder_name = get_centralized_taxonomy_folder(taxon_config)
431432
taxonomy_metadata_path = TAXONOMY_INFO_CSV.format(centralized_data_folder, expected_folder_name,
432433
taxon_config["Taxonomy_id"])
434+
print(taxonomy_metadata_path)
433435
if os.path.isfile(taxonomy_metadata_path):
434436
headers, taxonomies_metadata = read_csv_to_dict(taxonomy_metadata_path)
435437
taxonomy_metadata = taxonomies_metadata[taxon_config["Taxonomy_id"]]
@@ -444,6 +446,7 @@ def add_taxonomy_info_panel_properties(centralized_data_folder, d, taxon_config)
444446
d['Attribution'] = taxonomy_metadata["attribution"]
445447
d['SubDescription'] = taxonomy_metadata["subDescription"]
446448
d['Anatomy'] = taxonomy_metadata["Anatomy"]
449+
d['Anatomy_image'] = taxonomy_metadata["Anatomy_image"]
447450
else:
448451
raise ValueError("Couldn't find taxonomy '{}' landingpage dataset info file at: '{}'"
449452
.format(taxon_config["Taxonomy_id"], taxonomy_metadata_path))

0 commit comments

Comments
 (0)