當前位置: 首頁>>代碼示例>>Java>>正文


Java MZXMLFileInfo.getDataProcessing方法代碼示例

本文整理匯總了Java中org.systemsbiology.jrap.stax.MZXMLFileInfo.getDataProcessing方法的典型用法代碼示例。如果您正苦於以下問題:Java MZXMLFileInfo.getDataProcessing方法的具體用法?Java MZXMLFileInfo.getDataProcessing怎麽用?Java MZXMLFileInfo.getDataProcessing使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.systemsbiology.jrap.stax.MZXMLFileInfo的用法示例。


在下文中一共展示了MZXMLFileInfo.getDataProcessing方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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;
}
 
開發者ID:yeastrc,項目名稱:msdapl,代碼行數:32,代碼來源:MzXmlFileReader.java

示例2: 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;
    }
 
開發者ID:yeastrc,項目名稱:proxl-web-app,代碼行數:36,代碼來源:MzMl_MzXml_FileReader.java

示例3: 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 = "";
        }
       }
      }
     }
 
開發者ID:dhmay,項目名稱:msInspect,代碼行數:43,代碼來源:MSRunInfoAction.java


注:本文中的org.systemsbiology.jrap.stax.MZXMLFileInfo.getDataProcessing方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。