Merge branch 'master' of ssh://gsa3.broadinstitute.org/humgen/gsa-scr1/gsa-engineering/git/unstable
This commit is contained in:
commit
e0fa7d1497
|
|
@ -346,7 +346,7 @@ public abstract class ArgumentDefinitionField extends ArgumentField {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getFreezeFields() {
|
protected String getFreezeFields() {
|
||||||
return String.format("if (num_threads.isDefined) nCoresRequest = num_threads%n");
|
return String.format("if (num_threads.isDefined) nCoresRequest = num_threads%nif (num_cpu_threads_per_data_thread.isDefined) nCoresRequest = Some(nCoresRequest.getOrElse(1) * num_cpu_threads_per_data_thread.getOrElse(1))%n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,17 +61,6 @@ public class BaseRecalibration {
|
||||||
// qualityScoreByFullCovariateKey[i] = new NestedHashMap();
|
// qualityScoreByFullCovariateKey[i] = new NestedHashMap();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/**
|
|
||||||
* Thread local cache to allow multi-threaded use of this class
|
|
||||||
*/
|
|
||||||
private ThreadLocal<ReadCovariates> readCovariatesCache;
|
|
||||||
{
|
|
||||||
readCovariatesCache = new ThreadLocal<ReadCovariates> () {
|
|
||||||
@Override protected ReadCovariates initialValue() {
|
|
||||||
return new ReadCovariates(MAXIMUM_RECALIBRATED_READ_LENGTH, requestedCovariates.length);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor using a GATK Report file
|
* Constructor using a GATK Report file
|
||||||
|
|
@ -113,16 +102,7 @@ public class BaseRecalibration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute all covariates for the read
|
final ReadCovariates readCovariates = RecalUtils.computeCovariates(read, requestedCovariates);
|
||||||
// TODO -- the need to clear here suggests there's an error in the indexing / assumption code
|
|
||||||
// TODO -- for BI and DI. Perhaps due to the indel buffer size on the ends of the reads?
|
|
||||||
// TODO -- the output varies depending on whether we clear or not
|
|
||||||
//final ReadCovariates readCovariates = readCovariatesCache.get().clear();
|
|
||||||
|
|
||||||
// the original code -- doesn't do any clearing
|
|
||||||
final ReadCovariates readCovariates = readCovariatesCache.get();
|
|
||||||
|
|
||||||
RecalUtils.computeCovariates(read, requestedCovariates, readCovariates);
|
|
||||||
|
|
||||||
for (final EventType errorModel : EventType.values()) { // recalibrate all three quality strings
|
for (final EventType errorModel : EventType.values()) { // recalibrate all three quality strings
|
||||||
if (disableIndelQuals && errorModel != EventType.BASE_SUBSTITUTION) {
|
if (disableIndelQuals && errorModel != EventType.BASE_SUBSTITUTION) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue