net.sourceforge.cilib.bioinf.sequencealignment
Class GapOpeningAndExtensionPenalty
java.lang.Object
net.sourceforge.cilib.bioinf.sequencealignment.GapOpeningAndExtensionPenalty
- All Implemented Interfaces:
- GapPenaltiesMethod
public class GapOpeningAndExtensionPenalty
- extends Object
- implements GapPenaltiesMethod
Method that penalises indels as gap groups.
Penalty for k contiguous indels (1 gap group) = Gop + (k-1)Gep where Gop is GapOpeningPenalty and Gep is GapExtensionPenalty
- Author:
- Fabien Zablocki
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GapOpeningAndExtensionPenalty
public GapOpeningAndExtensionPenalty()
setVerbose
public void setVerbose(boolean verbose)
setGapExtensionPenalty
public void setGapExtensionPenalty(double gapExtensionPenalty)
setGapOpeningPenalty
public void setGapOpeningPenalty(double gapOpeningPenalty)
getPenalty
public double getPenalty(ArrayList<String> alignment)
- Specified by:
getPenalty
in interface GapPenaltiesMethod
Copyright © 2009 CIRG. All Rights Reserved.