use of net.sf.mzmine.modules.peaklistmethods.io.gnpsexport.fbmn.GnpsFbmnExportAndSubmitParameters.RowFilter in project mzmine2 by mzmine.
the class GnpsFbmnExportAndSubmitTask method addQuantTableTask.
/**
* Export quant table
*
* @param parameters
* @param tasks
*/
private AbstractTask addQuantTableTask(ParameterSet parameters, Collection<Task> tasks) {
File full = parameters.getParameter(GnpsFbmnExportAndSubmitParameters.FILENAME).getValue();
String name = FileAndPathUtil.eraseFormat(full.getName());
full = FileAndPathUtil.getRealFilePath(full.getParentFile(), name + "_quant", "csv");
ExportRowCommonElement[] common = new ExportRowCommonElement[] { ExportRowCommonElement.ROW_ID, ExportRowCommonElement.ROW_MZ, ExportRowCommonElement.ROW_RT };
ExportRowDataFileElement[] rawdata = new ExportRowDataFileElement[] { ExportRowDataFileElement.PEAK_AREA };
RowFilter filter = parameters.getParameter(GnpsFbmnExportAndSubmitParameters.FILTER).getValue();
CSVExportTask quanExport = new CSVExportTask(parameters.getParameter(GnpsFbmnExportAndSubmitParameters.PEAK_LISTS).getValue().getMatchingPeakLists(), full, ",", common, rawdata, false, ";", filter);
if (tasks != null)
tasks.add(quanExport);
return quanExport;
}
Aggregations