Skip to content

Commit

Permalink
Merge pull request #68 from djarecka/new_library_gen
Browse files Browse the repository at this point in the history
updates to the google sheet and the converter
  • Loading branch information
djarecka authored Aug 21, 2024
2 parents 1e4fcab + 9e32587 commit b9970ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# generating jsonld context and removing generation_date field to avoid constant updates
gen-jsonld-context ${file} > ../jsonld-context-autogen/${name}.context.jsonld;
sed -i "/generation_date/d" ../jsonld-context-autogen/${name}.context.jsonld;
gen-pydantic --pydantic-version 2 ${file} > ../models_py-autogen/${name}.py;
gen-pydantic ${file} > ../models_py-autogen/${name}.py;
if [ ${name} = "library_generation" ] || [ ${name} = "genome_annotation" ]; then
echo "Creating and Fixing diagrams for $name";
python ../utils/fix_and_create_erdiagram.py
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate_yaml_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: |
python -m pip install .[test]
pip install git+https://github.com/brain-bican/bkbit.git
pip install git+https://github.com/linkml/schemasheets.git@649af7e1
- name: Other installations
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_other_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# generating jsonld context
gen-jsonld-context ${file};
# generating pydantic schema
gen-pydantic --pydantic-version 2 ${file};
gen-pydantic ${file};
if [ ${name} != "library_generation" ] && [ ${name} != "genome_annotation" ]; then
gen-erdiagram ${file};
fi
Expand Down
6 changes: 5 additions & 1 deletion linkml-schema/source_library_generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

- Metadata from [Google Sheet](https://docs.google.com/spreadsheets/d/11OcQz1Vk3ofny3Ql7wN-XlHkZwub-hojt-fO094SxiI/edit?usp=sharing)
- All the sheets will be saved as tsv files in `gsheet_output`
- Current Google Sheet version: `bk_workshop_mit24`
- Current Google Sheet version: `aug20_2024`
- The generated LinkML schema will be saved in `bkbit/models/library_generation_model.yaml`
- Additional information:
- currently using `no-inlined` due to some issues with pydantic generation
- currently using an older version of schemasheets due to issues with newer versions

0 comments on commit b9970ac

Please sign in to comment.