public final class KAlignerParameters extends Object implements Cloneable, Serializable, AbstractKAlignerParameters
| Constructor and Description |
|---|
KAlignerParameters() |
KAlignerParameters(int mapperKValue,
boolean floatingLeftBound,
boolean floatingRightBound,
float mapperAbsoluteMinScore,
float mapperRelativeMinScore,
float mapperMatchScore,
float mapperMismatchPenalty,
float mapperOffsetShiftPenalty,
int mapperMinSeedsDistance,
int mapperMaxSeedsDistance,
int minAlignmentLength,
int maxAdjacentIndels,
int alignmentStopPenalty,
float absoluteMinScore,
float relativeMinScore,
int maxHits,
LinearGapAlignmentScoring<NucleotideSequence> scoring)
Creates new KAligner
|
| Modifier and Type | Method and Description |
|---|---|
KAlignerParameters |
clone() |
<P> KAligner<P> |
createAligner() |
boolean |
equals(Object o) |
float |
getAbsoluteMinScore()
Returns minimal absolute score of a hit obtained by
KAligner |
int |
getAlignmentStopPenalty()
Returns penalty score defining when to stop alignment procedure performed by
KAlignmentHit.calculateAlignment() |
static Set<String> |
getAvailableNames()
Returns all available parameters presets
|
static KAlignerParameters |
getByName(String name)
Returns parameters by specified preset name
|
float |
getMapperAbsoluteMinScore()
Returns minimal allowed absolute hit score obtained by
KMapper
to consider hit as reliable candidate |
int |
getMapperKValue()
Returns kValue (length of kMers or seeds) used by
KMapper |
float |
getMapperMatchScore()
Returns reward for successfully mapped seeds (used in
KMapper) |
int |
getMapperMaxSeedsDistance()
Returns maximal distance between randomly chosen seeds during alignment in
KMapper |
int |
getMapperMinSeedsDistance()
Returns minimal distance between randomly chosen seeds during alignment in
KMapper |
float |
getMapperMismatchPenalty()
Returns penalty score for not mapped seeds (used in
KMapper) |
float |
getMapperOffsetShiftPenalty()
Returns penalty for different offset between adjacent seeds (used in
KMapper) |
float |
getMapperRelativeMinScore()
Returns minimal allowed ratio between best hit score and other hits obtained by
KMapper to consider hit as reliable candidate |
int |
getMaxAdjacentIndels()
Returns maximal allowed number of insertions and deletions between 2 kMers
|
int |
getMaxHits()
Returns maximal number of hits stored by
KAlignmentResult |
int |
getMinAlignmentLength()
Returns minimal allowed alignment length
|
float |
getRelativeMinScore()
Returns maximal ratio between best hit score and scores of other hits obtained by
KAligner |
LinearGapAlignmentScoring<NucleotideSequence> |
getScoring()
Returns scoring system used for building alignments
|
int |
hashCode() |
boolean |
isFloatingLeftBound()
Checks if left bound of alignment is floating
|
boolean |
isFloatingRightBound()
Checks if right bound of alignment is floating
|
KAlignerParameters |
setAbsoluteMinScore(float absoluteMinScore)
Sets minimal absolute score of a hit obtained by
KAligner |
KAlignerParameters |
setAlignmentStopPenalty(int alignmentStopPenalty)
Sets penalty score defining when to stop alignment procedure performed by
KAlignmentHit.calculateAlignment() |
KAlignerParameters |
setFloatingLeftBound(boolean floatingLeftBound)
Sets left left bound of alignment
|
KAlignerParameters |
setFloatingRightBound(boolean floatingRightBound)
Sets right left bound of alignment
|
KAlignerParameters |
setMapperAbsoluteMinScore(float mapperAbsoluteMinScore)
Sets minimal allowed absolute hit score obtained by
KMapper to
consider hit as reliable candidate |
KAlignerParameters |
setMapperKValue(int kValue)
Sets kValue (length of kMers or seeds) used by
KMapper |
KAlignerParameters |
setMapperMatchScore(float mapperMatchScore)
Sets for successfully mapped seeds (used in
KMapper) |
KAlignerParameters |
setMapperMaxSeedsDistance(int mapperMaxSeedsDistance)
Sets maximal distance between randomly chosen seeds during alignment in
KMapper |
KAlignerParameters |
setMapperMinSeedsDistance(int mapperMinSeedsDistance)
Sets minimal distance between randomly chosen seeds during alignment in
KMapper |
KAlignerParameters |
setMapperMismatchPenalty(float mapperMismatchPenalty)
Sets penalty score for not mapped seed
|
KAlignerParameters |
setMapperOffsetShiftPenalty(float mapperOffsetShiftPenalty)
Sets penalty for different offset between adjacent seeds (used in
KMapper), |
KAlignerParameters |
setMapperRelativeMinScore(float mapperRelativeMinScore)
Sets minimal allowed ratio between best hit score and other hits obtained by
KMapper to consider hit as reliable candidate |
KAlignerParameters |
setMaxAdjacentIndels(int maxAdjacentIndels)
Sets maximal allowed number of insertions and deletions between 2 kMers
|
KAlignerParameters |
setMaxHits(int maxHits)
Sets maximal number of hits stored by
KAlignmentResult |
KAlignerParameters |
setMinAlignmentLength(int minAlignmentLength)
Sets minimal allowed alignment length
|
KAlignerParameters |
setRelativeMinScore(float relativeMinScore)
Sets maximal ratio between best hit score and scores of other hits obtained by
KAligner |
KAlignerParameters |
setScoring(LinearGapAlignmentScoring scoring)
Sets scoring system used for building alignments
|
String |
toString() |
public KAlignerParameters()
public KAlignerParameters(int mapperKValue,
boolean floatingLeftBound,
boolean floatingRightBound,
float mapperAbsoluteMinScore,
float mapperRelativeMinScore,
float mapperMatchScore,
float mapperMismatchPenalty,
float mapperOffsetShiftPenalty,
int mapperMinSeedsDistance,
int mapperMaxSeedsDistance,
int minAlignmentLength,
int maxAdjacentIndels,
int alignmentStopPenalty,
float absoluteMinScore,
float relativeMinScore,
int maxHits,
LinearGapAlignmentScoring<NucleotideSequence> scoring)
mapperKValue - length of k-mers (seeds) used by KMapperfloatingLeftBound - true if left bound of alignment could be floatingfloatingRightBound - true if right bound of alignment could be floatingmapperAbsoluteMinScore - minimal allowed absolute hit score obtained by KMapper
to consider hit as reliable candidatemapperRelativeMinScore - minimal allowed ratio between best hit score and scores of other hits obtained
by
KMapper to consider hit as
reliable candidatemapperMatchScore - reward for successfully mapped seeds (used in KMapper),
must be > 0mapperMismatchPenalty - penalty for not mapped seed (used in KMapper),
must be < 0mapperOffsetShiftPenalty - penalty for different offset between adjacent seeds (used in KMapper), must be < 0mapperMinSeedsDistance - minimal distance between randomly chosen seeds during alignment in KMappermapperMaxSeedsDistance - maximal distance between randomly chosen seeds during alignment in KMapperminAlignmentLength - minimal allowed alignment lengthmaxAdjacentIndels - maximal allowed number of insertions and deletions between 2 kMersalignmentStopPenalty - penalty score defining when to stop alignment procedure performed by KAlignmentHit.calculateAlignment()absoluteMinScore - minimal absolute score of a hit obtained by KAlignerrelativeMinScore - maximal ratio between best hit score and scores of other hits obtained by KAlignermaxHits - maximal number of hits stored by KAlignmentResultscoring - scoring system used for building alignmentspublic static KAlignerParameters getByName(String name)
name - parameters preset namepublic static Set<String> getAvailableNames()
public <P> KAligner<P> createAligner()
createAligner in interface BatchAlignerWithBaseParameterspublic int getMapperKValue()
KMapperpublic KAlignerParameters setMapperKValue(int kValue)
KMapperkValue - public float getMapperAbsoluteMinScore()
KMapper
to consider hit as reliable candidateKMapperpublic KAlignerParameters setMapperAbsoluteMinScore(float mapperAbsoluteMinScore)
KMapper to
consider hit as reliable candidatemapperAbsoluteMinScore - minimal allowed absolute hit score valuepublic float getMapperRelativeMinScore()
KMapper to consider hit as reliable candidateKMapperpublic KAlignerParameters setMapperRelativeMinScore(float mapperRelativeMinScore)
KMapper to consider hit as reliable candidatemapperRelativeMinScore - minimal allowed ratio between best hit score and other hitspublic float getMapperMatchScore()
KMapper)public KAlignerParameters setMapperMatchScore(float mapperMatchScore)
KMapper)mapperMatchScore - reward for successfully mapped seeds (used in KMapper),
must be > 0public float getMapperMismatchPenalty()
KMapper)public KAlignerParameters setMapperMismatchPenalty(float mapperMismatchPenalty)
mapperMismatchPenalty - penalty for not mapped seed (used in KMapper),
must be < 0public int getMinAlignmentLength()
public KAlignerParameters setMinAlignmentLength(int minAlignmentLength)
minAlignmentLength - minimal allowed alignment lengthpublic int getMaxAdjacentIndels()
public KAlignerParameters setMaxAdjacentIndels(int maxAdjacentIndels)
maxAdjacentIndels - maximal allowed number of insertions and deletions between 2 kMerspublic int getMapperMinSeedsDistance()
KMapperpublic KAlignerParameters setMapperMinSeedsDistance(int mapperMinSeedsDistance)
KMappermapperMinSeedsDistance - minimal distance between randomly chosen seedspublic int getMapperMaxSeedsDistance()
KMapperpublic KAlignerParameters setMapperMaxSeedsDistance(int mapperMaxSeedsDistance)
KMappermapperMaxSeedsDistance - maximal distance between randomly chosen seedspublic int getAlignmentStopPenalty()
KAlignmentHit.calculateAlignment()public KAlignerParameters setAlignmentStopPenalty(int alignmentStopPenalty)
KAlignmentHit.calculateAlignment()alignmentStopPenalty - penalty scorepublic LinearGapAlignmentScoring<NucleotideSequence> getScoring()
getScoring in interface BatchAlignerWithBaseParameterspublic KAlignerParameters setScoring(LinearGapAlignmentScoring scoring)
scoring - scoring systempublic boolean isFloatingLeftBound()
isFloatingLeftBound in interface AbstractKAlignerParameterstrue if left bound of alignment is floatingpublic KAlignerParameters setFloatingLeftBound(boolean floatingLeftBound)
floatingLeftBound - true if left bound of alignment could be floatingpublic boolean isFloatingRightBound()
isFloatingRightBound in interface AbstractKAlignerParameterstrue if right bound of alignment is floatingpublic KAlignerParameters setFloatingRightBound(boolean floatingRightBound)
floatingRightBound - true if right bound of alignment could be floatingpublic float getMapperOffsetShiftPenalty()
KMapper)public KAlignerParameters setMapperOffsetShiftPenalty(float mapperOffsetShiftPenalty)
KMapper),mapperOffsetShiftPenalty - penalty for different offset between adjacent seeds, must be < 0public float getAbsoluteMinScore()
KAlignerpublic KAlignerParameters setAbsoluteMinScore(float absoluteMinScore)
KAlignerabsoluteMinScore - minimal absolute score of a hitpublic float getRelativeMinScore()
KAlignergetRelativeMinScore in interface AbstractKAlignerParameterspublic KAlignerParameters setRelativeMinScore(float relativeMinScore)
KAlignerrelativeMinScore - maximal ratio between best hit score and scores of other hitspublic int getMaxHits()
KAlignmentResultgetMaxHits in interface AbstractKAlignerParameterspublic KAlignerParameters setMaxHits(int maxHits)
KAlignmentResultmaxHits - maximal number of stored hitspublic KAlignerParameters clone()
clone in interface BatchAlignerWithBaseParametersclone in interface AbstractKAlignerParametersclone in class ObjectCopyright © 2018. All rights reserved.