gdata.GenomeDataLoaderMap.intersection#

GenomeDataLoaderMap.intersection(regions)#

Creates a new genomic data loader based on specified regions.

This method allows you to subset the genomic data by intersecting it with specified regions across all loaders in the map. The dataset will be updated to only include the regions that intersect with the provided ones.

Parameters:

regions (list[str]) – A list of genomic ranges in string format (e.g., ‘chr1:1000-2000’).

Returns:

A new instance of GenomeDataLoaderMap that contains only the data for the specified regions.

Return type:

GenomeDataLoaderMap