rec.setAlignmentStart(start);
CigarParser cp = new CigarParser('-');
- String bfresult = cp.parseCigarToSequence(rec, insertions, 1);
+ String bfresult = cp.parseCigarToSequence(rec, insertions, 1, null);
System.out.println(result);
System.out.println(bfresult);
Iterator<SAMRecord> it = builder.iterator();
CigarParser cp = new CigarParser('-');
- SortedMap<Integer, Integer> insertions = cp.getInsertions(it);
+ Range xtent[] = new Range[] { new Range(0, 0) };
+ SortedMap<Integer, Integer> insertions,
+ insertStrands[] = cp.getInsertions(it, xtent);
+ Assert.assertEquals(insertStrands.length, 2);
+ insertions = insertStrands[0];
Assert.assertEquals(insertions.size(), 6);
Assert.assertTrue(insertions.containsKey(28838));
Assert.assertEquals((int) insertions.get(28838), 1);