Class PeptVect
java.lang.Object
|
+----PeptVect
- public class PeptVect
- extends Object
-
FaverageIntensity
-
-
FFactor
- multiply factor, used to equalize two vector intensities,
each intensity is returned with intensity*FFactor
-
FIntDecal
- FIntDecal: value added to all intensities returned
-
FLog
-
-
FMassDecal
- FMassDecal: value that should be added to all masses returned
-
FmaxDX
-
-
FmaxIntensity
-
-
FmaxMass
- the highest mass of peptides
-
FminDX
- the smallest value of margins,
the leftmost mass to plot is actually defined
by FminDX and not FminMass
-
FminIntensity
- the smallest intensity of peptides
note that when an intensity is unknown, 0 should be
used for more coherence
-
FminMass
- the smallest mass of peptides
-
FSelected
-
-
FsumIntensity
- sum of intensities of all available elements in the peptide vector,
used to calculate the mean value of intensities
-
peptides
- the vector of peptides itself, keep private (see warning above)
-
prevVector
-
-
PeptVect()
-
-
addPept(PeptElt)
- add a Peptide element and adjust max, min and average values
-
addPept(PeptVect, int)
- add a peptide at Index to a target Vector (sort of copy, because
we do not expose the vector, this should be used)
-
clearPept()
- reset max and min, remove all peptides and reset
mean values and sums
-
Count()
- number of elements in the Peptide vector (obvious, huh?)
-
delPept(PeptElt)
- remove a peptide element, if used - TODO: adjust mean/average
min and max values
-
getAverageIntensity()
-
-
getDx1(int)
- get displaced left margin of a given peptide
-
getDx2(int)
- get the displaced right margin of a given peptide
-
getFactor()
-
-
getIntDecal(float)
-
-
getIntensity(int)
- get the displaced and log-ed intensity of a given peptide,
besides, we use FFactor to equalize vectors of peptides
-
getLog()
-
-
getMass(int)
- get displaced mass of a peptide defined by index
-
getMassDecal(float)
-
-
getMaxDX()
- FmaxDX defines the rightnmost mass as we consider margin values,
if not, use getMinMass and getMaxMass
-
getMaxIntensity()
-
-
getMaxMass()
-
-
getMc(int)
- get the amount of missed cleavages, only if available
-
getMcDesc(int)
- get the annotation of the missed cleavage site for a given peptide
-
getMinDX()
- get the leftmost mass margin value, we displace the FminDX value
by the FMassDecal (which is 0 by default) and substract 10% of
the value because we plot graphs, and it's not convenient to see
small regions or get masses on the Y axis
-
getMinIntensity()
- min and max intensity, besides, if FLog is set, we can log() all intensity
values to get better view of more equal intensities (note that log
concerves the bijective property where x>y -> log(x)>log(y)
-
getMinMass()
- real smallest mass displaced and 10% less for plotting
-
getPept(int)
- return an element from the vector, keep private (see warning above)
-
getPosition(int)
- get the position of a peptide defined by index in the resulting protein
-
getRealDx1(int)
- get real left margin of a given peptide
-
getRealDx2(int)
- get real right margin of a given peptide
-
getRealIntensity(int)
- real intensity of a peptide, with no displacement
-
getRealMass(int)
- real mass of a peptide, with no displacement
(no range checking, we know what our prog does, right?:)
-
getSelected()
-
-
getSequence(int)
- get the peptide genetic sequence
-
ReadPeakVector(String)
- read a peak vector, format of each element is:
Mass Intensity LeftX RightX MC MC-Annotation Position Sequence
you can have as many of those as wanted in a row
NOTE: when intensity is 0, the intensity of the closest mass value
will be taken from prevVector, this is used because we have
always two series where only the first has intensities
-
setFactor(float)
-
-
setIntDecal(float)
-
-
setLog(boolean)
-
-
setMassDecal(float)
-
-
setSelected(int)
-
prevVector
static PeptVect prevVector
FMassDecal
private float FMassDecal
- FMassDecal: value that should be added to all masses returned
FIntDecal
private float FIntDecal
- FIntDecal: value added to all intensities returned
peptides
private Vector peptides
- the vector of peptides itself, keep private (see warning above)
FsumIntensity
private float FsumIntensity
- sum of intensities of all available elements in the peptide vector,
used to calculate the mean value of intensities
FminMass
private float FminMass
- the smallest mass of peptides
FmaxMass
private float FmaxMass
- the highest mass of peptides
FminIntensity
private float FminIntensity
- the smallest intensity of peptides
note that when an intensity is unknown, 0 should be
used for more coherence
FmaxIntensity
private float FmaxIntensity
FminDX
private float FminDX
- the smallest value of margins,
the leftmost mass to plot is actually defined
by FminDX and not FminMass
FmaxDX
private float FmaxDX
FaverageIntensity
private float FaverageIntensity
FLog
private boolean FLog
FFactor
private float FFactor
- multiply factor, used to equalize two vector intensities,
each intensity is returned with intensity*FFactor
FSelected
private int FSelected
PeptVect
public PeptVect()
setMassDecal
public boolean setMassDecal(float Value)
getMassDecal
public float getMassDecal(float Value)
setIntDecal
public boolean setIntDecal(float Value)
getIntDecal
public float getIntDecal(float Value)
addPept
public void addPept(PeptElt p)
- add a Peptide element and adjust max, min and average values
delPept
public void delPept(PeptElt p)
- remove a peptide element, if used - TODO: adjust mean/average
min and max values
getPept
private PeptElt getPept(int i)
- return an element from the vector, keep private (see warning above)
Count
public int Count()
- number of elements in the Peptide vector (obvious, huh?)
clearPept
public void clearPept()
- reset max and min, remove all peptides and reset
mean values and sums
getAverageIntensity
public float getAverageIntensity()
getMinDX
public float getMinDX()
- get the leftmost mass margin value, we displace the FminDX value
by the FMassDecal (which is 0 by default) and substract 10% of
the value because we plot graphs, and it's not convenient to see
small regions or get masses on the Y axis
getMaxDX
public float getMaxDX()
- FmaxDX defines the rightnmost mass as we consider margin values,
if not, use getMinMass and getMaxMass
getMinMass
public float getMinMass()
- real smallest mass displaced and 10% less for plotting
getMinIntensity
public float getMinIntensity()
- min and max intensity, besides, if FLog is set, we can log() all intensity
values to get better view of more equal intensities (note that log
concerves the bijective property where x>y -> log(x)>log(y)
getMaxMass
public float getMaxMass()
getMaxIntensity
public float getMaxIntensity()
getRealMass
public float getRealMass(int Index)
- real mass of a peptide, with no displacement
(no range checking, we know what our prog does, right?:)
getRealIntensity
public float getRealIntensity(int Index)
- real intensity of a peptide, with no displacement
getMass
public float getMass(int Index)
- get displaced mass of a peptide defined by index
getMc
public int getMc(int Index)
- get the amount of missed cleavages, only if available
getMcDesc
public String getMcDesc(int Index)
- get the annotation of the missed cleavage site for a given peptide
getPosition
public String getPosition(int Index)
- get the position of a peptide defined by index in the resulting protein
getSequence
public String getSequence(int Index)
- get the peptide genetic sequence
getIntensity
public float getIntensity(int Index)
- get the displaced and log-ed intensity of a given peptide,
besides, we use FFactor to equalize vectors of peptides
getDx1
public float getDx1(int Index)
- get displaced left margin of a given peptide
getRealDx1
public float getRealDx1(int Index)
- get real left margin of a given peptide
getRealDx2
public float getRealDx2(int Index)
- get real right margin of a given peptide
getDx2
public float getDx2(int Index)
- get the displaced right margin of a given peptide
ReadPeakVector
public void ReadPeakVector(String s)
- read a peak vector, format of each element is:
Mass Intensity LeftX RightX MC MC-Annotation Position Sequence
you can have as many of those as wanted in a row
NOTE: when intensity is 0, the intensity of the closest mass value
will be taken from prevVector, this is used because we have
always two series where only the first has intensities
addPept
public void addPept(PeptVect Vector,
int Index)
- add a peptide at Index to a target Vector (sort of copy, because
we do not expose the vector, this should be used)
setLog
public boolean setLog(boolean Value)
getLog
public boolean getLog()
setFactor
public boolean setFactor(float Value)
getFactor
public float getFactor()
setSelected
public boolean setSelected(int Value)
getSelected
public int getSelected()