don't crash when an unmapped read is encountered, just write it into the output file, it should be ok
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1111 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
da1f168a3e
commit
1a97c86f95
|
|
@ -95,6 +95,12 @@ public class CleanedReadInjector extends ReadWalker<Integer,Integer> {
|
|||
*/
|
||||
@Override
|
||||
public Integer map(char[] ref, SAMRecord read) {
|
||||
|
||||
if( read.getReadUnmappedFlag() ) {
|
||||
outputBAM.addAlignment(read);
|
||||
return 0;
|
||||
}
|
||||
|
||||
GenomeLoc loc = GenomeLocParser.createGenomeLoc(read);
|
||||
|
||||
while( loc.isPast(interval) && intervals.size() > 0 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue