Skip to content

Commit

Permalink
Add Species part table to Subject
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Sep 28, 2023
1 parent fe24d09 commit f9e61b2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.2.0] - 2023-09-28

+ Add `Species` part table to `subject.py`

## [0.1.8] - 2023-06-20

+ Update - GitHub Actions workflows
Expand Down Expand Up @@ -58,6 +62,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
+ Add - `subject` schema
+ Add - `genotyping` schema

[0.2.0]: https://github.com/datajoint/element-animal/releases/tag/0.2.0
[0.1.8]: https://github.com/datajoint/element-animal/releases/tag/0.1.8
[0.1.7]: https://github.com/datajoint/element-animal/releases/tag/0.1.7
[0.1.6]: https://github.com/datajoint/element-animal/releases/tag/0.1.6
Expand Down
14 changes: 14 additions & 0 deletions element_animal/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,20 @@ class Subject(dj.Manual):
subject_description='' : varchar(1024)
"""

class Species(dj.Part):
"""Subject species as Latin binomial or NCBI taxonomic identifier.
Attributes:
Subject (foreign key): Primary key from Subject.
species (str): Subject species as Latin binomial or NCBI taxonomic identifier.
"""

definition = """
-> master
---
species : varchar(32)
"""

class Protocol(dj.Part):
"""Protocol under which this subject animal is used.
Expand Down
2 changes: 1 addition & 1 deletion element_animal/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Package metadata."""
__version__ = "0.1.8"
__version__ = "0.2.0"

0 comments on commit f9e61b2

Please sign in to comment.