glue_genes.glue_genomics_data.bigwig_factory.read_bigwig#

glue_genes.glue_genomics_data.bigwig_factory.read_bigwig(file_name)#

Read a BigWig file into a glue Data object.

Parameters:
file_name: str

The pathname to the BigWig file.

Notes

The ecosystem around bigwig files supports selective data loading and selection from the on-disk file. This will probably require creating a custom glue data object that supports keeping the data on disk. Currently, this loader loads all data into memory.

Also of note is the relation with the bed files, i.e. that they may serve to identify particular areas of the BigWig files that are of interest. It may be necessary to create a loader that also takes an associated BED file so that only relevant information is loaded.

TODO: Investigate if there is a faster library than pyranges for this. Perhaps pyBigWig?