Tesserav1.0.1
GitHub

Getting started

This guide takes you from a fresh checkout to a running Tessera with your organization's public research footprint: people, publications, grants, and clinical studies, connected with evidence. It takes about 15 minutes of your time; the first sync then runs on its own for a few minutes to an hour, depending on the size of the organization.

What you need#

Tessera needs no institutional systems, accounts, or credentials. An NCBI API key is optional and makes PubMed requests faster (see Configuration).

Install#

git clone https://github.com/robert-mcdermott/tessera.git
cd tessera
uv sync

Then create a configuration file and a data home:

uv run tessera init

This writes tessera.toml in the current folder and creates ./var for data. Run uv run tessera doctor at any time to check the installation.

Try the demo first (optional)#

To see Tessera working before you describe your own organization, build the demo, an invented research institute with about 100 people, their publications, grants, and studies, and a curator's decisions:

uv run tessera demo                       # builds ./demo in a few seconds
uv run tessera --config demo/tessera.toml serve

Everyone and everything in it is invented. Delete the demo folder when you are done; it is separate from your own installation. It runs without sign-in; add --port 9000 (or another port) to serve if 8000 is taken.

The demo is built with the optional assistant off. Trying it on the demo shows the few lines that turn it on there.

Describe your organization#

Tessera finds your organization in public records by name, so the [organization] section of tessera.toml matters more than anything else. Open the file and fill in:

Describing your organization explains each setting, how to find the right values, and how to check the results. Also set [sources] contact_email to an address the public APIs can reach; their usage policies ask for one.

Run the first sync#

uv run tessera sync

sync does everything in the right order:

  1. Fetches the organization's grants from NIH RePORTER, its studies from ClinicalTrials.gov, affiliated papers from PubMed, and papers linked to those grants.
  2. Builds the people directory: grant investigators, plus anyone on a roster you imported.
  3. Searches PubMed for each person by name, then fetches citation metrics from iCite and the public ORCID records of people whose ORCID iD it knows.
  4. Scores every candidate paper for every person and records suggestions with their evidence, along with links between papers, grants, and studies.
  5. Builds the search index the web app reads, and the concept profiles behind Find experts and similar people.

Each step is recorded as a run. uv run tessera runs shows what was fetched and whether each run completed. Later syncs are incremental and much faster: run sync daily or weekly (see Running Tessera).

By default the first sync looks back five years ([sync] window_years).

Open the web app#

uv run tessera serve

Open http://127.0.0.1:8000. You will find:

Tessera's home page: counts of people, publications, active grants, and studies, recent publications, and the largest active grantsTessera's home page: counts of people, publications, active grants, and studies, recent publications, and the largest active grants
The home page (the demo organization)

Out of the box Tessera has no sign-in and answers on this machine only (127.0.0.1); decisions are recorded under the [server] operator name. To let several people sign in with their own roles, see Accounts and sign-in.

Optional: import a roster#

If you have a list of people (from a department page, a grant office, or a spreadsheet), import it to add people grant records would miss and to attach ORCID iDs, emails, and units:

uv run tessera people import roster.csv

The CSV needs a header row. Recognized columns are name (or family and given), email, orcid, local_id, unit (or group), unit_code, kind (a group kind such as division or lab), role (such as lead or trainee), title, start, and end, with common spellings such as last_name, first_name, department, or start_date also understood; other columns are ignored. Dates may be a year (2015), a month (2015-07), or a day (2015-07-01).

Run sync again afterward so the new people's papers are found.

Next steps#

Describes Tessera 1.0.1. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.