import hicstraw
hic = hicstraw.HiCFile(path)
resolution = min(hic.getResolutions())
chromosomes = {c.name : c for c in hic.getChromosomes()}
mzd = hic.getMatrixZoomData("1", "2", "observed", "KR", "BP", resolution)
what is the fastest way to determine if there will be no records?
Using getRecords seems to be pretty slow for large chromosomes...
records = mzd.getRecords(0, chromosomes["1"].length, 0, chromosomes["2"].length)
len(records) == 0
As per title.
Given a MatrixZoomData file:
what is the fastest way to determine if there will be no records? Using
getRecords
seems to be pretty slow for large chromosomes...Thank you in advance!