Raw flow cytometry FCS files from a BD FACSAria II: 29 specimens and 9 compensation controls (Caerin 1.1/1.9 antitumour immunity study)

Provider
Tianfang Wang (University of the Sunshine Coast); mirrored by Scigantic
License
CC-BY-4.0
Size
38 files, 231,279,051 bytes
Records
4,445,000 events in total (4,400,000 specimen, 45,000 compensation), $TOT read from each header
Stored at
Amazon S3, s3://scigantic-zenodo-13976956 (us-east-1)
Access
Free and public. No account with the data provider is needed.
Category
Biology
Source
https://doi.org/10.5281/zenodo.13976956

About this dataset

38 event-level .fcs files (FCS 3.0) written by BD FACSDiva 8.0.2 on a BD FACSAria II: 29 specimen acquisitions of mouse tumour-infiltrating immune cells and 9 single-stain compensation controls, 231.3 MB in all. Each file carries 13 parameters (FSC-A/H, SSC-A/H, FITC-A, PE-A, PerCP-Cy5-5-A, PE-Cy7-A, APC-A, APC-Cy7-A, BV421-A, BV510-A, Time) as big-endian 32-bit floats in list mode, measured from the file headers. These are the raw data behind Figure 1C and S2A-C of Li et al., "Caerin 1.1/1.9-mediated antitumor immunity depends on IFNAR-Stat1 signalling of tumour infiltrating macrophage by autocrine IFN-alpha and is enhanced by CD47 blockade" (Wang, Zenodo 13976956, doi:10.5281/zenodo.13976956, CC BY 4.0). Mirrored byte-for-byte into s3://scigantic-zenodo-13976956 with MIRROR.md recording Zenodo's md5 per file; cite the record and authors, not the mirror. This is the instrument-level counterpart of the FACSDiva and FlowJo analysis exports in the flow cytometry ASM archive on this portal: those hold gated statistics, these hold every event.

How to load this dataset in Python

import os, glob, numpy as np, pandas as pd
ROOT = os.environ.get('SCIGANTIC_MOUNT_PATH', '/mnt/archive')   # = s3://scigantic-zenodo-13976956

def read_fcs(path):
    with open(path, 'rb') as f:
        h = f.read(58); t0, t1, d0, d1 = (int(h[i:i + 8]) for i in (10, 18, 26, 34))
        f.seek(t0); txt = f.read(t1 - t0 + 1).decode('latin-1')
        kv = txt[1:].strip(txt[0]).split(txt[0]); meta = dict(zip(kv[0::2], kv[1::2]))
        npar, ntot = int(meta['$PAR']), int(meta['$TOT'])
        assert meta['$DATATYPE'] == 'F' and meta['$BYTEORD'] == '4,3,2,1'
        f.seek(d0); raw = f.read(npar * ntot * 4)
    names = [meta[f'$P{i}N'] for i in range(1, npar + 1)]
    ev = pd.DataFrame(np.frombuffer(raw, '>f4').reshape(ntot, npar).astype(np.float32), columns=names)
    return meta, ev

def spill(meta):
    s = meta['SPILL'].split(','); n = int(s[0])
    return s[1:1 + n], np.array(s[1 + n:], float).reshape(n, n)

# Inventory from the headers
inv = []
for p in sorted(glob.glob(f'{ROOT}/*.fcs')):
    meta, ev = read_fcs(p)
    inv.append({'tube': meta['TUBE NAME'], 'source': meta['$SRC'], 'date': meta['$DATE'], 'events': len(ev)})
display(pd.DataFrame(inv))

# One specimen: compensate with its own SPILL matrix, then arcsinh-transform
meta, ev = read_fcs(glob.glob(f'{ROOT}/Specimen_002_LJJCD24F_1_*.fcs')[0])
chans, S = spill(meta)
ev[chans] = ev[chans].values @ np.linalg.inv(S)
tx = np.arcsinh(ev[chans] / 150)
ax = ev.plot.scatter(x='FSC-A', y='SSC-A', s=1, alpha=0.2, figsize=(5, 4))
tx.describe().T.round(2)

Written for a Scigantic notebook, where /mnt/archive is the mounted dataset.

From any machine

import boto3
from botocore import UNSIGNED
from botocore.client import Config
s3 = boto3.client('s3', region_name='us-east-1', config=Config(signature_version=UNSIGNED))
s3.list_objects_v2(Bucket='scigantic-zenodo-13976956')

Lists the files with anonymous access. Runs on any machine, with no cloud account.

Data structure

Fields

