gdata.GenomeDataLoader.difference#

GenomeDataLoader.difference(regions)#

Creating a new genomic data loader in which the regions differ from the specified ones.

This method allows you to subset the genomic data by removing the specified regions.

Parameters:

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

See also

intersection

For creating a loader with intersecting regions.

Returns:

A new instance of GenomeDataLoader that contains only the data for the regions that do not intersect with the specified ones.

Return type:

GenomeDataLoader