|
24 | 24 | # To load the local configuration, we will change the directory to the package root.
|
25 | 25 |
|
26 | 26 | import os
|
27 |
| -if os.path.basename(os.getcwd())=='notebooks': os.chdir('..') |
| 27 | + |
| 28 | +if os.path.basename(os.getcwd()) == "notebooks": |
| 29 | + os.chdir("..") |
28 | 30 |
|
29 | 31 | # ## Schemas and tables
|
30 | 32 |
|
|
57 | 59 | # + `dj.list_schemas()`: list all schemas a user could access.
|
58 | 60 | dj.list_schemas()
|
59 | 61 |
|
60 |
| -# + `dj.Diagram()`: plot tables and dependencies. |
| 62 | +# + `dj.Diagram()`: plot tables and dependencies. |
61 | 63 |
|
62 | 64 | # + `dj.Diagram()`: plot tables and dependencies
|
63 | 65 | # plot diagram for all tables in a schema
|
64 | 66 | dj.Diagram(ephys)
|
65 | 67 | # -
|
66 | 68 |
|
67 |
| -# **Table tiers**: |
| 69 | +# **Table tiers**: |
68 | 70 | #
|
69 |
| -# Manual table: green box, manually inserted table, expect new entries daily, e.g. Subject, ProbeInsertion. |
70 |
| -# Lookup table: gray box, pre inserted table, commonly used for general facts or parameters. e.g. Strain, ClusteringMethod, ClusteringParamSet. |
71 |
| -# Imported table: blue oval, auto-processing table, the processing depends on the importing of external files. e.g. process of Clustering requires output files from kilosort2. |
72 |
| -# Computed table: red circle, auto-processing table, the processing does not depend on files external to the database, commonly used for |
| 71 | +# Manual table: green box, manually inserted table, expect new entries daily, e.g. Subject, ProbeInsertion. |
| 72 | +# Lookup table: gray box, pre inserted table, commonly used for general facts or parameters. e.g. Strain, ClusteringMethod, ClusteringParamSet. |
| 73 | +# Imported table: blue oval, auto-processing table, the processing depends on the importing of external files. e.g. process of Clustering requires output files from kilosort2. |
| 74 | +# Computed table: red circle, auto-processing table, the processing does not depend on files external to the database, commonly used for |
73 | 75 | # Part table: plain text, as an appendix to the master table, all the part entries of a given master entry represent a intact set of the master entry. e.g. Unit of a CuratedClustering.
|
74 | 76 | #
|
75 |
| -# **Dependencies**: |
| 77 | +# **Dependencies**: |
76 | 78 | #
|
77 |
| -# One-to-one primary: thick solid line, share the exact same primary key, meaning the child table inherits all the primary key fields from the parent table as its own primary key. |
| 79 | +# One-to-one primary: thick solid line, share the exact same primary key, meaning the child table inherits all the primary key fields from the parent table as its own primary key. |
78 | 80 | # One-to-many primary: thin solid line, inherit the primary key from the parent table, but have additional field(s) as part of the primary key as well
|
79 | 81 | # secondary dependency: dashed line, the child table inherits the primary key fields from parent table as its own secondary attribute.
|
80 | 82 |
|
|
95 | 97 | # + `heading`: [markdown]
|
96 | 98 | # # + `describe()`: show table definition with foreign key references.
|
97 | 99 | # -
|
98 |
| -ephys.EphysRecording.describe(); |
| 100 | +ephys.EphysRecording.describe() |
99 | 101 |
|
100 | 102 | # + `heading`: show attribute definitions regardless of foreign key references
|
101 | 103 |
|
|
115 | 117 | dj.Diagram(subject)
|
116 | 118 |
|
117 | 119 | # + [subject](https://github.com/datajoint/element-animal): contains the basic information of subject, including Strain, Line, Subject, Zygosity, and SubjectDeath information.
|
118 |
| -subject.Subject.describe(); |
| 120 | +subject.Subject.describe() |
119 | 121 |
|
120 | 122 | # + [`session`](https://github.com/datajoint/element-session): General information of experimental sessions.
|
121 | 123 |
|
122 | 124 | dj.Diagram(session)
|
123 | 125 |
|
124 | 126 | # + [session](https://github.com/datajoint/element-session): experimental session information
|
125 |
| -session.Session.describe(); |
| 127 | +session.Session.describe() |
126 | 128 |
|
127 | 129 | # + [`ephys`](https://github.com/datajoint/element-array-ephys): Neuropixel based probe and ephys information
|
128 | 130 |
|
|
0 commit comments