Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Species part table to Subject #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading