project.py
activate(schema_name, *, create_schema=True, create_tables=True, linking_module=None)
¶
Activate this schema
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema_name |
str
|
schema name on the database server to activate the Element |
required |
create_schema |
bool
|
when True (default), create schema in the database if it does not yet exist. |
True
|
create_tables |
bool
|
when True (default), create schema tables in the database if they do not yet exist. |
True
|
linking_module |
str
|
A string containing the module name or module containing the required dependencies to activate the schema. |
None
|
Dependencies:
Upstream tables
Lab: table defining general lab information User: table defining user/personnel/experimenter associated with Project. Protocol: table defining a protocol (e.g., protocol number and title)
Source code in element_lab/project.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
Project
¶
Bases: dj.Manual
Top-level grouping of studies and experiments to investigate a scientific question
Attributes:
| Name | Type | Description |
|---|---|---|
project |
varchar(24)
|
Abbreviated project name |
project_title |
varchar(1024)
|
Full project title and/or description |
project_start_date |
date
|
The start of the project |
project_end_date |
date
|
The end date of the project |
project_comment |
varchar(1024)
|
additional notes on the project |
Source code in element_lab/project.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
ProjectPersonnel
¶
Bases: dj.Manual
List of individuals involved in a project
Attributes:
| Name | Type | Description |
|---|---|---|
Project |
foreign key
|
Project key |
User |
foreign key
|
User key |
Source code in element_lab/project.py
74 75 76 77 78 79 80 81 82 83 84 85 86 | |
ProjectKeywords
¶
Bases: dj.Manual
Project keywords. If the dataset is exported, this metadata is saved within the NWB file.
Attributes:
| Name | Type | Description |
|---|---|---|
Project |
foreign key
|
Project key |
keyword |
varchar(32)
|
Keywords describing the project |
Source code in element_lab/project.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
ProjectPublication
¶
Bases: dj.Manual
Project's resulting publications
Attributes:
| Name | Type | Description |
|---|---|---|
Project |
foreign key
|
Project key |
publication |
varchar(255)
|
Publication name or citation |
Source code in element_lab/project.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
ProjectSourceCode
¶
Bases: dj.Manual
Web address of source code
Attributes:
| Name | Type | Description |
|---|---|---|
Project |
foreign key
|
Project key |
repository_url |
varchar(255)
|
Link to code repository |
repository_name |
varchar(32)
|
Name of code repository |
Source code in element_lab/project.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
Study
¶
Bases: dj.Manual
A set of experiments designed to address a specific aim
Attributes:
| Name | Type | Description |
|---|---|---|
Project |
foreign key
|
Project key |
study |
varchar(24)
|
Abbreviated study name, e.g., 'Aim 1' |
study_name |
varchar(128)
|
Full study name, e.g., 'perceptual response tasks' |
study_description |
varchar(1024), optional
|
Description of study goals, objectives, and/or methods |
Source code in element_lab/project.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
Protocol
¶
Bases: dj.Part
Info about institutional approval (e.g., IACUC, IRB, etc.)
Attributes:
| Name | Type | Description |
|---|---|---|
Study |
foreign key
|
Study key |
Protocol |
foreign key
|
Protocol key |
Source code in element_lab/project.py
160 161 162 163 164 165 166 167 168 169 170 171 | |
Experiment
¶
Bases: dj.Manual
Experimental tasks and their associated lab, study, and protocol
Attributes:
| Name | Type | Description |
|---|---|---|
experiment |
varchar(24)
|
Abbreviated experiment name |
experiment_name |
varchar(128)
|
Experiment full name or identifier |
experiment_description |
varchar(1024)
|
Description of the experiment's focus |
Study |
foreign key
|
Study key |
Lab |
foreign key
|
Lab key |
Protocol |
foreign key
|
Protocol key |
Source code in element_lab/project.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |