|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.toolbox.proteomics.filehandler.BasePepXmlWriter
org.fhcrc.cpl.toolbox.proteomics.feature.FeaturePepXmlWriter
public class FeaturePepXmlWriter
A restrictive wrapper for writing PepXml files, using a Feature array to populate the spectrum_queries
| Field Summary | |
|---|---|
protected Feature[] |
_features
|
protected AnalyzeICAT.IsotopicLabel |
_isotopicLabel
|
protected boolean |
featureSetHasRatioDeclaration
|
protected int |
firstSpectrumQueryIndex
|
int |
RATIO_MODE_Q3
|
int |
RATIO_MODE_XPRESS
|
protected int |
ratioMode
|
protected boolean |
writeIntensitiesAsXpressResults
|
| Fields inherited from class org.fhcrc.cpl.toolbox.proteomics.filehandler.BasePepXmlWriter |
|---|
_baseName, _documentPostscript, _documentPrefix, _firstRunSummary, _modifications, _optionsForPrinting, _precursorMassType, _searchEngine, _searchSummary, _spectrumBaseString, _xmlBeansAnalysis, _xmlBeansPepXmlDoc, _xmlBeansRunSummaryArray, PRECURSOR_MASS_TYPE_MONOISOTOPIC, SEARCH_ENGINE_XTANDEM_COMET |
| Constructor Summary | |
|---|---|
FeaturePepXmlWriter(Feature[] features,
MS2Modification[] modifications)
Create doc structure, populate features and modifications |
|
FeaturePepXmlWriter(FeatureSet featureSet)
|
|
| Method Summary | |
|---|---|
int |
getFirstSpectrumQueryIndex()
Write out the full document, with all modifications and features, to a file It's too bad I have to override the superclass version here. |
int |
getRatioMode()
|
protected void |
preWrite()
Make absolutely sure that we write a quantitative summary declaration at the top of the file, if either: -the incoming FeatureFile told us it had ratios, or -any feature in the file has ratios |
void |
setFeatures(Feature[] features)
setter for features |
void |
setFirstSpectrumQueryIndex(int firstSpectrumQueryIndex)
|
void |
setRatioMode(int ratioMode)
|
void |
setWriteIntensitiesAsXpressResults(boolean writeIntensitiesAsXpressResults)
|
boolean |
willWriteIntensitiesAsXpressResults()
|
protected void |
writeFeature(int featureIndex,
java.io.PrintWriter pw)
Add a SearchResult representing the passed-in feature to the first run of the file. |
protected void |
writeSpectrumQueries(java.io.PrintWriter pw)
Write out all features immediately |
| Methods inherited from class org.fhcrc.cpl.toolbox.proteomics.filehandler.BasePepXmlWriter |
|---|
addModificationsToSearchHit, addModificationsToXML, addPeptideProphet, addSearchScore, addSpectrumQuery, get_precursorMassType, get_searchEngine, getSearchSummary, getSpectrumBaseString, set_precursorMassType, set_searchEngine, setBaseName, setModifications, setSearchConstraints, setSearchDatabase, setSpectrumBaseString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Feature[] _features
protected boolean writeIntensitiesAsXpressResults
protected int firstSpectrumQueryIndex
public final int RATIO_MODE_XPRESS
public final int RATIO_MODE_Q3
protected int ratioMode
protected boolean featureSetHasRatioDeclaration
protected AnalyzeICAT.IsotopicLabel _isotopicLabel
| Constructor Detail |
|---|
public FeaturePepXmlWriter(Feature[] features,
MS2Modification[] modifications)
features - modifications - public FeaturePepXmlWriter(FeatureSet featureSet)
| Method Detail |
|---|
public void setFeatures(Feature[] features)
features - public boolean willWriteIntensitiesAsXpressResults()
public void setWriteIntensitiesAsXpressResults(boolean writeIntensitiesAsXpressResults)
protected void writeSpectrumQueries(java.io.PrintWriter pw)
writeSpectrumQueries in class BasePepXmlWriterpw -
protected void writeFeature(int featureIndex,
java.io.PrintWriter pw)
protected void preWrite()
preWrite in class BasePepXmlWriterpublic int getFirstSpectrumQueryIndex()
java.io.IOExceptionpublic void setFirstSpectrumQueryIndex(int firstSpectrumQueryIndex)
public int getRatioMode()
public void setRatioMode(int ratioMode)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||