Searching your node
In the node’s Explore page, anyone who reads a department can find its records by several conditions at once: their own fields, the concepts they hold, what they came from or led to at any distance, and the projects and contexts they belong to. A search can be saved under a name and shared as a file.
What a search asks
A search starts from one record type, any of the fourteen, and keeps the records that meet its conditions. For example: extracts made with kit lot B2 whose data later showed more than 10% duplicate reads.
| Condition | True when |
|---|---|
| A facet field | Some value of one of your department’s own fields passes a test: is one of these values, starts with, contains, lies within a range of numbers or dates, or is present at all. Compared as stored, with no mapping. |
| A concept | Some value of the concept, in each department’s own field and spelling, is one of its members, lies within a range in its unit, or is present. |
| Came from, led to | Some record of a chosen type that the record’s material or data came from, or that was made from it, at any distance, meets conditions of its own. |
| In a project | The record is one of the project’s members, or was made from one. |
| In a context | The record is part of this family, cohort or study, optionally in a given role. |
| This record | The record is this one, such as a kit lot. |
| All of, any of, not | Conditions combined, nested as deep as needed. |
Lineage follows the same rule as cohorts: a kit lot flows into the libraries made with it, and a per-sample file comes from its own library, never from the other samples on the run (how lineage flows). A field marked as patient data is never a condition.
Explore builds a search by choosing from lists; the same search can also be written, or read, as JSON in the node’s criteria grammar.
What the answer shows
| Part | Meaning |
|---|---|
| Records | Those the search is true for, one by one, a page at a time. |
| Match | How many records the search is true for. |
| Can’t be told | How many it can neither confirm nor rule out: a value nobody recorded, a field the department doesn’t record, a lineage that goes out of sight. They are counted, never listed and never treated as false. |
| Not seen into | Departments whose records the search would have needed to follow and you don’t read. |
A search reads only the departments whose records you read: your own, and those that granted yours their records. A department that granted only aggregates is never part of a search. Because a search lists records you may already read one by one, its counts are shown as they are, small ones included; small counts are withheld from cohorts and statistics, which count without listing.
Fields the index doesn’t cover
A field mapped to a concept, or registered by a curator, is in the node’s field index: searching it is fast, and any reader may. Any other field has to be read from every facet that holds it, which costs far more, so it needs a role of its own, unindexed_reader, held in a department.
- Explore offers such a field only to someone holding the role there. Everyone else sees it marked “not indexed”.
- One search reads at most a set number of facets for each such field (100,000 by default, about a second’s work). A search that would read more is refused, naming the field to register, and is never answered from part of the data.
- A search that reads such a field is always recorded.
- Registering the field makes it fast for everyone and needs no role. A cohort never reads an unindexed field.
Saving and sharing
A signed-in person can save the search on screen under a name of their own.
- Versions. Saving again under the same name makes the next version only when the search changed; otherwise the node says nothing changed. Every version can be opened or exported.
- Yours alone. Nobody else lists or opens your saved searches. Removing a name takes it off your list; its versions stay in the node’s log, and the name can be used again.
- Sharing is sending a file. Any search, saved or not, exports as a small JSON document. Whoever imports it sees the same search and, to keep it, saves it under a name of their own. Records and projects travel by their full names, so the file says what it asks; at another node they resolve only where the same names are seen, and the node names any it can’t find.
What the node records
Each distinct search is stored once. Each time someone runs it, the node records who asked, when, and how many records matched, could not be told and were listed, never their names. It records this once per person, search and state of the node: further pages, or asking again before anything changes, record nothing more. Saved searches say what a person looked for, so they are staff personal data, recorded under the person’s code and never their name.
A node may choose not to record searches, which suits a node of public data visited by many people. Searches that read an unindexed field are recorded anyway, and so is every cohort evaluation.
Searches and cohorts
A search is for finding records; a cohort is what a department settles on and counts, with small counts withheld, and what other institutions may ask about. Both are written in the same criteria, true, false or unknown in the same way, so the conditions of a search are those a cohort can take: on a cohort’s record types, with indexed fields, and with its projects as “in a project” conditions.