Edit on GitHub

parascape.deposited_values

Read original deposited measurements without erasing their experimental context.

Assays outside gene-expression matrices still need exact feature rows, original sample labels, source units and auditable numerical conversion. These packs retain literal source tokens beside binary64 values and use source row numbers to keep repeated feature names distinct. Readers require an independent full-cell reconciliation receipt before exposing values. Matching a label does not establish gene equivalence, compatible scales or independent biological replicates, and no normalization or missing-value imputation is performed during browsing.

def data_root() -> pathlib.Path:

Locate separately installed original measurements or a local collection override.

OUTPUTS = frozenset({'source_tokens.parquet', 'source_metadata.json', 'samples.json', 'values.parquet'})
ANNOTATIONS_FILE = 'row_annotations.json.gz'
def manifest(pack: str | pathlib.Path, *, verify_outputs: bool = True) -> dict:

Require complete source-cell reconciliation and pin every runtime output.

def row_annotations( pack: str | pathlib.Path, metadata: dict | None = None, info: dict | None = None):

Original per-row annotations, inline or from the pinned gzip sidecar; None when the source has none.

The sidecar must be a declared manifest output with a matching checksum, so moving the text out of source_metadata.json changes storage only, never which annotations a row carries.

def catalogue(root: str | pathlib.Path | None = None) -> tuple[list[dict], list[str]]:

List independently reconciled packs while retaining assay and source-analysis identity.

def runtime_pack(pack: str | pathlib.Path) -> pathlib.Path:

Resolve an installed optional table without downloading or changing source files.

def column_context( pack: str | pathlib.Path, *, audit_root: str | pathlib.Path | None = None) -> list[dict]:

Inspect original source columns and separately pinned submitted metadata without a feature query.

def profiles( pack: str | pathlib.Path, features, *, audit_root: str | pathlib.Path | None = None, match: str = 'feature_label') -> pandas.DataFrame:

Return exact labels or reported parent gene IDs, preserving original transcript rows.

match='reported_gene_id' uses only the checked gene_id annotation in an original transcript table. It neither sums transcripts nor maps gene versions. The source-specific query record is returned in frame.attrs['identifier_query'].

def technical_qc(pack: str | pathlib.Path) -> pandas.DataFrame:

Describe every original sample across all source rows without changing values or units.