Skip to content

Instantly share code, notes, and snippets.

@cafarm

cafarm/Subject.m Secret

Created May 26, 2016 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cafarm/b334cd0cf11ded942a12a1f8de8796f7 to your computer and use it in GitHub Desktop.
Save cafarm/b334cd0cf11ded942a12a1f8de8796f7 to your computer and use it in GitHub Desktop.
classdef Subject < symphonyui.core.persistent.descriptions.SourceDescription
methods
function obj = Subject()
import symphonyui.core.*;
obj.addProperty('id', '', ...
'description', 'ID of animal/person (lab convention)');
obj.addProperty('description', '', ...
'description', 'Description of subject and where subject came from (eg, breeder, if animal)');
obj.addProperty('species', '', ...
'description', 'Species');
obj.addProperty('genotype', '', ...
'description', 'Genetic strain');
obj.addProperty('sex', '', ...
'type', PropertyType('char', 'row', {'', 'male', 'female', 'hermaphrodite'}));
obj.addProperty('age', '', ...
'description', 'Age of person, animal, embryo');
obj.addProperty('weight', '', ...
'description', 'Weight at time of experiment, at time of surgery, and at other important times');
obj.addAllowableParentType([]);
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment