@Override
protected List<DiPWM> loadMotifCollection() {
if (collectionFromMononucleotide) {
BackgroundModel collectionBackgroundMononucleotide = Background.fromDiBackground(collectionBackground);
PWMImporter importer = new PWMImporter(collectionBackgroundMononucleotide, dataModel, effectiveCount, collectionTranspose);
List<PWM> monoCollection = importer.loadMotifCollection(pathToCollectionOfPWMs);
List<DiPWM> diCollection = new ArrayList<DiPWM>(monoCollection.size());
for(PWM monoPWM: monoCollection) {
diCollection.add(DiPWM.fromPWM(monoPWM));
}
return diCollection;
} else {
DiPWMImporter importer = new DiPWMImporter(collectionBackground, dataModel, effectiveCount, collectionTranspose);
return importer.loadMotifCollection(pathToCollectionOfPWMs);
}
}