Edit on GitHub

parascape.source_matrices

Read submitted matrices while preserving source identities and scale limits.

Deposited VALUE fields may describe different assays, platforms or normalization conventions. Readers therefore verify conversion receipts and output hashes, retain original probes and sample metadata, and expose comparison limits beside measurements. Optional identifier matching reproduces explicit source annotation associations without averaging probes or claiming current gene equivalence. Preserving these distinctions prevents source acquisition from silently becoming an unsupported gene-level or cross-study comparison.

def data_root() -> pathlib.Path:

Locate separately installed source-matrix packs or a local collection override.

def manifest(pack: str | pathlib.Path, *, verify_outputs: bool = True) -> dict:

Verify a conversion receipt and, by default, every pack output before reading values.

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

List validated manifest metadata; selected value queries verify complete output hashes.

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

Describe every submitted sample using all original probes and an unknown scale.

Negative values remain valid real measurements because deposited VALUE scales may be signed. Neither biological quality nor source units are inferred.

def profiles(pack: str | pathlib.Path, probes) -> pandas.DataFrame:

Return original values for exact, case-sensitive source IDs without gene remapping.

def annotated_profiles( pack: str | pathlib.Path, identifiers, links_root: str | pathlib.Path | None = None) -> pandas.DataFrame:

Match source-declared platform identifiers while retaining every original probe.

Associations reproduce the source annotation. They do not establish independently validated current gene equivalence, and measurements are never averaged by identifier.