S - type of sequences to be aligned using this scoringpublic final class AffineGapAlignmentScoring<S extends Sequence<S>> extends AbstractAlignmentScoring<S> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AffineGapAlignmentScoring.SerializationObject |
| Modifier and Type | Field and Description |
|---|---|
static AffineGapAlignmentScoring<NucleotideSequence> |
IGBLAST_NUCLEOTIDE_SCORING
Scoring as used in IgBlast for alignments of V genes
|
static int |
IGBLAST_NUCLEOTIDE_SCORING_THRESHOLD
Scoring threshold as used in IgBlast for alignments of V
genes
|
alphabet, subsMatrix, subsMatrixActual| Constructor and Description |
|---|
AffineGapAlignmentScoring(Alphabet<S> alphabet,
int[] subsMatrix,
int gapOpenPenalty,
int gapExtensionPenalty)
Creates new AffineGapScoring
|
AffineGapAlignmentScoring(Alphabet<S> alphabet,
int match,
int mismatch,
int gapOpen,
int gapExtension)
Creates scoring with uniform match and mismatch scores
|
AffineGapAlignmentScoring(Alphabet<S> alphabet,
com.milaboratory.core.alignment.SubstitutionMatrix subsMatrix,
int gapOpenPenalty,
int gapExtensionPenalty) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getAffineGapPenalty(int l)
Returns score value for a gap with length
l |
static AffineGapAlignmentScoring<AminoAcidSequence> |
getAminoAcidBLASTScoring(BLASTMatrix matrix)
Returns standard AminoAcid BLAST scoring (
#gapOpenPenalty=-10, #gapExtensionPenalty=-1) |
static AffineGapAlignmentScoring<AminoAcidSequence> |
getAminoAcidBLASTScoring(BLASTMatrix matrix,
int gapOpenPenalty,
int gapExtensionPenalty)
Returns AminoAcid BLAST scoring
|
int |
getGapExtensionPenalty()
Returns penalty value for extending gap
|
int |
getGapOpenPenalty()
Returns penalty value for opening gap
|
static AffineGapAlignmentScoring<NucleotideSequence> |
getNucleotideBLASTScoring()
Returns standard Nucleotide BLAST scoring (
#gapOpenPenalty=-10, #gapExtensionPenalty=-1) |
static AffineGapAlignmentScoring<NucleotideSequence> |
getNucleotideBLASTScoring(int gapOpenPenalty,
int gapExtensionPenalty)
Returns Nucleotide BLAST scoring
|
int |
hashCode() |
AffineGapAlignmentScoring<S> |
setGapExtensionScore(int gapExtensionPenalty) |
AffineGapAlignmentScoring<S> |
setGapOpenScore(int gapOpenPenalty) |
AffineGapAlignmentScoring<S> |
setMatchScore(int matchScore) |
AffineGapAlignmentScoring<S> |
setMismatchScore(int mismatchScore) |
protected Object |
writeReplace() |
getAlphabet, getMaximalMatchScore, getMaximalMismatchScore, getMinimalMatchScore, getMinimalMismatchScore, getScore, uniformBasicMatchScorepublic static final AffineGapAlignmentScoring<NucleotideSequence> IGBLAST_NUCLEOTIDE_SCORING
public static final int IGBLAST_NUCLEOTIDE_SCORING_THRESHOLD
public AffineGapAlignmentScoring(Alphabet<S> alphabet, com.milaboratory.core.alignment.SubstitutionMatrix subsMatrix, int gapOpenPenalty, int gapExtensionPenalty)
public AffineGapAlignmentScoring(Alphabet<S> alphabet, int[] subsMatrix, int gapOpenPenalty, int gapExtensionPenalty)
alphabet - alphabet to be usedsubsMatrix - substitution matrix to be usedgapOpenPenalty - penalty for opening gapgapExtensionPenalty - penalty for extending gappublic AffineGapAlignmentScoring(Alphabet<S> alphabet, int match, int mismatch, int gapOpen, int gapExtension)
alphabet - alphabetmatch - match score > 0mismatch - mismatch score < 0gapOpen - gap open score < 0gapExtension - gap extend score < 0public int getAffineGapPenalty(int l)
ll - lenth of gappublic int getGapOpenPenalty()
public int getGapExtensionPenalty()
public AffineGapAlignmentScoring<S> setMatchScore(int matchScore)
public AffineGapAlignmentScoring<S> setMismatchScore(int mismatchScore)
public AffineGapAlignmentScoring<S> setGapOpenScore(int gapOpenPenalty)
public AffineGapAlignmentScoring<S> setGapExtensionScore(int gapExtensionPenalty)
public boolean equals(Object o)
equals in class AbstractAlignmentScoring<S extends Sequence<S>>public int hashCode()
hashCode in class AbstractAlignmentScoring<S extends Sequence<S>>public static AffineGapAlignmentScoring<NucleotideSequence> getNucleotideBLASTScoring()
#gapOpenPenalty=-10, #gapExtensionPenalty=-1)public static AffineGapAlignmentScoring<NucleotideSequence> getNucleotideBLASTScoring(int gapOpenPenalty, int gapExtensionPenalty)
gapOpenPenalty - penalty for opening gap to be used in systemgapExtensionPenalty - penalty for extending gap to be used in systempublic static AffineGapAlignmentScoring<AminoAcidSequence> getAminoAcidBLASTScoring(BLASTMatrix matrix)
#gapOpenPenalty=-10, #gapExtensionPenalty=-1)matrix - BLAST substitution matrix to be usedpublic static AffineGapAlignmentScoring<AminoAcidSequence> getAminoAcidBLASTScoring(BLASTMatrix matrix, int gapOpenPenalty, int gapExtensionPenalty)
matrix - BLAST substitution matrix to be usedgapOpenPenalty - penalty for opening gap to be used in systemgapExtensionPenalty - penalty for extending gap to be used in systemprotected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionCopyright © 2018. All rights reserved.