arista.db.seeds

Seed the controlled-vocabulary dimension tables.

Functions

seed_cell_types(conn)

Insert CC / HC / WC entries from arista.constants.CELL_TYPES.

seed_dimensions(conn)

Apply every dimension seed in dependency order and commit.

seed_researchers(conn)

Insert the four researcher rows.

seed_stimulus_protocols(conn)

Insert every protocol from arista.constants.STIMULUS_PROTOCOLS.

seed_strains(conn)

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_sequence tuple is serialised as a JSON array string so json_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