db_io#

Tools and methods for connecting the database and loading data.

The primary user facing elements of the db_io module are the AstroDB and the load_astrosample(). AstroDB allows users to connect to the databases and builds an ORM mapping for the connected databases. load_astrosample() enables loading the data from a sample into the spatialdata framework.

db_io Classes#

AstroDB

This is the base class for connecting to the AstroPath databases.

DirectDBConnection

Connect directly to an AstroPath SQL Server database to write tables.

db_io Functions#

create_cells_boundaries_parquet(astrodb, samples, ...)

Create parquet files for the cells boundaries in the samples.

create_cells_nuclei_parquet(astrodb, samples, directory)

Create parquet files for the cells nuclei in the samples.

create_cells_parquet(astrodb, samples, directory[, ...])

Create parquet files for the cells in the samples.

create_cells_positions_parquet(astrodb, samples, directory)

Create parquet files for the cells positions in the samples.

load_astrosample(sampleid[, sdata, astrodb, database, ...])

Load sample data into the SpatialData framework.

db_io Module Reference#

_sample_utils

Utilities for querying parts of the database related to samples.

build_astrodb

Builds the AstroDB.

credentials

Internal credential resolution, SciScript session activation, and keyring persistence.

dbconnect

Basic database utilities for setting up and launching queries.

load_sample

Methods to load AstroPath sample data into the spatialdata framework.

sql

Creates subclasses of sqlalchemy constructs.