/** * Loads record ranges needed for emulating BAM index * @param run read collection * @return record ranges */ public static RecordRangeInfo getRecordsRangeInfo(ReadCollection run) { try { return new RecordRangeInfo(SRAUtils.getReferencesLengthsAligned(run), SRAUtils.getNumberOfReads(run)); } catch (ErrorMsg e) { throw new RuntimeException(e); } }
/** * Loads record ranges needed for emulating BAM index * @param run read collection * @return record ranges */ public static RecordRangeInfo getRecordsRangeInfo(ReadCollection run) { try { return new RecordRangeInfo(SRAUtils.getReferencesLengthsAligned(run), SRAUtils.getNumberOfReads(run)); } catch (ErrorMsg e) { throw new RuntimeException(e); } }