|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.toolbox.proteomics.feature.Spectrum.Peak
org.fhcrc.cpl.toolbox.proteomics.feature.Feature
public class Feature
Copyright (C) 2004 Fred Hutchinson Cancer Research Center. All Rights Reserved. User: migra Date: Apr 26, 2005 Time: 2:55:28 PM
| Nested Class Summary | |
|---|---|
static class |
Feature.IntensityDescComparator
|
static class |
Feature.MassAscComparator
|
static class |
Feature.MzAscComparator
|
static class |
Feature.MzDistAscComparator
|
static class |
Feature.MzScanAscComparator
|
static class |
Feature.PeaksKLComparatorDesc
Compare features based on "quality". |
static class |
Feature.ScanAscComparator
|
static class |
Feature.ScanChargeMzAscComparator
This one is useful for associating equivalent features in multiple files with each other, through equivalent ordering |
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
_propertyMap
|
protected boolean |
accurateMZ
|
int |
charge
|
int |
chargeStates
|
Spectrum.Peak[] |
comprised
|
protected java.lang.String |
description
|
float |
dist
|
int |
intensityLeadingPeaks
|
int |
intensityTrailingPeaks
|
float[] |
intensityWindow
|
float |
kl
|
float |
mass
|
protected ModifiedAminoAcid[] |
mModifiedAminoAcids
|
static float |
MZ_RANGE
|
float |
mzPeak0
|
Feature |
next
|
int |
peaks
|
int |
scanCount
|
int |
scanFirst
|
int |
scanLast
|
boolean |
skippedPeaks
|
float |
time
|
float |
totalIntensity
|
| Fields inherited from class org.fhcrc.cpl.toolbox.proteomics.feature.Spectrum.Peak |
|---|
background, excluded, intensity, median, mz, scan |
| Constructor Summary | |
|---|---|
Feature()
|
|
Feature(Feature feature)
|
|
Feature(int scan,
float mz,
float intensity)
|
|
Feature(int scan,
int scanFirst,
int scanLast,
float mz,
float intensity,
int charge,
float kl,
float totalIntensity)
|
|
Feature(Spectrum.Peak p)
|
|
| Method Summary | |
|---|---|
void |
addFeatureToRange(Feature feature)
|
void |
afterPopulate()
|
float |
calculateFeatureIntensityInRange(MSRun run,
int mzWindowSize,
org.apache.commons.lang.math.IntRange scanRange,
int resamplingFrequency)
dhmay adding 01/05/2006 Start with an array of scans "MSScan[] scans", "_mzRange" set to a FloatRange indicating the range of mz values to consider, and a float "mz" set to the particular monoistopic mz of the feature under consideration. |
java.lang.Object |
clone()
|
boolean |
ContainsPeak(Spectrum.Peak p)
|
FeatureExtraInformationDef[] |
determineExtraInformationTypes()
Query the properties set on this Feature to determine what extra info types it has. |
boolean |
equals(java.lang.Object o)
This equals() implementation is based only on the _known_ fields of Feature. |
static org.apache.commons.lang.math.IntRange |
findOverlappingScanRange(Feature feature1,
Feature feature2)
Helper method to find the overlap between the scan ranges of two features |
java.lang.Object |
get(java.lang.Object propertyName)
|
int |
getCharge()
|
int |
getChargeStates()
|
java.lang.String |
getDescription()
|
double |
getDoubleProperty(java.lang.String propertyName,
double defaultValue)
|
static java.lang.String |
getFeatureHeader(FeatureExtraInformationDef[] extraInfoToDisplay)
|
float |
getFloatProperty(java.lang.String propertyName,
float defaultValue)
|
int |
getIntProperty(java.lang.String propertyName,
int defaultValue)
|
float |
getKl()
|
float |
getMass()
|
protected static FloatRange |
getMZRange(float mz,
int mzWindow)
A helper method to get a FloatRange of a certain size around a point |
int |
getPeaks()
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get a property of this feature. |
java.lang.Object |
getProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
Get a property of this feature. |
java.util.Map<java.lang.String,java.lang.Object> |
getPropertyMap()
|
int |
getScanCount()
|
int |
getScanFirst()
|
int |
getScanLast()
|
java.lang.String |
getStringProperty(java.lang.String propertyName,
java.lang.String defaultValue)
|
float |
getSumSquaresDist()
|
float |
getTime()
|
float |
getTotalIntensity()
|
int |
hashCode()
Needs to be defined when redefining equals. |
boolean |
hasProperty(java.lang.String propertyName)
Check to see if a given property is on the allowed list This is no longer used -- allowing any property to be set |
boolean |
isAccurateMZ()
|
boolean |
isFeatureInRange(Feature feature)
|
boolean |
isFeatureInRange(Feature feature,
int maxScanGap,
float mzGap)
|
boolean |
isPropertySet(java.lang.String propertyName)
Indicates whether a given property is set for this feature |
void |
setAccurateMZ(boolean accurateMZ)
|
void |
setCharge(int charge)
|
void |
setChargeStates(int chargeStates)
|
void |
setDescription(java.lang.String description)
|
void |
setKl(float kl)
|
void |
setMass(float mass)
|
void |
setMz(float mz)
|
void |
setPeaks(int peaks)
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Set a property of this feature, initializing the property map if necessary. |
void |
setScanCount(int scanCount)
|
void |
setScanFirst(int scanFirst)
|
void |
setScanLast(int scanLast)
|
void |
setSumSquaresDist(float dist)
|
void |
setTime(float time)
|
void |
setTotalIntensity(float totalIntensity)
|
java.lang.String |
toString()
no-arg toString() doesn't display any extra data |
java.lang.String |
toString(FeatureExtraInformationDef[] extraInfoToDisplay)
In addition to basic fields, displays the extra info it's told to |
java.lang.Object |
unsetProperty(java.lang.String propertyName)
Unset a property and return the old value if there was one |
void |
updateMass()
Make the mass agree with the m/z. |
void |
updateMz()
Make the m/z agree with the mass. |
| Methods inherited from class org.fhcrc.cpl.toolbox.proteomics.feature.Spectrum.Peak |
|---|
getBackground, getIntensity, getMedian, getMz, getScan, setBackground, setIntensity, setMedian, setScan |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float time
public float mass
public int charge
protected boolean accurateMZ
public float kl
public float dist
public int peaks
public boolean skippedPeaks
public int chargeStates
protected java.lang.String description
public int scanFirst
public int scanLast
public float totalIntensity
public int scanCount
public static float MZ_RANGE
public float mzPeak0
public Spectrum.Peak[] comprised
public Feature next
public int intensityLeadingPeaks
public int intensityTrailingPeaks
public float[] intensityWindow
protected java.util.Map<java.lang.String,java.lang.Object> _propertyMap
protected ModifiedAminoAcid[] mModifiedAminoAcids
| Constructor Detail |
|---|
public Feature()
public Feature(Spectrum.Peak p)
public Feature(Feature feature)
public Feature(int scan,
float mz,
float intensity)
public Feature(int scan,
int scanFirst,
int scanLast,
float mz,
float intensity,
int charge,
float kl,
float totalIntensity)
| Method Detail |
|---|
public FeatureExtraInformationDef[] determineExtraInformationTypes()
public void afterPopulate()
public void updateMass()
public void updateMz()
public boolean isFeatureInRange(Feature feature)
public boolean isFeatureInRange(Feature feature,
int maxScanGap,
float mzGap)
public void addFeatureToRange(Feature feature)
public static java.lang.String getFeatureHeader(FeatureExtraInformationDef[] extraInfoToDisplay)
public java.lang.String toString()
toString in class Spectrum.Peakpublic java.lang.String toString(FeatureExtraInformationDef[] extraInfoToDisplay)
extraInfoToDisplay -
public java.lang.Object clone()
clone in class java.lang.Objectpublic int getScanCount()
public void setScanCount(int scanCount)
public int getScanFirst()
public void setScanFirst(int scanFirst)
public int getScanLast()
public void setScanLast(int scanLast)
public float getTotalIntensity()
public void setTotalIntensity(float totalIntensity)
public int hashCode()
hashCode in class Spectrum.Peakpublic boolean equals(java.lang.Object o)
equals in class Spectrum.Peako -
public void setMz(float mz)
setMz in class Spectrum.Peakpublic float getMass()
public void setMass(float mass)
public int getCharge()
public void setCharge(int charge)
public float getKl()
public void setKl(float kl)
public int getPeaks()
public void setPeaks(int peaks)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public int getChargeStates()
public void setChargeStates(int chargeStates)
public float getTime()
public void setTime(float time)
public float getSumSquaresDist()
public void setSumSquaresDist(float dist)
public boolean ContainsPeak(Spectrum.Peak p)
public boolean isAccurateMZ()
public void setAccurateMZ(boolean accurateMZ)
protected static FloatRange getMZRange(float mz,
int mzWindow)
mz - mzWindow -
public float calculateFeatureIntensityInRange(MSRun run,
int mzWindowSize,
org.apache.commons.lang.math.IntRange scanRange,
int resamplingFrequency)
run - mzWindowSize - scanRange - resamplingFrequency -
public static org.apache.commons.lang.math.IntRange findOverlappingScanRange(Feature feature1,
Feature feature2)
feature1 - feature2 -
public boolean hasProperty(java.lang.String propertyName)
propertyName -
public java.util.Map<java.lang.String,java.lang.Object> getPropertyMap()
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
propertyName - propertyValue - public java.lang.Object unsetProperty(java.lang.String propertyName)
propertyName - public boolean isPropertySet(java.lang.String propertyName)
propertyName -
public java.lang.Object getProperty(java.lang.String propertyName)
propertyName -
public java.lang.Object get(java.lang.Object propertyName)
public java.lang.Object getProperty(java.lang.String propertyName,
java.lang.Object defaultValue)
propertyName -
public int getIntProperty(java.lang.String propertyName,
int defaultValue)
public double getDoubleProperty(java.lang.String propertyName,
double defaultValue)
public float getFloatProperty(java.lang.String propertyName,
float defaultValue)
public java.lang.String getStringProperty(java.lang.String propertyName,
java.lang.String defaultValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||