|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.toolbox.proteomics.feature.matching.Window2DFeatureSetMatcher
public class Window2DFeatureSetMatcher
Attempts to match one feature set against another using a window of minimum and maximum mass and elution time differences, not necessarily centered at 0.
| Field Summary | |
|---|---|
static int |
DEFAULT_ELUTION_MODE
|
static int |
ELUTION_MODE_HYDROPHOBICITY
|
static int |
ELUTION_MODE_SCAN
|
static int |
ELUTION_MODE_TIME
|
static int |
ELUTION_RANGE_MODE_POINT
|
static int |
ELUTION_RANGE_MODE_RANGE
|
protected int |
elutionMode
|
protected int |
elutionRangeMode
|
protected int |
massDiffType
|
protected boolean |
matchWithinChargeOnly
|
protected float |
maxElutionDiff
|
protected float |
maxMassDiff
|
protected float |
minElutionDiff
|
protected float |
minMassDiff
|
| Constructor Summary | |
|---|---|
Window2DFeatureSetMatcher()
|
|
| Method Summary | |
|---|---|
protected float |
calcElutionDiff(Feature feature1,
Feature feature2)
|
java.util.List<Feature> |
findMatchingFeatures(Feature[] slaveFeatures,
Feature masterFeature,
java.util.Comparator<Feature> featureComparator)
Find the single slave features that most closely match this Master feature |
int |
getElutionMode()
|
int |
getElutionRangeMode()
|
int |
getMassDiffType()
|
float |
getMaxElutionDiff()
|
protected double |
getMaxElutionRangeValue(Feature feature)
switch on elutionMode to return the appropriate elution value for this feature |
float |
getMaxMassDiff()
|
float |
getMinElutionDiff()
|
protected double |
getMinElutionRangeValue(Feature feature)
switch on elutionMode to return the appropriate elution value for this feature |
float |
getMinMassDiff()
|
protected double |
getPointElutionValue(Feature feature)
switch on elutionMode to return the appropriate elution value for this feature |
boolean |
isMatchWithinChargeOnly()
|
FeatureSetMatcher.FeatureMatchingResult |
matchFeatures(FeatureSet masterFeatures,
FeatureSet slaveFeatures)
Match the features in ms2Features against ms1Features. |
void |
setElutionMode(int elutionMode)
|
void |
setElutionRangeMode(int elutionRangeMode)
|
void |
setMassDiffType(int massDiffType)
|
void |
setMatchingParameters(float minMassDiff,
float maxMassDiff,
float minElutionDiff,
float maxElutionDiff,
int massDiffType)
Convenience method to set a bunch of parameters at once |
void |
setMatchWithinChargeOnly(boolean matchWithinChargeOnly)
|
void |
setMaxElutionDiff(float maxElutionDiff)
|
void |
setMaxMassDiff(float maxMassDiff)
|
void |
setMinElutionDiff(float minElutionDiff)
|
void |
setMinMassDiff(float minMassDiff)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected float minMassDiff
protected float maxMassDiff
protected float minElutionDiff
protected float maxElutionDiff
protected int massDiffType
public static final int ELUTION_MODE_HYDROPHOBICITY
public static final int ELUTION_MODE_TIME
public static final int ELUTION_MODE_SCAN
public static final int DEFAULT_ELUTION_MODE
protected int elutionMode
public static final int ELUTION_RANGE_MODE_POINT
public static final int ELUTION_RANGE_MODE_RANGE
protected int elutionRangeMode
protected boolean matchWithinChargeOnly
| Constructor Detail |
|---|
public Window2DFeatureSetMatcher()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public void setMatchingParameters(float minMassDiff,
float maxMassDiff,
float minElutionDiff,
float maxElutionDiff,
int massDiffType)
public FeatureSetMatcher.FeatureMatchingResult matchFeatures(FeatureSet masterFeatures,
FeatureSet slaveFeatures)
public java.util.List<Feature> findMatchingFeatures(Feature[] slaveFeatures,
Feature masterFeature,
java.util.Comparator<Feature> featureComparator)
protected float calcElutionDiff(Feature feature1,
Feature feature2)
protected double getMinElutionRangeValue(Feature feature)
feature -
protected double getMaxElutionRangeValue(Feature feature)
feature -
protected double getPointElutionValue(Feature feature)
feature -
public float getMinMassDiff()
public void setMinMassDiff(float minMassDiff)
public float getMaxMassDiff()
public void setMaxMassDiff(float maxMassDiff)
public float getMinElutionDiff()
public void setMinElutionDiff(float minElutionDiff)
public float getMaxElutionDiff()
public void setMaxElutionDiff(float maxElutionDiff)
public int getMassDiffType()
public void setMassDiffType(int massDiffType)
public int getElutionRangeMode()
public void setElutionRangeMode(int elutionRangeMode)
public int getElutionMode()
public void setElutionMode(int elutionMode)
public boolean isMatchWithinChargeOnly()
public void setMatchWithinChargeOnly(boolean matchWithinChargeOnly)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||