HCA Data Portal
  • Exploring Projects
  • Requesting Access to Controlled Access Data
  • Exploring Biological Network and Atlas Data
  • Accessing HCA Data and Metadata
  • Exporting HCA Data to Terra
  • Exploring Project Matrices
  • Accessing Metadata via TDR

HCA Data Portal Data Matrix Overview

Cell-by-gene matrices (commonly referred to as "count matrices" or "expression matrices") are files that contain a measure of gene expression for every gene in every cell in your single-cell sample(s). These matrices can be used for downstream analyses like filtering, clustering, differential expression testing, and annotating cell types.

This overview describes the HCA Data Portal matrix types, how to download them, and how to link them back to the HCA metadata.

Overall, three types of matrices are currently available for HCA Data Portal data:

  • HCA Data Portal-generated matrices (Loom file format) for projects
  • HCA Data Portal-generated matrices (Loom file format) for individual library preparations within a project
  • Contributor-generated matrices (variable file format) provided by the project-contributor

HCA Data Portal-Generated Matrices

Each HCA Data Portal project that is processed with uniform pipelines has two types of HCA Data Portal-generated matrices available for download:

  • project-level matrices
  • library-level matrices

Both matrix types are in Loom file format, and contain standard metrics and counts that are specific to the data processing pipeline used to generate the file.

HCA Data Portal-generated Loom matrices have three types of attributes containing metadata and metrics:

  • global: information that applies to all data in the Loom (i.e. pipeline version, etc.)
  • row: gene-specific information and metrics (one row = one gene)
  • column: cell-specific information and metrics (one column = one cell)

For more information on working with Loom attributes and format, see the Loom documentation.

Loom files are compatible with multiple downstream community tools, including Seurat, Scanpy, Cumulus, and Pegasus.

HCA Data Portal-Generated Matrix Filenames

Both project matrices and library-level matrices have unique filenames.

  • Project matrices have filenames in the format <project_description>-<species>-<tissue>-<sequencing_method>.
  • Example: the project-level matrix for "Dissecting the human liver cellular landscape by single cell RNA-seq reveals novel intrahepatic monocyte/ macrophage populations" has the filename sc-landscape-human-liver-10XV2.loom. Project Matrices Filenames
  • Library-level matrices have filenames matching the numerical ID in the HCA metadata field sequencing_process.provenance.document_id.

HCA Data Portal Project-Level Matrix Overview

Project-level matrices are Loom files that contain standardized cell-by-gene measures and metrics for all the data in a project that are of the same species, organ, and sequencing method.

  • Example: If a project contains both human and mouse data, it will have one project matrix for human and one for mouse.

The gene measures in project matrices vary based on the pipeline used for analysis.

  • Matrices produced with the Optimus Pipeline (10x data) will have UMI-aware counts.
  • Matrices produced with the Smart-seq2 pipeline will have TPMs and estimated counts.
  • 10x matrices are minimally filtered by UMIs (only cells with 100 molecules or more are retained).

Each project matrix also has metadata stored in the Loom file's global attributes, described in the table below. In contrast to the other metadata, the input_id is stored in both the global and column attributes, as this is the ID used to link individual library preparations back to the Data Manifest.

Read more about each metadata field in the Metadata Dictionary.

Metadata Attribute Name in HCA Data Portal-Generated MatrixMetadata Description
donor_organism.genus_speciesSpecies information; human or mouse
library_preparation_protocol.library_construction_approachTechnology used for library preparation, i.e 10x or Smart-seq2
specimen_from_organism.organOrgan
project.project_core.project_nameProject name
project.provenance.document_idProject id
input_idMetadata values for sequencing_process.provenance.document_id
input_nameMetadata values for sequencing_input.biomaterial_core.biomaterial_id

More information about HCA Data Portal post-processing for the project-level matrices can be found in the Matrix Overview for the Optimus Pipeline and the Smart-seq2 Pipeline.

HCA Data Portal Library-Level Matrix Overview

Library-level matrices (also Loom files) are cell-by-gene matrices for each individual library preparation in a project. Overall, library-level matrices:

  • Contain the same standardized gene (row) metrics, cell (column) metrics, and counts as the project-level matrices.
  • Are separated by the metadata field for library preparation, sequencing_process.provenance.document_id, allowing you to only use a sub-sampling of all the project's data.
  • Are not filtered by UMIs to remove cells with low numbers of molecules.
  • Only contain the metadata for input_id and input_name (described in the table above).
    • They do not contain all the metadata for species, organ, and sequencing method in the matrix global attributes.

Contributor-Generated Matrix Overview

Contributor-generated matrices are optionally provided by the data contributors and can be useful when trying to annotate cell types or when comparing results back to a contributor’s published results.

When these contributor-generated matrices are available, you can download them from the individual Project page. They will vary in file format and content across projects. For questions about the Contributor-generated matrix, reach out to the contributors listed in the Project page Contact section.

Downloading Matrices

DCP-generated project-level matrices and contributor-generated matrices may be downloaded from the individual Project page.

Project Matrices Filenames

You can also download all matrices (including library-level matrices) using a curl command as described in the Accessing HCA Data and Metadata guide, or export matrices to Terra, a cloud-based platform for bioinformatic analysis (see the Exporting to Terra guide).

Linking HCA Data Portal-Generated Matrices to the Data Manifest (Metadata)

HCA Data Portal project-level matrices only contain some of the available project metadata (species, organs, library methods, etc.). However, there are several metadata facets in the Metadata Manifest, such as disease state or donor information, that you might want to link back to the HCA Data Portal-generated cell-by-gene matrix.

To link a metadata field in the Metadata Manifest back to an individual sample in a HCA Data Portal-generated matrix, use the matrix input_id field. This field includes all the values for the metadata sequencing_process.provenance.document_id, the ID used to demarcate each library preparation.

Matrix Normalization and Batch Correction

Data normalization and batch correction account for technical noise introduced during sample processing, as well as differences between datasets generated from different contributors or at different times. Both techniques are crucial for identifying differentially expressed genes.

Normalization and batch correction techniques vary between processing methods and individual data contributors, and may not be consistent across the matrices available from the Data Portal.

Normalization and Batch Correction for HCA Data Portal-Generated Matrices

  • Data processed with the uniform pipelines are not normalized across nor within projects.
  • 10x matrices produced with the Optimus Pipeline only contain raw counts whereas Smart-seq2 Pipeline matrices contain raw counts as well as normalized TPMs. These TPMs are calculated per individual cell (library preparation) and not across all cells within a project.
  • No batch correction is performed for HCA Data Portal-generated matrices.

Normalization and Batch Correction for Contributor-Generated Matrices

  • For contributor-generated matrices, normalization and/or batch correction techniques are used at the discretion of the project contributor and vary between projects.
  • To learn more about the techniques used for a particular matrix, please reach out to the Contact listed on the Project's Information page.