/** * Traverse the graph and mark all segments as detached. * * @param cramRecord * the starting point of the graph */ private static void detach(CramCompressionRecord cramRecord) { do { cramRecord.setDetached(true); cramRecord.setHasMateDownStream(false); cramRecord.recordsToNextFragment = -1; } while ((cramRecord = cramRecord.next) != null); }
/** * Traverse the graph and mark all segments as detached. * * @param cramRecord the starting point of the graph */ private static void detach(CramCompressionRecord cramRecord) { do { cramRecord.setDetached(true); cramRecord.setHasMateDownStream(false); cramRecord.recordsToNextFragment = -1; } while ((cramRecord = cramRecord.next) != null); }
/** * Traverse the graph and mark all segments as detached. * * @param cramRecord the starting point of the graph */ private static void detach(CramCompressionRecord cramRecord) { do { cramRecord.setDetached(true); cramRecord.setHasMateDownStream(false); cramRecord.recordsToNextFragment = -1; } while ((cramRecord = cramRecord.next) != null); }
for (CramCompressionRecord r : cramRecords) { if (!r.isMultiFragment()) { r.setDetached(true); r.previous.setHasMateDownStream(true); r.setHasMateDownStream(false); r.setDetached(false); r.previous.setDetached(false); if (r.next != null) continue; r.setDetached(true); if (r.next != null) continue; r.setDetached(true);
} else { for (final CramCompressionRecord cramRecord : cramRecords) { cramRecord.setDetached(true);
for (final CramCompressionRecord r : cramRecords) { if (!r.isMultiFragment()) { r.setDetached(true); r.previous.setHasMateDownStream(true); r.setHasMateDownStream(false); r.setDetached(false); r.previous.setDetached(false); cramRecord.setDetached(true); cramRecord.setDetached(true); cramRecord.setDetached(true);
for (final CramCompressionRecord r : cramRecords) { if (!r.isMultiFragment()) { r.setDetached(true); r.previous.setHasMateDownStream(true); r.setHasMateDownStream(false); r.setDetached(false); r.previous.setDetached(false); cramRecord.setDetached(true); cramRecord.setDetached(true); cramRecord.setDetached(true);