Skip to Content
Python APIHicSnHiCPseudoBulk

SnHiCPseudoBulk

class chr3d.SnHiCPseudoBulk( threads: int = 1, )

Aggregate per-cell .cool matrices into a single pseudobulk matrix.

Merges all passing-QC cell matrices into one combined contact matrix suitable for comparison with bulk Hi-C data.

Parameters

ParameterTypeDescription
threadsintNumber of threads for cooler operations (default: 1)

Methods

aggregate

def aggregate( self, cell_cool_files: List[str], output_cool: str, output_mcool: str, resolutions: Optional[List[int]] = None, ) -> Dict[str, Any]

Merge per-cell .cool files into a pseudobulk matrix.

Parameters:

ParameterTypeDescription
cell_cool_filesList[str]List of paths to per-cell .cool files
output_coolstrPath for aggregated output .cool file
output_mcoolstrPath for multi-resolution .mcool file
resolutionsOptional[List[int]]List of resolutions for zoomify (default: standard set)

Returns:

Dict[str, Any] with aggregation statistics.

aggregate is not yet fully implemented and will raise NotImplementedError.

Last updated on