Don't use asList because it maintains an iterator to the original list and then the result can't be used to create a new one
This commit is contained in:
parent
41ef22fe7c
commit
fea625632f
|
|
@ -364,8 +364,9 @@ public class RecalDataManager {
|
||||||
|
|
||||||
if (keyManager.getOptionalCovariates().size() > 0) { // initialize with the 'all covariates' table
|
if (keyManager.getOptionalCovariates().size() > 0) { // initialize with the 'all covariates' table
|
||||||
// create a key manager for the delta table
|
// create a key manager for the delta table
|
||||||
List<Covariate> requiredCovariates = keyManager.getRequiredCovariates().subList(0, 1); // include the read group covariate as the only required covariate
|
final List<Covariate> requiredCovariates = Arrays.asList(keyManager.getRequiredCovariates().get(0)); // include the read group covariate as the only required covariate
|
||||||
List<Covariate> optionalCovariates = keyManager.getRequiredCovariates().subList(1, 2); // include the quality score covariate as an optional covariate
|
List<Covariate> optionalCovariates = new ArrayList<Covariate>();
|
||||||
|
optionalCovariates.add(keyManager.getRequiredCovariates().get(1)); // include the quality score covariate as an optional covariate
|
||||||
optionalCovariates.addAll(keyManager.getOptionalCovariates()); // include all optional covariates
|
optionalCovariates.addAll(keyManager.getOptionalCovariates()); // include all optional covariates
|
||||||
deltaKeyManager = new BQSRKeyManager(requiredCovariates, optionalCovariates); // initialize the key manager
|
deltaKeyManager = new BQSRKeyManager(requiredCovariates, optionalCovariates); // initialize the key manager
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue