Browser-first
Uses File API for random access without loading the entire file into memory.
JavaScript library for reading 10x Genomics Loupe files in the browser
npm install cloupe.jsimport { CloupeReader } from "cloupe.js";
// Open a .cloupe file
const reader = await CloupeReader.open(file);
// Get summary information
const summary = await reader.getSummary();
console.log(`Cells: ${summary.barcodeCount}, Genes: ${summary.featureCount}`);
// Read UMAP/t-SNE coordinates
const projection = await reader.getDefaultProjection();
// Search for genes
const results = await reader.features.search("CD3");
// Clean up
reader.close();A .cloupe file is a single-cell genomics data format used by 10x Genomics' Loupe Browser. Generated by the Cell Ranger pipeline, it contains:
Previously, reading .cloupe files required the Loupe Browser desktop application or Python/R libraries. cloupe.js enables reading .cloupe files directly in the browser, making it possible to: