本文整理汇总了Java中org.systemsbiology.jrap.stax.MSInstrumentInfo类的典型用法代码示例。如果您正苦于以下问题:Java MSInstrumentInfo类的具体用法?Java MSInstrumentInfo怎么用?Java MSInstrumentInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MSInstrumentInfo类属于org.systemsbiology.jrap.stax包,在下文中一共展示了MSInstrumentInfo类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRunHeader
import org.systemsbiology.jrap.stax.MSInstrumentInfo; //导入依赖的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;
}
示例2: getRunHeader
import org.systemsbiology.jrap.stax.MSInstrumentInfo; //导入依赖的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;
}
示例3: RunTableModel
import org.systemsbiology.jrap.stax.MSInstrumentInfo; //导入依赖的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 = "";
}
}
}
}