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.

4. Aggregate

scripts/4.aggregate.py

Aggregates single-cell profiles into guide-level and gene-level profiles per plate with Pycytominer, using operation (mean or median).

Does not respect overwrite_files.

Inputs

InputDescription
summary_data/{data_set_name}_sitelist.jsonFrom step 2
single_cell/by_site/{plate}-{well}-{site}/*_single_cell.csv.gzFrom step 2, when save_single_file is false
single_cell/{plate}_single_cell_{data_set_name}.csv.gzFrom step 2, when save_single_file is true

Config used: data_sets (experiment); aggregate.*, process_SBS.gene_col, process_SBS.barcode_col, single_cell.save_single_file, core.* (defaults). See Configuration.

Outputs

OutputDescription
profiles/{plate}_{data_set_name}_guide.csv.gzOne row per gene and barcode
profiles/{plate}_{data_set_name}_gene.csv.gzOne row per gene

Both have Metadata_Batch, Metadata_Plate, and Metadata_Dataset_Split added.