biocognia-markers
The marker graph that SCIMAP Pro, Plexora and other BioCognia products share.
- Nodes: markers and cell families.
- Edges: what is known about them: exceptions, exclusions, subsets, carriers and co-expression.
- Evidence: the evidence behind each node and edge.
- Verification: an item counts as verified only when a machine has found every part of it in
its source (
biocognia-markers verify).
import biocognia_markers as bm
graph = bm.load() # the shipped graph, with the user's overlay laid over it
graph.resolve(["CD3e", "PD-1"])
graph.edges_of("m:pd1")
Phenotyping from it
from biocognia_markers import phenotypes, inference
defs = phenotypes.definitions(["CD45", "CD3e", "CD8a", "FOXP3"], context="melanoma")
defs["coverage"]["types"] # what this panel can resolve, and what would recover the rest
inference.evaluate(defs, {"CD45": 0.9, "CD3e": 0.8, "CD8a": 0.9}) # one cell: type, outcome, reason, confidence
phenotypes turns the graph and a panel into definitions; inference is the one engine every product runs
on them (SCIMAP Pro's tl.autoPhenotype streams cells through it): one decision per pattern of positive,
negative and unmeasured markers. A cell positive for two lineages the graph keeps apart climbs a ladder (spill
from a neighbour, unmixing on linear intensities, relative strength, its spatial and expression neighbours) and,
when nothing settles it, gets the best guess. Named functional states live in
the graph's states section (schema 2), how a transcript reads each marker in its rna field.
Changing it safely
Every write to an overlay is validated first (bm.validate.validate, a dry run: schema, unknown names,
duplicates, contradictions) and journaled beside it (bm.overlay.history, at, revert). A write never
brings a citation with it; only verify earns one. Graph.fingerprint(used) records what a result
rested on, and bm.graph.compare says later which of those items changed.
See the graph
biocognia-markers view # the live graph (shipped + your overlays), opened in a browser
The page shows every marker, family and relation, with the quotes behind each; search it by any
name a panel uses, filter by relation, confidence or tissue, or read the relations as a table. It
is written beside your overlay, and every change to the graph through this package rewrites it,
so reloading the tab shows the current graph. bm.view.write(path) writes it anywhere.
On GitHub, docs/graph.html is the page of the shipped graph at that commit:
download it (Raw, then save) and open the file. biocognia-markers merge and verify --write
rewrite it when they change the shipped graph; after a hand edit, run
biocognia-markers view --shipped --out docs/graph.html --no-open (the tests fail until you do).
Adding to it
To add to the graph, an agent follows the skill biocognia-marker-graph
(src/biocognia_markers/skills/marker-graph/SKILL.md). tools/migrate.py built the first graph
from SCIMAP Pro's rule library and Plexora's vocabulary. Where those two sources disagree is
listed in MIGRATION_REPORT.md.
Metadata
Release files for biocognia-markers 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biocognia_markers-0.2.2.tar.gz | 2.2 MB | Without provenance | Details for biocognia_markers-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biocognia_markers-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for biocognia_markers-0.2.2-py3-none-any.whl |
Total release size: 3.4 MB
Release files / biocognia_markers-0.2.2.tar.gz
| Download URL | biocognia_markers-0.2.2.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
194b87b8a8927a1476eeabd431aa46b167978eb26129e9e56467ad693b143e94
|
|
BLAKE2b-256 checksum How to use checksums |
a140525ff7f417685002c42b0e4492a91c8b7e599adba837c67df51804a1c93e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|
Release files / biocognia_markers-0.2.2-py3-none-any.whl
| Download URL | biocognia_markers-0.2.2-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d28cd9181384b80f6326b97987029d80e1e676f35ced2099cf22a09591f42e7d
|
|
BLAKE2b-256 checksum How to use checksums |
44dd38d4ff0af3b21498ec8e91e14a0322b5e2fe63e619463757083e9d83f166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|
Security for biocognia-markers 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.