scgenome.tl.mean_from_bigwig

scgenome.tl.mean_from_bigwig#

scgenome.tl.mean_from_bigwig(bins, bigwig_file, column_name, chr_prefix='')#

Count gc in each bin

Parameters:
  • bins (pyranges.PyRanges) – ranges for which to count gc

  • bigwig_file (str) – bigwig filename

  • column_name (str) – column to add to bins

  • chr_prefix (str) – prefix for chromosome names, default ‘’

Returns:

output ranges with additional column for mean bigwig value per bin

Return type:

pyranges.PyRanges