Added a little bit of hack to get the header back to the walker by initialization time, which was before sharding in the last version.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@516 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
0208d201c7
commit
635bfd8604
|
|
@ -103,8 +103,8 @@ public class MicroManager {
|
||||||
throw new RuntimeException( ex );
|
throw new RuntimeException( ex );
|
||||||
}
|
}
|
||||||
|
|
||||||
walker.initialize();
|
boolean walkerInitialized = false;
|
||||||
Object accumulator = ((LocusWalker<?,?>)walker).reduceInit();
|
Object accumulator = null;
|
||||||
|
|
||||||
for(Shard shard: shardStrategy) {
|
for(Shard shard: shardStrategy) {
|
||||||
// CloseableIterator<SAMRecord> readShard = null;
|
// CloseableIterator<SAMRecord> readShard = null;
|
||||||
|
|
@ -121,6 +121,13 @@ public class MicroManager {
|
||||||
|
|
||||||
// set the sam header of the traversal engine
|
// set the sam header of the traversal engine
|
||||||
traversalEngine.setSAMHeader(readShard.getMergedHeader());
|
traversalEngine.setSAMHeader(readShard.getMergedHeader());
|
||||||
|
|
||||||
|
if (!walkerInitialized) {
|
||||||
|
walker.initialize();
|
||||||
|
accumulator = ((LocusWalker<?,?>)walker).reduceInit();
|
||||||
|
walkerInitialized = true;
|
||||||
|
}
|
||||||
|
|
||||||
System.err.println(traversalEngine.getSAMHeader().getSequenceDictionary().toString());
|
System.err.println(traversalEngine.getSAMHeader().getSequenceDictionary().toString());
|
||||||
accumulator = traversalEngine.traverse( walker, shard, referenceProvider, locusProvider, accumulator );
|
accumulator = traversalEngine.traverse( walker, shard, referenceProvider, locusProvider, accumulator );
|
||||||
readShard.close();
|
readShard.close();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue