Edit on GitHub

parascape.comparison_provenance

Check exact comparison inputs and export reproducible treatment records.

Submitted sample identity prevents known repeated sequencing from becoming extra replicates. Distinct accessions alone never prove biological independence.

A comparison is only reproducible when the exact runs, the ordered matrix handed to the model and the treatment are saved with the result, so every export carries a checksum-bound sidecar. Exports are published atomically and never overwrite, so an earlier result cannot be silently replaced.

def selection(counts, group_a, group_b, metadata=None):

Validate selected run identities and retain known/unknown sample relationships.

def matrix_record(matrix):

Hash the ordered numerical matrix actually supplied to the model, with typed labels.

def export(table, destination, record):

Atomically publish a fresh CSV/TSV and checksum-bound treatment sidecar without overwrites.