本文整理匯總了Java中org.systemsbiology.jrap.stax.MZXMLFileInfo類的典型用法代碼示例。如果您正苦於以下問題:Java MZXMLFileInfo類的具體用法?Java MZXMLFileInfo怎麽用?Java MZXMLFileInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
MZXMLFileInfo類屬於org.systemsbiology.jrap.stax包,在下文中一共展示了MZXMLFileInfo類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getHeaderInfo
import org.systemsbiology.jrap.stax.MZXMLFileInfo; //導入依賴的package包/類
public MZXMLFileInfo getHeaderInfo()
{
if (null == _fileInfo)
{
try
{
MSXMLParser parser = new MSXMLParser(_file.getPath(), useSequentialParser);
_fileInfo = parser.rapFileHeader();
}
catch (IOException e)
{
throw new RuntimeException("Failed to parse mzXML file", e);
}
}
return _fileInfo;
}
示例2: getRunHeader
import org.systemsbiology.jrap.stax.MZXMLFileInfo; //導入依賴的package包/類
@Override
public MsRunIn getRunHeader() throws DataProviderException {
MZXMLFileInfo info = parser.getFileHeader();
MzXmlHeader run = new MzXmlHeader();
DataProcessingInfo dpInfo = info.getDataProcessing();
dataConvType = getDataConversionType(dpInfo.getCentroided());
run.setDataConversionType(dataConvType);
List<SoftwareInfo> swList = dpInfo.getSoftwareUsed();
// TODO handle multiple software info.
if(swList.size() > 0) {
for(SoftwareInfo si: swList) {
if(si.type.equalsIgnoreCase("conversion")) {
run.setConversionSW(swList.get(0).name);
run.setConversionSWVersion(swList.get(0).version);
}
}
}
MSInstrumentInfo msiInfo = info.getInstrumentInfo();
run.setInstrumentModel(msiInfo.getModel());
run.setInstrumentVendor(msiInfo.getManufacturer());
run.setFileName(this.filename);
run.setSha1Sum(sha1Sum);
return run;
}
示例3: getRunHeader
import org.systemsbiology.jrap.stax.MZXMLFileInfo; //導入依賴的package包/類
/**
* @return
* @throws DataProviderException
*/
public MzML_MzXmlHeader /* MsRunIn */ getRunHeader() throws DataProviderException {
MZXMLFileInfo info = parser.getFileHeader();
MzML_MzXmlHeader run = new MzML_MzXmlHeader();
DataProcessingInfo dpInfo = info.getDataProcessing();
dataConvType = getDataConversionType(dpInfo.getCentroided());
run.setDataConversionType(dataConvType);
List<SoftwareInfo> swList = dpInfo.getSoftwareUsed();
// TODO handle multiple software info.
if(swList.size() > 0) {
for(SoftwareInfo si: swList) {
if(si.type.equalsIgnoreCase("conversion")) {
run.setConversionSW(swList.get(0).name);
run.setConversionSWVersion(swList.get(0).version);
}
}
}
MSInstrumentInfo msiInfo = info.getInstrumentInfo();
run.setInstrumentModel(msiInfo.getModel());
run.setInstrumentVendor(msiInfo.getManufacturer());
run.setFileName(this.filename);
// run.setSha1Sum(sha1Sum);
return run;
}
示例4: RunTableModel
import org.systemsbiology.jrap.stax.MZXMLFileInfo; //導入依賴的package包/類
RunTableModel(MSRun run)
{
super(new Object[] {"Property", "Value"}, 0);
MZXMLFileInfo fileInfo = run.getHeaderInfo();
if (null == fileInfo)
return;
MSInstrumentInfo inst = fileInfo.getInstrumentInfo();
if (null != inst)
{
//add("<html><b>Instrument<b></html>","");
add("Manufacturer", inst.getManufacturer());
add("Detector", inst.getDetector());
add("MassAnalyser", inst.getMassAnalyzer());
add("Model", inst.getModel());
add("Operator", valueOf(inst.getOperator()));
add("Software", valueOf(inst.getSoftwareInfo().name));
add("Ionization", inst.getIonization());
}
DataProcessingInfo data = fileInfo.getDataProcessing();
if (null != data) // && (data.getCentroided() != -1 || data.getChargeDeconvoluted() != -1 || data.getDeisotoped() != -1))
{
//add("<html><b>Data Processing<b></html>","");
add("Centroided", String.valueOf(data.getCentroided()));
add("Charge Deconvoluted", String.valueOf(data.getChargeDeconvoluted()));
add("Deisotoped", String.valueOf(data.getDeisotoped()));
add("Intensity Cutoff", String.valueOf(data.getIntensityCutoff()));
add("Spot Integration", String.valueOf(data.getSpotIntegration()));
List<SoftwareInfo> soft = data.getSoftwareUsed();
if (null != soft)
{
String key = "Software";
for (int i=0 ; i<soft.size() ; i++)
{
add(key, valueOf(soft.get(i).name));
key = "";
}
}
}
}