gdata.CatGenomeDataLoader#

class gdata.CatGenomeDataLoader(self, /, loaders, *, batch_size=None, shuffle=None)#

This class combines multiple GenomeDataLoaderMap instances into a single loader.

It allows for the simultaneous loading of genomic data from multiple species. The resulting loader will iterate over all datasets in an alternating fashion.

Parameters:
  • loaders (list[GenomeDataLoaderMap]) – A list of GenomeDataLoaderMap instances to combine.

  • batch_size (Optional[int]) – Optional parameter to specify the batch size for loading genomic sequences.

  • shuffle (Optional[bool]) – Optional parameter to specify whether to shuffle the data across all loaders.

Attributes

n_tracks

Returns a dictionary mapping dataset tags to the number of tracks.

Methods