Repository navigation
DAPPER 0.2.0
This release consolidates the 0.2.0 alphas: a generic File model and
provenance linter (0.2.0-a0), gene-set libraries with GMT row references and
scientific accounts, claims, evidence, and citations (0.2.0-a1), and vector
embeddings as content-addressed records any node can carry. It is a schema and
tooling snapshot; there is no Python package to install.
Changes
Files, identifiers, and linting (from 0.2.0-a0)
- Add a generic
Filemodel and searchable schema documentation. - Correct ID assignment and stop silent data loss when minting.
- Add a provenance-graph linter that validates complete provenance records,
terminal relationships, and that every edge connects two nodes.
Gene-set collections and scientific provenance (from 0.2.0-a1)
- Model libraries as
GeneSetCollection, with individualGeneSetmembers,
reciprocal membership links, distinct-gene counts, and pointers into GMT files.
Generic inputs and intermediates useFile; C2M2 metadata remains onC2M2File. - Declare document-local prefixes, reject unresolved namespaces, and export
full-URI documents with consistent content-derived identifiers. - Include a real HuBMAP example with 358 sets and 964 distinct source gene symbols.
Every compact YAMLgmt_entrymatches its GeneSet ID and the corresponding
row ingenesets.dapper-ids.gmt; both file representations have verified checksums. - Separate propositions from attributed claims and typed scores. Organize
questions, knowledge gaps, hypothesis roles, context, claims, and conclusions
inScientificAccount, with optionalMechanisticModelstructure and saved
Paragraphtext. - Validate evidence relationships, scientific-account structure, and paragraph
citation spans. A separate revisioned citation metadata contract preserves
scientific identity. Update the portal and generated model documentation.
Embeddings (new since 0.2.0-a1)
- New
Embeddingclass (embeddings:group): a model-computed vector
representing another node (embedding_of), with model, provider,
dimensions, dtype, normalization, the embedded text and its template, a
vector_sha256of the stored bytes, and the generating Activity. Vectors are
not inlined;has_vector_fileplusvector_rowlocate a row of a shared
matrixFileand are unhashable, mirroringGeneSet.in_gmt_file+gmt_entry. - New unhashable
has_embeddingslot onNode(the inverse of
embedding_of) and aHasEmbeddingedge class, so embedding a node never
changes the node's identifier. - New enums
EmbeddingDtypeEnumandEmbeddingNormalizationEnum. - Linter:
Embeddingmay be the subject ofWasGeneratedBy;HasEmbedding
edges accept anyNodesubject. Embedded nodes remain terminal results. - Portal and model documentation include the new class, links and an
embeddings guide with a
minted example.
Migration
From 0.2.0-a1
- Nothing to re-mint. Identifiers minted under 0.2.0-a1 are unchanged, and
existing documents validate unchanged;has_embeddingis optional and
unhashable. - To add embeddings to an existing document: mint the matrix File, the
Activity and the Embedding records, then sethas_embeddingon the embedded
nodes and (optionally) reifyhas_embedding_edges. Do not add aprov:used
edge from the embedding Activity to the embedded nodes; point it at the data
the texts came from.
From 0.2.0-a0 or 0.1.0
- Use
gene_set_collectionsfor GMT libraries; eachgene_setsrecord describes
one set. Put paths inlocation, source labels inalternate_identifier, and
readable labels inname.has_gmt_filereferences a local minted File record. in_gmt_fileandgmt_entryare representation metadata excluded from a
GeneSet's hash. Mint the sets, serialize their IDs into the GMT, calculate its
checksums, then mint the File and collection. Re-mint earlier records and all
dependent references under this schema; do not mix releases when verifying IDs.in_gene_set_collectionis an unhashable inverse link; collectionmembers
andhas_gmt_fileremain hashable. A full-URI export may have different
GeneSet IDs, but retains literalgmt_entryvalues that select the same GMT rows.- Replace legacy
Hypothesisrecords with a Proposition in an account's
hypothesis role. ReplaceCompositeClaimcontainers with ScientificAccounts;
use a separate Claim when making an attributed concluding assessment.
Mechanistic structure belongs inMechanisticModel.
Pull and validate
git clone --branch 0.2.0 https://github.com/broadinstitute/dapper.git
cd dapper
uv run schema/lint/lint_provenance.py \
schema/examples/example_geneset_collection_rows.yaml --strict
uv run schema/lint/lint_provenance.py \
schema/examples/example_scientific_account.yaml --strict
uv run schema/lint/lint_provenance.py \
schema/examples/example_embedding_graph.yaml --strict
uv run schema/identity/dapper_identity.py verify \
schema/examples/example_embedding_graph.yamlFor a separately supplied provenance document, run the linter from this tagged
checkout and pass the document's path. To generate a full-URI version, use
uv run schema/expand_prefixes.py input.yaml --output expanded.yaml.
The linter does not download GMT or embedding matrix files; regression tests
check the repository examples' row references and checksums. Other source file
contents and execution records remain source-reported. Gene symbols are
preserved without alias normalization. Citation registry persistence and
DOI/resolver services remain application responsibilities.
Build the portal and model navigator with uv run tools/build_docs.py --serve.
The hosted Pages site follows main; the release tag pins this version independently.
What's Changed
- fix: correct ID assignment and stop silent data loss when minting by @jarbesfeld in #24
- Add generic File provenance and searchable model documentation by @yakaboskic in #26
- feat: Add initial work for linter for provenance graphs by @jarbesfeld in #27
- fix: validate complete provenance records and terminal relationships by @yakaboskic in #28
- Chase/file and first claims by @yakaboskic in #29
- Add genetics and claims modeling with linked provenance browsing by @yakaboskic in #30
- Add GMT gene-set collections and scientific provenance for alpha 0.2.0-a1 by @yakaboskic in #31
- Version 0.2.0 Release by @yakaboskic in #32
Full Changelog: 0.1.0...0.2.0