Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The CyteType report

Every job has an interactive report at https://cytetype.nygen.io/report/<job_id>. It shows your embedding, the label for each cluster and the evidence behind it: the candidates CyteType considered, the marker genes, the reviewer’s assessment and how the label fits the study. The labels are also copied into your object (see Results in AnnData and Seurat); the report is where you check them.

Open the report

The client prints the report link as soon as the job starts, so you can follow the job before it finishes. The link is also stored with the results.

Python
R
adata.uns["cytetype_jobDetails"]["report_url"]

To open a report by its job ID from a terminal:

cytetype view <JOB_ID>

cytetype view and ViewCyteTypeJob() open the report through the sign-in page of the server you signed in to; if your browser is already signed in, you go straight to the report (see the command-line reference). You can also open any of your reports from the Reports list in the dashboard with View.

Who can open a report

The report uses your browser sign-in (the emailed one-time code at https://cytetype.nygen.io/login), not your API key. Who can open it depends on the job’s visibility:

VisibilityWho can open the report
Private (the default)You, and the people you shared it with by email.
OrganizationMembers of your organization’s license, and the people you shared it with.
PublicAnyone with the link, without signing in. Any signed-in user can also find it in Chat’s report search.

If you are not signed in, the report shows Authentication Required with a Sign In to View Report button, and after signing in you return to the report. An account without access sees the same screen even when it is signed in: ask the owner to share the report with that email address. A deleted report shows Report Deleted, and a job ID that does not exist shows Error Loading Report. Visibility and sharing explains how to change the visibility and manage shares, and what a public report exposes.

Follow a running job

The report opens while the job is still running and updates itself, so you don’t need to reload the page.

Page layout

The report has three columns:

Select a cluster in the list or click it on the embedding. The address bar then includes ?cluster=<id>, so you can bookmark or send a link to a specific cluster, and the browser’s back and forward buttons move between the clusters you viewed. The up and down arrow keys move to the previous or next cluster in the list.

Left sidebar

The toolbar at the top of the sidebar has four controls:

ControlOptions
SortBiological Order groups clusters under display-group headers. Alphabetical sorts by label. Cluster ID sorts by CyteType’s cluster ID.
FilterConfidence: High, Moderate, Low. Match: High (≥80%), Moderate (40-79%), Low (<40%), No Original Label.
LabelsCyteType Label or User Label (the labels in your cluster column).
Search clusters...Filters the list by cluster ID or label as you type. Esc clears it.

Each row shows CyteType’s cluster ID, the label and three dots. The dots show the reviewer’s confidence, or the Match score when you display user labels; hover over them to see the value. Clusters that are still running are always listed. Clusters without a confidence value are hidden as soon as you untick any of the confidence boxes.

In Biological Order, each header names a display group and counts its clusters. CyteType picks the level of its reference hierarchy for these groups so that the study has a manageable number of them, puts unresolved clusters in a group of their own, and lists each identity outside the hierarchy under its own label. The headers appear once the job has finished. While a cluster is selected, hover over a header to highlight its group on the embedding.

Dataset Overview, below the toolbar, deselects the cluster and shows the study summary.

The footer links to your reports in the Dashboard, the Citation (the CyteType preprint), a light and dark theme switch, and the CyteType repository on GitHub.

Center column

Type a gene symbol in the search box (“Search gene expression”), then pick a suggestion or press Enter. The embedding colors each cluster by the percentage of its cells that express the gene, on a scale from 0% to 100%; hover over a cluster to see its value in the legend. Only the genes in your data can be found. Click the gene name in the legend for a short description of the gene from MyGene.info (the top match, not filtered by species), and click × to clear the coloring.

Gene names in the right panel work the same way: click a gene to color the embedding by it, and click it again to clear.

Embedding

The embedding shows the 2D coordinates sent with the job (UMAP by default) for a sample of up to 1,000 cells per cluster (max_cells_per_group), and at most 50,000 points in all. This sampling affects only the display. The embedding cannot be zoomed or panned. Hover over a cluster to see its label, and click it to select it. When cluster shapes are available, a button below the embedding cycles the view between Scatter (cells only), Hybrid (cells over the cluster shapes) and Hull (shapes only), and another one shows abbreviated cluster labels, which you can drag into place; Reset label positions puts them back. The shapes are created at the end of the job, so reload a report that you opened while the job was running. If the job had no coordinates, the embedding area reads “UMAP Visualization Not Available”.

Cluster card

When a cluster is selected, a card below the embedding summarizes it. Click the title, the subtitle, the cell state or the confidence to jump to the matching section of the right panel.

FieldContent
TitleThe CyteType label. Opens Justification.
SubtitleThe granular annotation, a one-sentence description of the cluster. Opens Cell Type Evidence.
Cell StateThe cell state, if one was called. Opens Cell State Evidence.
ConfidenceThe reviewer’s confidence, with a Heterogeneous badge when the reviewer found distinct populations in the cluster. Opens Quality Control.
OntologyThe Cell Ontology ID and term name, linked to the term in the EBI Ontology Lookup Service.
User LabelYour label for the cluster, with its Match score when there is one.

Study information

With no cluster selected, the card shows Study Information: the job Status (with the progress tracker while the job runs), a Completed row with the time the job was submitted, the User-Provided Metadata you passed as metadata (values that are URLs become links), and the Client that submitted the job with its version, for example anndata v0.21.0 or seurat v0.6.0. Study context and metadata explains which metadata to pass.

Toolbar

The toolbar sits above the right panel.

ButtonWhat it does
ShareShown only to the report’s owner. Invites one person by email; they get view access. Manage all shares in dashboard opens your reports in the dashboard.
Open ChatOpens Chat in a new tab with this run attached, and with the selected cluster if there is one. Chat needs you to be signed in; the button reads Sign in required when you are not.
Download as CSVDownloads the cluster table described in Download as CSV.

People you share a report with by email can open it after they sign in with that address, including people who don’t have an account yet. See Visibility and sharing.

Right panel: the evidence for a cluster

Select a cluster to see its evidence in up to five sections: Justification, Cell Type Evidence, Cell State Evidence, Quality Control and Context Fit. A navigation bar at the top jumps to each section and adds a small summary: the number of genes for Cell Type Evidence, the number of gene sets for Cell State Evidence, and a colored dot for the confidence in Quality Control. Sections, and most items inside them, collapse and expand when you click their header.

Gene chips are colored by how often the gene is detected in this cluster compared with the average of the other clusters: red when it is detected more often, blue when less often. Hover over a chip to see the log2 ratio and the percentage of the cluster’s cells that express the gene.

Justification

How CyteType arrived at the label.

The Evidence details of a candidate can include:

ItemContent
Evidence supporting, Evidence against, Why consideredThe arguments for and against the identity, and why it was proposed.
Evidence synthesisA balanced assessment of the supporting, missing and unexpected genes.
PathwaysPathways that support the identity.
Gene evidenceGenes listed as Evidence supporting, Expected but weak or absent and Unexpected expression.
ReferenceThe Reference hierarchy path and the Reference match reasoning for placing the identity in the hierarchy.
Population consistencyWhether the evidence points to one population or to two distinct identities.

Miscellaneous holds Review confidence and Reference match confidence percentages, the Reference node identifier and the Reference ranking rationale. A candidate with a combined identity chip merges two identities, for example when the cluster appears to contain both; its Merged identity item lists them.

Reports of older jobs show Other candidates investigated instead of the rounds, with ×××, ×× or × for a strong, moderate or weak rejection, a Consideration reason and a Rejection reason, and the Initial candidates under Supplementary information.

Cell Type Evidence

The genes behind the label, and how the cluster differs from the clusters closest to it.

Cell State Evidence

The cell state, kept separate from the cell’s identity. Chips give the state (State:) and the number of gene sets. Summary explains the state, and Supporting gene sets lists named gene programs with their genes and reasoning. The section is absent when no state was called.

Quality Control

The independent reviewer’s assessment of the final label. Chips show Confidence (High, Moderate or Low) and Heterogeneity (Heterogeneous or Homogeneous).

ItemContent
ConfidenceThe reviewer’s reasoning for the confidence level. “Confidence details not available.” means the review did not run, or failed, for this cluster (see Reviewer confidence).
HeterogeneityThe reasoning for the heterogeneity call.
Cell classifierResults of a classifier trained on the marker genes of all clusters and tested on cells it did not see during training. The accuracy chip shows how well the genes separate this cluster’s cells from the others (green from 85%, amber from 65%, red below). The Entropy chip is the mean uncertainty of the per-cell predictions; lower means the cells look more alike. The bars show the labels the classifier gave to this cluster’s cells. It needs cell-level data uploaded with the job.
Reviewer PanelSeveral reviewer perspectives, each with a specialty (for example a T cell immunologist), a one-line conclusion, and a Strength, Weakness, Biological interpretation and Alternatives. These assessments are generated by CyteType’s models, not written by human experts.
Markers from External DatabasesHow the cluster’s genes compare with reference marker lists, and the Database markers from SingleCellBase, CellGuide Canonical and CellGuide Computational.

Context Fit

How the label fits the study and the cluster.

Study summary

With no cluster selected (click Dataset Overview), the right panel shows:

The embedding colors every cluster in this view, and the center column shows the study information.

Compare with your own labels

The report treats the labels in your cluster column (group_key) as your labels. Switch Labels to User Label to show them in the cluster list and on the embedding; the dots then show each cluster’s Match score, and the cluster card shows the score next to your label.

The Match score is the similarity between your label and CyteType’s label, from 0% to 100%. The filter bands are High (80% or more), Moderate (40% to 79%) and Low (below 40%). Use the Match filter to focus on the clusters where you and CyteType disagree.

There is no score when your labels are cluster numbers or generic names (such as 0, C1, cluster 3 or unknown); such clusters count as No Original Label. To compare CyteType with an existing annotation, run it with that annotation column as group_key, with marker genes computed for the same column (see Prepare your data). Interpret and review results explains how the score is calculated and how to read it.

Download as CSV

Download as CSV saves cytetype_annotations_<job_id>.csv, with one row per finished cluster. Clusters that are still running are left out.

ColumnContent
cluster_idCyteType’s cluster ID.
cell_typeThe CyteType label.
coarse_cell_typeThe display group (the Biological Order header).
cell_stateThe cell state.
cl_termThe Cell Ontology term name.
cl_term_idThe Cell Ontology ID.
confidenceThe reviewer’s confidence: High, Moderate or Low (Unknown when there is none).
is_heterogeneousTRUE or FALSE.
supporting_genesThe key supporting genes, separated by ;.
cell_type_abbrv_labelThe abbreviated label shown on the embedding.
color_hexThe cluster’s color in the report.
author_labelYour label for the cluster.
author_label_similarity_scoreThe Match score from 0 to 100; empty when there is none.
l1, l2, l3, l4The annotation hierarchy levels. For an identity outside the hierarchy, l1 holds the identity and l2 to l4 are empty.
qualifierThe distinguishing feature added by label refinement, if any.

The CSV leaves out the evidence text, the reviewer panel, the heterogeneity type and level L5. The Python client returns these (see Results in AnnData and Seurat).

See also