|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.viewer.amt.AmtUtilities
public class AmtUtilities
Utilities related to AMT
| Field Summary | |
|---|---|
static java.lang.String |
HYDROPHOBICITY_ALGORITHM_NAME
|
static double |
HYDROPHOBICITY_ALGORITHM_VERSION
|
| Constructor Summary | |
|---|---|
AmtUtilities()
|
|
| Method Summary | |
|---|---|
static void |
addHydrophobicityToFeatures(Feature[] features,
int scanOrTimeMode,
double[] timeToHCoefficients)
Assumes features have times populated if necessary Given a line that should predict time from hydrophobicity, indicate by how much (in units of scans or seconds) each feature appears to deviate from that line |
static float |
calcModifiedPeptideNeutralMass(java.lang.String peptideSequence,
org.fhcrc.cpl.toolbox.proteomics.MS2Modification[] modifications)
Calculate the neutral mass of a given peptide sequence with the specified STATIC modifications. |
static float |
calculateAbsoluteDeltaMass(float centerMass,
float deltaMass,
int deltaMassType)
Utility method to calculate the absolute mass tolerance, given a mass tolerance parameter that may be absolute or relative |
static java.util.Map<java.lang.String,java.lang.Double> |
calculateHydrophobicityScanOrTimeRelationship(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean robustRegression)
|
static double |
calculateNormalizedHydrophobicity(Feature feature)
Warning about this one: if there's more than one peptide associated with the feature, it'll take the first |
static double |
calculateNormalizedHydrophobicity(org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
|
static double |
calculateNormalizedHydrophobicity(java.lang.String peptideSequence)
|
static double |
calculateRawHydrophobicity(org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
Cover method for Peptide.getHydrophobicity / getHydrophobicity3. |
static double |
calculateRawHydrophobicity(java.lang.String peptideSequence)
|
static java.util.Map<java.lang.String,java.lang.Double> |
calculateScanOrTimeHydrophobicityRelationship(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean robustRegression)
|
static java.util.Map<java.lang.String,java.lang.Double> |
calculateTimeHydroRelationshipEitherWay(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean predictTimeFromHydro,
boolean robustRegression)
Workhorse method for relating time to hydrophobicity using linear regression, can be used to relate time in terms of hydrophobicity or vice versa. |
static double |
convertDeltaScanOrTimeToHydro(double slope,
double intercept,
double deltaScanOrTime)
|
static double |
convertDeltaScanOrTimeToHydro(java.util.Map<java.lang.String,java.lang.Double> regressionLineMap,
double scanOrTimeValueToConvert)
|
static org.fhcrc.cpl.toolbox.proteomics.Peptide |
createPeptideFromSequence(java.lang.String peptideSequence)
Create a peptide object from a peptide sequence. |
static double |
getInterceptFromRegressionLine(java.util.Map<java.lang.String,java.lang.Double> regressionLine)
|
static double |
getSlopeFromRegressionLine(java.util.Map<java.lang.String,java.lang.Double> regressionLine)
|
static double[] |
getTimesForSortedScanArray(MSRun run,
int[] sortedScanArray)
|
static double |
normalizeHydrophobicity(double inputHydrophobicity)
|
static java.util.ArrayList<org.fhcrc.cpl.toolbox.proteomics.Protein> |
pickRandomProteins(java.util.ArrayList<org.fhcrc.cpl.toolbox.proteomics.Protein> fullProteinArray,
int numProteinsToLoad)
Pick numProteins proteins at "random" from a specified list of proteins. |
static double |
predictScanOrTime(double slope,
double intercept,
double hydrophobicity)
Given a hydrophobicity, and a line describing the relationship between hydrophobicity and scan number, return the predicted scan for a given hydrophobicity. |
static double |
predictScanOrTime(double slope,
double intercept,
Feature feature)
Predict the scan or time of a feature (depending on what the regression parameters represent) |
protected static double |
predictScanOrTime(double slope,
double intercept,
org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
Given a peptide, and a line describing the relationship between hydrophobicity and scan number, calculate the hydrophobicity of the peptide and return the predicted scan for that hydrophobicity |
static double |
predictScanOrTime(java.util.Map<java.lang.String,java.lang.Double> regressionLine,
Feature feature)
Predict the scan or time of a feature (depending on what the regression line represents) |
static void |
recordHydrophobicities(FeatureSet featureSet,
java.util.Map<java.lang.String,java.lang.Double> regressionLine,
int scanOrTimeMode)
|
static void |
recordMS1Hydrophobicities(FeatureSet featureSet,
java.util.Map<java.lang.String,java.lang.Double> regressionLine,
int scanOrTimeMode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HYDROPHOBICITY_ALGORITHM_NAME
public static final double HYDROPHOBICITY_ALGORITHM_VERSION
| Constructor Detail |
|---|
public AmtUtilities()
| Method Detail |
|---|
public static void recordHydrophobicities(FeatureSet featureSet,
java.util.Map<java.lang.String,java.lang.Double> regressionLine,
int scanOrTimeMode)
public static void recordMS1Hydrophobicities(FeatureSet featureSet,
java.util.Map<java.lang.String,java.lang.Double> regressionLine,
int scanOrTimeMode)
public static java.util.ArrayList<org.fhcrc.cpl.toolbox.proteomics.Protein> pickRandomProteins(java.util.ArrayList<org.fhcrc.cpl.toolbox.proteomics.Protein> fullProteinArray,
int numProteinsToLoad)
fullProteinArray - numProteinsToLoad -
public static double[] getTimesForSortedScanArray(MSRun run,
int[] sortedScanArray)
public static java.util.Map<java.lang.String,java.lang.Double> calculateTimeHydroRelationshipEitherWay(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean predictTimeFromHydro,
boolean robustRegression)
public static java.util.Map<java.lang.String,java.lang.Double> calculateScanOrTimeHydrophobicityRelationship(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean robustRegression)
public static java.util.Map<java.lang.String,java.lang.Double> calculateHydrophobicityScanOrTimeRelationship(Feature[] featuresForRegression,
int scanOrTimeMode,
boolean robustRegression)
protected static double predictScanOrTime(double slope,
double intercept,
org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
intercept - peptide -
public static double predictScanOrTime(double slope,
double intercept,
double hydrophobicity)
slope - intercept - hydrophobicity -
public static double getSlopeFromRegressionLine(java.util.Map<java.lang.String,java.lang.Double> regressionLine)
public static double getInterceptFromRegressionLine(java.util.Map<java.lang.String,java.lang.Double> regressionLine)
public static double predictScanOrTime(java.util.Map<java.lang.String,java.lang.Double> regressionLine,
Feature feature)
regressionLine - feature -
public static double predictScanOrTime(double slope,
double intercept,
Feature feature)
feature -
public static float calculateAbsoluteDeltaMass(float centerMass,
float deltaMass,
int deltaMassType)
centerMass - deltaMass - deltaMassType -
public static double convertDeltaScanOrTimeToHydro(java.util.Map<java.lang.String,java.lang.Double> regressionLineMap,
double scanOrTimeValueToConvert)
public static double convertDeltaScanOrTimeToHydro(double slope,
double intercept,
double deltaScanOrTime)
public static org.fhcrc.cpl.toolbox.proteomics.Peptide createPeptideFromSequence(java.lang.String peptideSequence)
peptideSequence -
public static double calculateRawHydrophobicity(java.lang.String peptideSequence)
public static double calculateRawHydrophobicity(org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
peptide -
public static double normalizeHydrophobicity(double inputHydrophobicity)
public static double calculateNormalizedHydrophobicity(org.fhcrc.cpl.toolbox.proteomics.Peptide peptide)
public static double calculateNormalizedHydrophobicity(java.lang.String peptideSequence)
public static double calculateNormalizedHydrophobicity(Feature feature)
feature -
public static void addHydrophobicityToFeatures(Feature[] features,
int scanOrTimeMode,
double[] timeToHCoefficients)
features - scanOrTimeMode -
public static float calcModifiedPeptideNeutralMass(java.lang.String peptideSequence,
org.fhcrc.cpl.toolbox.proteomics.MS2Modification[] modifications)
peptideSequence - modifications -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||