FSC-Afloat32 (big-endian on disk)
FSC-Hfloat32 (big-endian on disk)
SSC-Afloat32 (big-endian on disk)
SSC-Hfloat32 (big-endian on disk)
FITC-Afloat32 (big-endian on disk)
PE-Afloat32 (big-endian on disk)
PerCP-Cy5-5-Afloat32 (big-endian on disk)
PE-Cy7-Afloat32 (big-endian on disk)
APC-Afloat32 (big-endian on disk)
APC-Cy7-Afloat32 (big-endian on disk)
BV421-Afloat32 (big-endian on disk)
BV510-Afloat32 (big-endian on disk)
Timefloat32 (big-endian on disk)

Files

/mnt/archive = s3://scigantic-zenodo-13976956 (flat, 38 files + MIRROR.md).
  Specimen_002_<group>_<replicate>_<nnn>.fcs   specimen acquisitions; groups LJJCD24* (5.2 MB each) and LJJLy6c* (10.4 MB each), plus single-colour controls (*control_0nn.fcs)
  Compensation Controls_<fluorochrome> Stained Control_00n.fcs   single-stain and unstained compensation tubes (263 KB each, 5,000 events)
File names contain spaces; quote them in shell commands.

MEASURED FROM EVERY FILE HEADER (ranged reads of the HEADER+TEXT segments, 2026-10-20):
  all 38 are FCS3.0, $MODE L, $DATATYPE F 32-bit, $BYTEORD 4,3,2,1 (big-endian), DATA segment exactly events x 13 x 4 bytes in every file
  cytometer FACSAriaII ('NEW 70umCopy of 3-laser, 9-color (5-2-2) Configuration 5'), lasers Blue, Red, Violet, threshold FSC,5000, $TIMESTEP 0.01, written by BD FACSDiva Software Version 8.0.2
  experiment '20220427 double 8se 2': compensation tubes 27-APR-2022, specimens 02-MAY-2022
  tubes (TUBE NAME keyword, grouped): APC CD24 control: 1 file(s) x 100,000 events; APC Stained Control: 1 file(s) x 5,000 events; APC-Cy7 Stained Control: 1 file(s) x 5,000 events; APC-cy7-B220 control: 1 file(s) x 200,000 events; APC-cy7-CD3e: 1 file(s) x 100,000 events; BV421 Ly6 control: 1 file(s) x 200,000 events; BV421 Stained Control: 1 file(s) x 5,000 events; BV510 Stained Control: 1 file(s) x 5,000 events; FITC Stained Control: 1 file(s) x 5,000 events; LJJCD24F: 4 file(s) x 100,000 events; LJJCD24P3: 4 file(s) x 100,000 events; LJJCD24PBS: 4 file(s) x 100,000 events; LJJLy6c F: 4 file(s) x 200,000 events; LJJLy6c P3: 4 file(s) x 200,000 events; LJJLy6c PBS: 4 file(s) x 200,000 events; PE Stained Control: 1 file(s) x 5,000 events; PE-Cy7 Stained Control: 1 file(s) x 5,000 events; PE-IFNAR-1 control: 1 file(s) x 200,000 events; PerCP-Cy5-5 Stained Control: 1 file(s) x 5,000 events; Unstained Control: 1 file(s) x 5,000 events
  specimen design: two staining panels (LJJCD24 = CD24 panel, 100,000 events; LJJLy6c = Ly6C panel, 200,000 events) x three conditions (F, P3, PBS) x 4 replicates, plus single-marker controls (APC CD24, APC-Cy7 B220, APC-Cy7 CD3e, BV421 Ly6, PE IFNAR-1)
  PMT voltages (specimens): FSC-A 103, FSC-H 103, SSC-A 290, SSC-H 290, FITC-A 425, PE-A 425, PerCP-Cy5-5-A 480, PE-Cy7-A 500, APC-A 480, APC-Cy7-A 550, BV421-A 410, BV510-A 450

Example file: Compensation Controls_Unstained Control_001.fcs

Sample notebook

Sample notebook for Raw flow cytometry FCS files from a BD FACSAria II: 29 specimens and 9 compensation controls (Caerin 1.1/1.9 antitumour immunity study): worked code with the output it printed.

Analyze this dataset without downloading it

On Scigantic, Raw flow cytometry FCS files from a BD FACSAria II: 29 specimens and 9 compensation controls (Caerin 1.1/1.9 antitumour immunity study) opens in a hosted JupyterLab notebook with the data already mounted, so you can read files where they are stored instead of copying them first. Each notebook includes an AI assistant that can see the mounted files and write and run analysis code. Open the dataset page to launch a notebook, or browse the full catalog.

This page is also available as Markdown.

Topics

Related datasets

Guide