@Override
protected DiPWM loadSecondPWM(String filename) {
if (secondPWMFromMononucleotide) {
BackgroundModel secondBackgroundMononucleotide = Background.fromDiBackground(secondBackground);
PWMImporter secondMotifImporter = new PWMImporter(secondBackgroundMononucleotide, dataModelSecond, effectiveCountSecond, transposeSecond);
return DiPWM.fromPWM( secondMotifImporter.loadMotif(filename) );
} else {
DiPWMImporter secondMotifImporter = new DiPWMImporter(secondBackground, dataModelSecond, effectiveCountSecond, transposeSecond);
return secondMotifImporter.loadMotif(filename);
}
}