public static RegionCoverage getCoverageFromBigWig ( Region region , int windowSize , Path bigwigPath ) throws IOException { FileUtils . checkFile ( bigwigPath ) ; BigWigManager bigWigManager = new BigWigManager ( bigwigPath ) ; float [ ] avgCoverage = bigWigManager . groupBy ( region , windowSize ) ; return new RegionCoverage ( region , windowSize , avgCoverage ) ; }
Return the coverage average given a window size from the BigWig file passed .