Search in sources :

Example 1 with KAlignerParameters2

use of com.milaboratory.core.alignment.kaligner2.KAlignerParameters2 in project mixcr by milaboratory.

the class VDJCAlignerS method extractBatchParameters.

@Override
protected BatchAlignerWithBaseParameters extractBatchParameters(KGeneAlignmentParameters init) {
    final BatchAlignerWithBaseParameters p = init.getParameters().clone();
    if (p instanceof KAlignerParameters) {
        KAlignerParameters p1 = (KAlignerParameters) p;
        p1.setAbsoluteMinScore(init.getMinSumScore());
        p1.setRelativeMinScore(init.getRelativeMinScore());
    } else if (p instanceof KAlignerParameters2) {
        KAlignerParameters2 p2 = (KAlignerParameters2) p;
        p2.setAbsoluteMinScore(init.getMinSumScore());
        p2.setRelativeMinScore(init.getRelativeMinScore());
    } else
        throw new RuntimeException();
    return p;
}
Also used : BatchAlignerWithBaseParameters(com.milaboratory.core.alignment.batch.BatchAlignerWithBaseParameters) KAlignerParameters(com.milaboratory.core.alignment.kaligner1.KAlignerParameters) KAlignerParameters2(com.milaboratory.core.alignment.kaligner2.KAlignerParameters2)

Aggregations

BatchAlignerWithBaseParameters (com.milaboratory.core.alignment.batch.BatchAlignerWithBaseParameters)1 KAlignerParameters (com.milaboratory.core.alignment.kaligner1.KAlignerParameters)1 KAlignerParameters2 (com.milaboratory.core.alignment.kaligner2.KAlignerParameters2)1