|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.toolbox.commandline.BaseCommandLineModuleImpl
org.fhcrc.cpl.viewer.commandline.modules.BaseViewerCommandLineModuleImpl
org.fhcrc.cpl.viewer.ms2.commandline.PostProcessPepXMLCLM
public class PostProcessPepXMLCLM
post-process a pepxml file
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log
|
protected boolean |
adjustQuantZeroAreas
|
protected java.lang.String |
badProteinPrefix
|
protected boolean |
excludeProteinPrefixQuantOnly
|
protected java.util.Map<java.io.File,java.lang.Float> |
fileMedianLogRatioMap
|
protected java.util.Map<java.io.File,java.util.Map<java.lang.Integer,java.lang.Float>> |
fileNumCysteinesMedianLogRatioMap
|
protected boolean |
filterByProteinPrefix
|
protected java.lang.String |
goodProteinPrefix
|
protected java.util.Set<java.lang.String> |
heavyPeptidesAllRuns
|
protected java.lang.String[] |
labelExplanations
|
protected java.lang.String[] |
labelStrings
|
protected int |
labelType
|
protected java.util.Set<java.lang.String> |
lightPeptidesAllRuns
|
protected float |
maxExpect
|
protected DeltaMassArgumentDefinition.DeltaMassWithType |
maxFracDeltaMass
|
protected float |
maxQuantExpect
|
protected boolean |
medianCenter
|
protected boolean |
medianCenterAllRunsTogether
|
protected boolean |
medianCenterByNumCysteines
|
protected float |
minPeptideProphet
|
protected float |
minPeptideProphetForMedian
|
protected float |
minQuantPeptideProphet
|
protected int |
minRatiosForMedianCenter
|
protected java.io.File |
outDir
|
protected java.io.File |
outFile
|
protected java.util.Set<java.lang.String> |
peptidesToStrip
|
protected java.io.File[] |
pepXmlFiles
|
protected int |
percentileForQuantZeroAreaAdjustment
|
protected java.util.Set<java.lang.String> |
proteinsToKeep
|
protected java.util.Set<java.lang.String> |
proteinsToStrip
|
protected boolean |
requirePepXmlExtension
|
protected boolean |
showCharts
|
protected boolean |
stripLightIDs
|
protected boolean |
stripQuantMissingLightOrHeavyAcrossAll
|
protected boolean |
stripQuantMissingLightOrHeavyWithinRun
|
protected boolean |
stripQuantNotInHeavyAcrossAll
|
protected boolean |
stripQuantSingleScans
|
protected boolean |
stripQuantZeroAreas
|
| Fields inherited from class org.fhcrc.cpl.toolbox.commandline.BaseCommandLineModuleImpl |
|---|
mArgumentDefs, mArgumentValues, mArgumentValueStrings, mCommandName, mHelpMessage, mShortDescription, mUsageMessage |
| Fields inherited from interface org.fhcrc.cpl.toolbox.commandline.CommandLineModule |
|---|
MODULE_HELP_AUTOMATIC, MODULE_USAGE_AUTOMATIC, UNNAMED_ARG_SERIES_SEPARATOR |
| Constructor Summary | |
|---|---|
PostProcessPepXMLCLM()
|
|
| Method Summary | |
|---|---|
protected void |
addLightHeavyPeptides(FeatureSet featureSet)
|
protected void |
adjustQuantZeroAreas(FeatureSet featureSet)
|
void |
assignArgumentValues()
the first step in invoking your module. |
protected void |
calcLogMedianRatiosAllFiles()
TODO: fold this in with loadLightHeavyPeptides This is some really weird stuff, right here. |
protected java.lang.String |
calcOutputFilename(java.lang.String inputFilename)
|
protected int |
countCysteines(java.lang.String peptide)
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<Feature>>> |
createPeptideChargeFeatureListMap(FeatureSet featureSet)
|
void |
execute()
do the actual work |
protected void |
filterByProteinPrefix(FeatureSet featureSet)
Does filtering by protein prefix. |
protected void |
filterOnQualityScores(FeatureSet featureSet)
|
protected void |
handleFeatureFile(java.io.File featureFile,
java.io.File outputFile)
|
protected void |
init()
|
protected void |
loadLightHeavyPeptidesAcrossAll()
|
protected double |
log2(double input)
Log base 2 |
protected java.util.List<java.lang.Float> |
logMedianCenterOn0(java.util.List<java.lang.Float> allInputList,
java.util.List<java.lang.Float> inputListForMedianCalc,
java.lang.String chartTitleSuffix)
median-centers the natural log on 0, not in place |
protected void |
processFeatureSet(FeatureSet featureSet)
|
protected java.util.List<java.lang.String> |
readOneStringPerLine(java.io.File file)
Read each line as a String, stopping at first whitespace |
protected void |
stripQuantWithoutLightOrHeavyIDWithinSet(FeatureSet featureSet)
|
| Methods inherited from class org.fhcrc.cpl.viewer.commandline.modules.BaseViewerCommandLineModuleImpl |
|---|
createUnnamedFeatureFileArgumentDefinition, createUnnamedSeriesFeatureFileArgumentDefinition, getFastaFileArgumentValue, getFeatureSetArgumentValue, getModificationListArgumentValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.fhcrc.cpl.toolbox.commandline.CommandLineModule |
|---|
digestArguments, getAdvancedArgumentDefinitions, getArgumentDefinition, getArgumentDefinitions, getArgumentDefinitionsSortedForDisplay, getArgumentValueStrings, getBasicArgumentDefinitions, getCommandName, getFullHelp, getHelpMessage, getHtmlHelpFragment, getShortDescription, getUsage, invoke |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log
protected java.io.File[] pepXmlFiles
protected boolean medianCenter
protected boolean medianCenterByNumCysteines
protected boolean medianCenterAllRunsTogether
protected boolean stripQuantMissingLightOrHeavyWithinRun
protected boolean stripQuantMissingLightOrHeavyAcrossAll
protected boolean stripQuantNotInHeavyAcrossAll
protected boolean stripLightIDs
protected boolean adjustQuantZeroAreas
protected boolean stripQuantZeroAreas
protected boolean stripQuantSingleScans
protected java.util.Map<java.io.File,java.lang.Float> fileMedianLogRatioMap
protected java.util.Map<java.io.File,java.util.Map<java.lang.Integer,java.lang.Float>> fileNumCysteinesMedianLogRatioMap
protected boolean filterByProteinPrefix
protected int percentileForQuantZeroAreaAdjustment
protected java.lang.String badProteinPrefix
protected java.lang.String goodProteinPrefix
protected boolean excludeProteinPrefixQuantOnly
protected java.io.File outFile
protected java.io.File outDir
protected java.util.Set<java.lang.String> peptidesToStrip
protected java.util.Set<java.lang.String> proteinsToStrip
protected java.util.Set<java.lang.String> proteinsToKeep
protected boolean showCharts
protected int minRatiosForMedianCenter
protected float minPeptideProphetForMedian
protected float minPeptideProphet
protected float minQuantPeptideProphet
protected float maxExpect
protected float maxQuantExpect
protected boolean requirePepXmlExtension
protected DeltaMassArgumentDefinition.DeltaMassWithType maxFracDeltaMass
protected int labelType
protected java.util.Set<java.lang.String> lightPeptidesAllRuns
protected java.util.Set<java.lang.String> heavyPeptidesAllRuns
protected java.lang.String[] labelStrings
protected java.lang.String[] labelExplanations
| Constructor Detail |
|---|
public PostProcessPepXMLCLM()
| Method Detail |
|---|
protected void init()
public void assignArgumentValues()
throws ArgumentValidationException
CommandLineModule
assignArgumentValues in interface CommandLineModuleArgumentValidationException
protected java.util.List<java.lang.String> readOneStringPerLine(java.io.File file)
throws ArgumentValidationException
file -
ArgumentValidationException
public void execute()
throws CommandLineModuleExecutionException
execute in interface CommandLineModuleCommandLineModuleExecutionException
protected void calcLogMedianRatiosAllFiles()
throws CommandLineModuleExecutionException
CommandLineModuleExecutionException
protected void loadLightHeavyPeptidesAcrossAll()
throws CommandLineModuleExecutionException
CommandLineModuleExecutionExceptionprotected java.lang.String calcOutputFilename(java.lang.String inputFilename)
protected void handleFeatureFile(java.io.File featureFile,
java.io.File outputFile)
throws CommandLineModuleExecutionException
featureFile - outputFile -
CommandLineModuleExecutionExceptionprotected void filterOnQualityScores(FeatureSet featureSet)
protected int countCysteines(java.lang.String peptide)
protected void processFeatureSet(FeatureSet featureSet)
protected void adjustQuantZeroAreas(FeatureSet featureSet)
protected void filterByProteinPrefix(FeatureSet featureSet)
featureSet - protected java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.util.List<Feature>>> createPeptideChargeFeatureListMap(FeatureSet featureSet)
protected void addLightHeavyPeptides(FeatureSet featureSet)
protected void stripQuantWithoutLightOrHeavyIDWithinSet(FeatureSet featureSet)
protected double log2(double input)
input -
protected java.util.List<java.lang.Float> logMedianCenterOn0(java.util.List<java.lang.Float> allInputList,
java.util.List<java.lang.Float> inputListForMedianCalc,
java.lang.String chartTitleSuffix)
allInputList - inputListForMedianCalc - this gets munged
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||