Open xiangyanghuakai666 opened 8 months ago
hic = hicstraw.HiCFile(filepath) hic.getChromosomes() hic.getGenomeID() hic.getResolutions()
mzd = hic.getMatrixZoomData(chrom1, chrom2, data_type, normalization, "BP", resolution)
numpy_matrix = mzd.getRecordsAsMatrix(gr1, gr2, gc1, gc2) records_list = mzd.getRecords(gr1, gr2, gc1, gc2)
这里的gr1, gr2, gc1, gc2可以是0、整条染色体的长度吗?(我输入了:0,248956422,0,248956422,去查看第一条染色体的信息,会报错) getRecordsAsMatrix和getRecords分别得到什么信息?
hic = hicstraw.HiCFile(filepath) hic.getChromosomes() hic.getGenomeID() hic.getResolutions()
mzd = hic.getMatrixZoomData(chrom1, chrom2, data_type, normalization, "BP", resolution)
numpy_matrix = mzd.getRecordsAsMatrix(gr1, gr2, gc1, gc2) records_list = mzd.getRecords(gr1, gr2, gc1, gc2)
这里的gr1, gr2, gc1, gc2可以是0、整条染色体的长度吗?(我输入了:0,248956422,0,248956422,去查看第一条染色体的信息,会报错) getRecordsAsMatrix和getRecords分别得到什么信息?