Added option to be able to write out the active regions to an interval list file
This commit is contained in:
parent
9818c69df6
commit
bbefe4a272
|
|
@ -128,7 +128,16 @@ public class TraverseActiveRegions <M,T> extends TraversalEngine<M,T,ActiveRegio
|
||||||
// add these blocks of work to the work queue
|
// add these blocks of work to the work queue
|
||||||
final ArrayList<ActiveRegion> activeRegions = integrateActiveList( isActiveList );
|
final ArrayList<ActiveRegion> activeRegions = integrateActiveList( isActiveList );
|
||||||
logger.debug("Integrated " + isActiveList.size() + " isActive calls into " + activeRegions.size() + " regions." );
|
logger.debug("Integrated " + isActiveList.size() + " isActive calls into " + activeRegions.size() + " regions." );
|
||||||
workQueue.addAll( activeRegions );
|
if( walker.activeRegionOutStream == null ) {
|
||||||
|
workQueue.addAll( activeRegions );
|
||||||
|
} else { // Just want to output the active regions to a file, not actually process them
|
||||||
|
for( final ActiveRegion activeRegion : activeRegions ) {
|
||||||
|
if( activeRegion.isActive ) {
|
||||||
|
walker.activeRegionOutStream.println( activeRegion.getLocation() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Since we've sufficiently past this point (or this contig!) in the workQueue we can unload those regions and process them
|
// Since we've sufficiently past this point (or this contig!) in the workQueue we can unload those regions and process them
|
||||||
if( !workQueue.isEmpty() ) {
|
if( !workQueue.isEmpty() ) {
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ import java.util.List;
|
||||||
public abstract class ActiveRegionWalker<MapType, ReduceType> extends Walker<MapType, ReduceType> {
|
public abstract class ActiveRegionWalker<MapType, ReduceType> extends Walker<MapType, ReduceType> {
|
||||||
|
|
||||||
@Output(fullName="activeRegionOut", shortName="ARO", doc="Output the active region to this interval list file", required = false)
|
@Output(fullName="activeRegionOut", shortName="ARO", doc="Output the active region to this interval list file", required = false)
|
||||||
protected PrintStream activeRegionOutStream = null;
|
public PrintStream activeRegionOutStream = null;
|
||||||
|
|
||||||
@Input(fullName="activeRegionIn", shortName="AR", doc="Use this interval list file as the active regions to process", required = false)
|
@Input(fullName="activeRegionIn", shortName="AR", doc="Use this interval list file as the active regions to process", required = false)
|
||||||
protected List<IntervalBinding<Feature>> activeRegionBindings = null;
|
protected List<IntervalBinding<Feature>> activeRegionBindings = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue