arista.db.seeds
Seed the controlled-vocabulary dimension tables.
Functions
|
Insert CC / HC / WC entries from |
|
Apply every dimension seed in dependency order and commit. |
|
Insert the four researcher rows. |
|
Insert every protocol from |
|
Insert the canonical strain list as starter rows. |
- arista.db.seeds.seed_cell_types(conn)[source]
Insert CC / HC / WC entries from
arista.constants.CELL_TYPES.- Parameters:
conn (Connection)
- Return type:
None
- arista.db.seeds.seed_dimensions(conn)[source]
Apply every dimension seed in dependency order and commit.
- Parameters:
conn (Connection)
- Return type:
None
- arista.db.seeds.seed_researchers(conn)[source]
Insert the four researcher rows. Idempotent via
INSERT OR IGNORE.- Parameters:
conn (Connection)
- Return type:
None
- arista.db.seeds.seed_stimulus_protocols(conn)[source]
Insert every protocol from
arista.constants.STIMULUS_PROTOCOLS.The
target_sequencetuple is serialised as a JSON array string sojson_each()can unroll it later inside SQL queries.- Parameters:
conn (Connection)
- Return type:
None
- arista.db.seeds.seed_strains(conn)[source]
Insert the canonical strain list as starter rows.
Strains continue to grow over time; this seed only guarantees the documented ones exist on first DB build. The ingester inserts any additional strain it encounters via
ensure_strain().- Parameters:
conn (Connection)
- Return type:
None