|
|||||||||
| 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
| Nested Class Summary | |
|---|---|
static class |
AmtUtilities.FeatureMassHydroClusterable
Clusterable for clustering based on feature mass and hydrophobicity. |
static class |
AmtUtilities.FeatureMzHydroClusterable
Clusterable for clustering based on feature mz and hydrophobicity. |
| 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 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(Peptide peptide)
|
static double |
calculateNormalizedHydrophobicity(java.lang.String peptideSequence)
|
static double |
calculateRawHydrophobicity(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 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<Protein> |
pickRandomProteins(java.util.ArrayList<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,
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<Protein> pickRandomProteins(java.util.ArrayList<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,
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 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 Peptide createPeptideFromSequence(java.lang.String peptideSequence)
peptideSequence -
public static double calculateRawHydrophobicity(java.lang.String peptideSequence)
public static double calculateRawHydrophobicity(Peptide peptide)
peptide -
public static double normalizeHydrophobicity(double inputHydrophobicity)
public static double calculateNormalizedHydrophobicity(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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||