Pixelator commands
This section provides an overview of the commands from pixelator that the pipeline executes. For detailed usage and options, please refer to the command-specific documentation.
Overview of the pipeline
The PNA pipeline consists of the following steps:
- Edgelist
Do quality control checks of input reads and build a per-read edge list directly from the FASTQ files - Aggregate
Derive original molecules to use as edge list downstream by merging the per-read edge lists and counting reads for each molecule - Graph construction
Compute the components of the graph from the edge list in order to create putative cells - Graph collapse
Correct likely UMI sequencing errors in the cell graphs - Denoising
Denoise the cell graphs - Sample calling
Split hashed from pools into per-sample data (only run for proxiome-v2 data) - Analysis
Analyze the spatial information in the cell graphs
Edgelist
Command:
pixelator single-cell-pna edgelist
The Edgelist step converts raw FASTQ data directly into a per-read edge list, based on the Proximity Network Assay (PNA) design. It supports both single-end and paired-end data and identifies the antibody markers and unique molecular identifiers (UMIs) from the reads.
Key Operations:
- Marker Matching: Matches read barcodes against a known antibody panel, allowing for minor mismatches.
- Quality Filtering: Discards reads with a low average quality in the marker and UMI regions.
- Complexity Filtering: Discards reads with low-complexity UMIs, i.e. where a single base makes up too large a fraction of the UMI.
- LBS Filtering: Discards reads whose UMI is too similar to an assay LBS sequence.
Each FASTQ input (e.g. each lane of a sample) is processed independently. The output is a per-read edge list in Parquet format, together with a QC report. Optionally, the reads that were dropped can be saved together with the reason they were dropped.
Aggregate
Command:
pixelator single-cell-pna aggregate
The Aggregate step merges the per-read edge lists of all the FASTQ inputs of a sample (or pool) and collapses them into unique molecules, counting the reads that support each molecule.
Key Operations:
- Merging: Combines the edge lists of several inputs (e.g. lanes) into a single dataset.
- Deduplication: Groups identical reads into a single record per unique molecule.
- Read Counting: Records the number of reads supporting each molecule.
The result is a Parquet dataset of unique "protein links" (edge list). This can then be used by the graph step to construct the cell graphs.
Graph construction
Command:
pixelator single-cell-pna graph
The Graph step identifies and partitions connected components within the molecular edge list to define individual putative cells.
Key Operations:
- Network Construction: Builds a global graph using antibody markers as nodes and aggregated molecules as edges.
- Multiplet Recovery: Resolves "mega-clusters" into distinct components (cell graphs) using community detection methods.
- Edge Pruning: Employs optional edge cycle verification to remove spurious crossing edges between components.
- Size Filtering: Discards components that do not meet quality thresholds to ensure robust single-cell data.
From this step and onwards, the output file are in PXL format. This is a custom format used by Pixelator to make PNA data easier to work with. Internally it used duckdb to store the data. For more information on the PXL format, please refer to the Pixelator documentation.
Graph collapse
Command:
pixelator single-cell-pna graph-collapse
The Graph collapse step corrects likely UMI sequencing errors in each component (cell graph). Since a UMI read error is unlikely to recur, an erroneous UMI typically shows up as a leaf node (degree 1) in its component.
Key Operations:
- Candidate Search: For each low-degree node, searches outward in the graph (up to a maximum number of hops) for the nearest node of the same role whose UMI is within a given Hamming distance.
- UMI Correction: Renames the node to that candidate, following chains of matches to their end, only when both UMIs have the same marker.
The result is a corrected .pxl file. This step can be skipped in the pipeline.
Denoising
Command:
pixelator single-cell-pna denoise
The Denoise step provides a comprehensive noise-reduction framework using two complementary graph-based techniques to refine the PNA components.
Key Operations:
- Adaptive Core Expansion (ACE):
Prunes peripheral-like structures with low connectivity. - Partial Least Squares (PLS):
Employs Partial Least Squares (PLS) to model the relationship between local protein composition and connectivity, allowing the identification and removal of nodes correlating with low connectivity.
Identified noise nodes are collectively removed and the remaining PNA components are stabilized, resulting in a .pxl dataset with a significantly improved signal-to-noise ratio for accurate biological analysis.
Sample calling
Command:
pixelator single-cell-pna sample-calling
Note that this step is only run for proxiome-v2 data
When samples are stained with hashing antibodies and pooled, sample calling splits the pool back into per-sample data.
Key operations:
- Define hashing panels:
Each sample in the pool is associated with a set of hashing antibodies (often three per sample). - Count per cell:
For each cell, total the hashing signal that supports each sample, e.g.sample-1: 200,sample-2: 20,sample-3: 10. - Pick the best-matching sample:
The sample with the highest total is taken as the cell’s likely origin (in the example, sample-1 with 200). - Score confidence:
Let be the set of those per-sample counts. A confidence score is (in the example, ). - Apply a threshold:
If is below a cutoff , the cell is labeled undetermined; otherwise it is assigned to the winning sample (in the example, assign to sample-1 if , else undetermined).
The sample-calling command writes one .pxl file per sample in the pool, and optionally a separate .pxl for undetermined cells.
Analysis
This step uses the pixelator single-cell-pna analysis command to calculate spatial statistics.
The Analysis step enriches cell graphs with spatial and network metrics to characterize protein co-localization and structural complexity.
Primary Analytical Modules:
- Proximity Analysis: Computes statistical proximity scores between pairs of protein markers.
- K-Core Analysis: Quantifies graph connectivity via k-core decomposition.
This step updates the .pxl file with a proximity score table and adds quality metrics to the cell-specific metadata.
3D layouts for visualization are not computed by a separate step: they are computed on the fly when the data is analyzed.