Use constant seed in the random generator so we can be stable (and thus unit tests will work)
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1607 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
15178977e1
commit
c669e8d5ad
|
|
@ -41,6 +41,7 @@ public class IntervalCleanerWalker extends LocusWindowWalker<Integer, Integer>
|
|||
int MAX_READS_FOR_CONSENSUSES = 120;
|
||||
|
||||
public static final int MAX_QUAL = 99;
|
||||
public static final long RANDOM_SEED = 1252863495;
|
||||
|
||||
// fraction of mismatches that need to no longer mismatch for a column to be considered cleaned
|
||||
private static final double MISMATCH_COLUMN_CLEANED_FRACTION = 0.75;
|
||||
|
|
@ -72,7 +73,7 @@ public class IntervalCleanerWalker extends LocusWindowWalker<Integer, Integer>
|
|||
|
||||
logger.info("Writing into output BAM file");
|
||||
logger.info("Temporary space used: "+System.getProperty("java.io.tmpdir"));
|
||||
generator = new Random();
|
||||
generator = new Random(RANDOM_SEED);
|
||||
|
||||
if ( OUT_INDELS != null ) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue