gtars-fragsplit
Split fragment files according to pseudobulk assignments for single-cell ATAC-seq data processing.
Features
Section titled “Features”- Efficient fragment file splitting
- Pseudobulk generation from single-cell data
- Support for cell type annotations
- Gzip compression support
- Memory-efficient streaming
Command Line
Section titled “Command Line”gtars fragsplit \ --fragments fragments.tsv.gz \ --barcodes barcodes.txt \ --output-dir pseudobulk/From Python
Section titled “From Python”from gtars import fragsplit
fragsplit.split_by_clusters( fragments="fragments.tsv.gz", clusters="clusters.csv", output_dir="pseudobulk/")Input Formats
Section titled “Input Formats”Fragment File
Section titled “Fragment File”Standard 10x Genomics format:
chr1 1000 1500 AAACCCAAGAAACACT-1 1Barcode Assignment
Section titled “Barcode Assignment”AAACCCAAGAAACACT-1 cluster1AAACCCAAGAAACAGC-1 cluster2Output
Section titled “Output”Creates one fragment file per cluster/pseudobulk group with appropriate cell barcodes.