Skip to contents

Serializes chromosome sizes as the 2-column, headerless TSV that genome tools and sequence-to-signal models expect.

Usage

write_pseudobulk_chrom_sizes(pb, dir, chrom_sizes)

Arguments

pb

(MarchRPseudobulk) Output of pseudobulk_fragments().

dir

(character) Output directory. The file lands at <dir>/chrom.sizes.

chrom_sizes

(data.frame or GRanges) Chromosome sizes with chr and end, e.g. get_chrom_sizes(proj).

Value

pb with params$chrom_sizes_path set.

Details

Warns when the exported fragments carry a chromosome absent from chrom_sizes. Tools that take both files together fail on that mismatch, and the failure surfaces far from its cause.