Menu

The qpMerge cookbook

Matthew Hindle

The qpMerge cookbook

FAQs

1. How do I import an qpMerge XML file?

DataSet dataset = FactoryMethods.importDataSetFromXML(new File("myfile.xml"));

2. How do I export a qpMerge XML file?

DataSet dataset = new DataSet();
FactoryMethods.exportDataSetInXML(dataset, new File("myfile.xml"));

3. How do I import a mzQuantML file?

MzQuantMLParser mzqparser = new MzQuantMLParser("myfile.xml");
DataSet dataset = mzqparser.getDataSet();

4. How do I import a mzQuantML file?

A:Slightly more complicated as there isn't a factory JAXB method yet

DataSet dataset = new DataSet();
MzQuantMLExport export = new MzQuantMLExport();
export.export(dataset);

JAXBContext exportContext = JAXBContext.newInstance(ObjectFactory.class);
Marshaller jaxbMarshaller = exportContext.createMarshaller();
jaxbMarshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
jaxbMarshaller.marshal(export.getXML(), new File("myfile.jaxb"));

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.