当前位置: 首页>>代码示例>>Java>>正文


Java MZXMLFileInfo类代码示例

本文整理汇总了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;
}
 
开发者ID:dhmay,项目名称:msInspect,代码行数:17,代码来源:MSRun.java

示例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;
}
 
开发者ID:yeastrc,项目名称:msdapl,代码行数:32,代码来源:MzXmlFileReader.java

示例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;
    }
 
开发者ID:yeastrc,项目名称:proxl-web-app,代码行数:36,代码来源:MzMl_MzXml_FileReader.java

示例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 = "";
        }
       }
      }
     }
 
开发者ID:dhmay,项目名称:msInspect,代码行数:43,代码来源:MSRunInfoAction.java


注:本文中的org.systemsbiology.jrap.stax.MZXMLFileInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。